cancel jpa import. make it no need database

This commit is contained in:
moshowgame@126.com
2018-09-13 10:29:51 +08:00
parent c756043c4a
commit 4603270887
6 changed files with 17 additions and 46 deletions

View File

@@ -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);

View File

@@ -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>
}

View File

@@ -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> {