Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
imyzt committed Aug 17, 2019
1 parent 5fb6486 commit dae1725
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,12 @@ public String outputFile(TableInfo tableInfo) {
strategy.setNaming(NamingStrategy.underline_to_camel);
strategy.setColumnNaming(NamingStrategy.underline_to_camel);
strategy.setEntityLombokModel(true);
strategy.setSuperControllerClass("cn.ideamake.template.web.controller.AbstractController");
// strategy.setSuperControllerClass("cn.ideamake.template.web.controller.AbstractController");
strategy.setInclude(getTableNameList(tables));
strategy.setControllerMappingHyphenStyle(true);
strategy.setRestControllerStyle(true);
//表前缀
strategy.setTablePrefix("im_");
strategy.setTablePrefix(SelectionContext.getTablePrefix());
mpg.setStrategy(strategy);
mpg.setTemplateEngine(new FreemarkerTemplateEngine());
mpg.execute();
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/templates/Swagger2Config.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package ${package+'.config'};
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.service.Contact;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.service.ApiInfo;
Expand Down

0 comments on commit dae1725

Please sign in to comment.