File tree Expand file tree Collapse file tree
src/main/java/com/softdev/system/generator/util Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77SpringBootCodeGenerator
88----
9- 基于SpringBoot2+Freemarker的代码生成器,用DDL SQL语句生成JPA/JdbcTemplate/Mybatis/BeetlSQL相关代码,支持mysql/oracle/pgsql三大数据库 。以释放双手为目的,各大模板也在陆续补充和优化。欢迎大家提交模板和交流想法!
9+ 基于SpringBoot2+Freemarker的代码生成器,用DDL SQL语句生成JPA/JdbcTemplate/Mybatis/BeetlSQL相关代码,支持mysql/oracle/pgsql等三大数据库 。以释放双手为目的,各大模板也在陆续补充和优化。欢迎大家提交模板和交流想法!
1010<br ><br >
11- 另外,感谢bejson三叔将他部署在 http ://java.bejson.com/generator上,成为besjon专供工具 。
11+ 另外,感谢bejson三叔将他部署在 http ://java.bejson.com/generator 上,目前是besjon专供工具 。
1212<br ><br >
1313<table ><tbody >
1414<tr ><td >访问路径</td > <td >http://127.0.0.1:1234/generator</td ></tr >
1515<tr ><td >在线地址</td > <td >http://java.bejson.com/generator</td ></tr >
1616<tr ><td >CSDN博客</td > <td >http://blog.csdn.net/moshowgame</td ></tr >
1717<tr ><td ></td > <td ></td ></tr >
1818<tr ><td >更新日期</td > <td >更新内容</td ></tr >
19- <tr ><td >20181018<td >支持doublt(x,x)的类型,以及comment里面包含一些特殊字符的处理(感谢@tanwubo的反馈)。</td ></tr >
19+ <tr ><td >20181108<td >修复非字段描述"KEY FK_xxxx (xxxx)"导致生成KEY字段情况(感谢@tornadoorz反馈)。</td ></tr >
20+ <tr ><td >20181018<td >支持double(x,x)的类型,以及comment里面包含一些特殊字符的处理(感谢@tanwubo的反馈)。</td ></tr >
2021<tr ><td >20181010<td >CDN变更,修复CDN不稳定导致网页js报错问题。</td ></tr >
2122<tr ><td >20181003<td >新增element-ui/bootstrap生成。</td ></tr >
2223<tr ><td >20181002<td >修复公共CDN之Layer.js404问题,导致项目无法生成。</td ></tr >
Original file line number Diff line number Diff line change 2525
2626
2727 <!-- https://mvnrepository.com/artifact/com.sun.mail/javax.mail -->
28- <dependency >
28+ <!-- < dependency>
2929 <groupId>com.sun.mail</groupId>
3030 <artifactId>javax.mail</artifactId>
3131 <version>1.6.1</version>
32- </dependency >
32+ </dependency>-->
3333
3434
3535 <!-- spring-data-jpa -->
Original file line number Diff line number Diff line change @@ -140,7 +140,8 @@ public static ClassInfo processTableIntoClassInfo(String tableSql) throws IOExce
140140 columnLine = columnLine .replaceAll ("\n " ,"" ).replaceAll ("\t " ,"" ).trim ();
141141 // `userid` int(11) NOT NULL AUTO_INCREMENT COMMENT '用户ID',
142142 // 2018-9-18 zhengk 修改为contains,提升匹配率和匹配不按照规矩出牌的语句
143- if (!columnLine .contains ("constraint" )&&!columnLine .contains ("using" )&&!columnLine .contains ("unique" )
143+ // 2018-11-8 zhengkai 修复tornadoorz反馈的KEY FK_permission_id (permission_id),KEY FK_role_id (role_id)情况
144+ if (!columnLine .contains ("key " )&&!columnLine .contains ("constraint" )&&!columnLine .contains ("using" )&&!columnLine .contains ("unique" )
144145 &&!columnLine .contains ("storage" )&&!columnLine .contains ("pctincrease" )
145146 &&!columnLine .contains ("buffer_pool" )&&!columnLine .contains ("tablespace" )
146147 &&!(columnLine .contains ("primary" )&&i >3 )){
You can’t perform that action at this time.
0 commit comments