mirror of
https://github.com/moshowgame/SpringBootCodeGenerator.git
synced 2026-05-08 14:17:22 +08:00
cancel jpa import. make it no need database
This commit is contained in:
@@ -17,7 +17,7 @@ import com.alibaba.druid.pool.DruidDataSource;
|
||||
import com.alibaba.druid.support.http.StatViewServlet;
|
||||
import com.alibaba.druid.support.http.WebStatFilter;
|
||||
|
||||
@Configuration
|
||||
//@Configuration
|
||||
public class DruidConfiguration {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(DruidConfiguration.class);
|
||||
|
||||
@@ -15,7 +15,7 @@ import java.util.Date;
|
||||
/**
|
||||
* ${classInfo.classComment}
|
||||
*
|
||||
* Created by xuxueli on '${.now?string('yyyy-MM-dd HH:mm:ss')}'.
|
||||
* Created by by-health on '${.now?string('yyyy-MM-dd HH:mm:ss')}'.
|
||||
*/
|
||||
@Entity
|
||||
@Data
|
||||
@@ -33,16 +33,4 @@ public class ${classInfo.className} implements Serializable {
|
||||
</#list>
|
||||
</#if>
|
||||
|
||||
<#if classInfo.fieldList?exists && classInfo.fieldList?size gt 0>
|
||||
<#list classInfo.fieldList as fieldItem>
|
||||
public ${fieldItem.fieldClass} get${fieldItem.fieldName?cap_first}() {
|
||||
return ${fieldItem.fieldName};
|
||||
}
|
||||
|
||||
public void set${fieldItem.fieldName?cap_first}(${fieldItem.fieldClass} ${fieldItem.fieldName}) {
|
||||
this.${fieldItem.fieldName} = ${fieldItem.fieldName};
|
||||
}
|
||||
|
||||
</#list>
|
||||
</#if>
|
||||
}
|
||||
@@ -14,7 +14,7 @@ import org.springframework.stereotype.Repository;
|
||||
/**
|
||||
* ${classInfo.classComment}
|
||||
*
|
||||
* Created by xuxueli on '${.now?string('yyyy-MM-dd HH:mm:ss')}'.
|
||||
* Created by by-health on '${.now?string('yyyy-MM-dd HH:mm:ss')}'.
|
||||
*/
|
||||
@Repository
|
||||
public interface ${classInfo.className}Respotory extends JpaRepository<${classInfo.className},Integer> {
|
||||
|
||||
Reference in New Issue
Block a user