Commit c21281e6 by stylefeng

修改生成器方法名称

parent 51052586
...@@ -56,7 +56,7 @@ public class CodeController extends BaseController { ...@@ -56,7 +56,7 @@ public class CodeController extends BaseController {
genQo.setPassword(druidProperties.getPassword()); genQo.setPassword(druidProperties.getPassword());
WebGeneratorConfig webGeneratorConfig = new WebGeneratorConfig(genQo); WebGeneratorConfig webGeneratorConfig = new WebGeneratorConfig(genQo);
webGeneratorConfig.doMpGeneration(); webGeneratorConfig.doMpGeneration();
webGeneratorConfig.doAdiGeneration(); webGeneratorConfig.doGunsGeneration();
return SUCCESS_TIP; return SUCCESS_TIP;
} }
} }
...@@ -21,10 +21,10 @@ public class GunsCodeGenerator { ...@@ -21,10 +21,10 @@ public class GunsCodeGenerator {
gunsGeneratorConfig.doMpGeneration(); gunsGeneratorConfig.doMpGeneration();
/** /**
* adi的生成器: * guns的生成器:
* adi的代码生成器可以生成controller,html页面,页面对应的js * guns的代码生成器可以生成controller,html页面,页面对应的js
*/ */
gunsGeneratorConfig.doAdiGeneration(); gunsGeneratorConfig.doGunsGeneration();
} }
} }
\ No newline at end of file
...@@ -99,7 +99,7 @@ public abstract class AbstractGeneratorConfig { ...@@ -99,7 +99,7 @@ public abstract class AbstractGeneratorConfig {
} }
} }
public void doAdiGeneration() { public void doGunsGeneration() {
GunsTemplateEngine GunsTemplateEngine = new SimpleTemplateEngine(); GunsTemplateEngine GunsTemplateEngine = new SimpleTemplateEngine();
GunsTemplateEngine.setContextConfig(contextConfig); GunsTemplateEngine.setContextConfig(contextConfig);
sqlConfig.setConnection(dataSourceConfig.getConn()); sqlConfig.setConnection(dataSourceConfig.getConn());
......
...@@ -59,7 +59,7 @@ public class GunsGeneratorConfig extends AbstractGeneratorConfig { ...@@ -59,7 +59,7 @@ public class GunsGeneratorConfig extends AbstractGeneratorConfig {
contextConfig.setServiceSwitch(true); contextConfig.setServiceSwitch(true);
/** /**
* adi 生成器开关 * guns 生成器开关
*/ */
contextConfig.setControllerSwitch(true); contextConfig.setControllerSwitch(true);
contextConfig.setIndexPageSwitch(true); contextConfig.setIndexPageSwitch(true);
......
...@@ -84,7 +84,7 @@ public class WebGeneratorConfig extends AbstractGeneratorConfig { ...@@ -84,7 +84,7 @@ public class WebGeneratorConfig extends AbstractGeneratorConfig {
contextConfig.setServiceSwitch(genQo.getServiceSwitch()); contextConfig.setServiceSwitch(genQo.getServiceSwitch());
/** /**
* adi 生成器开关 * guns 生成器开关
*/ */
contextConfig.setControllerSwitch(genQo.getControllerSwitch()); contextConfig.setControllerSwitch(genQo.getControllerSwitch());
contextConfig.setIndexPageSwitch(genQo.getIndexPageSwitch()); contextConfig.setIndexPageSwitch(genQo.getIndexPageSwitch());
......
...@@ -12,7 +12,7 @@ import com.stylefeng.guns.core.util.ToolUtil; ...@@ -12,7 +12,7 @@ import com.stylefeng.guns.core.util.ToolUtil;
public class ContextConfig { public class ContextConfig {
private String templatePrefixPath = "gunsTemplate/advanced"; private String templatePrefixPath = "gunsTemplate/advanced";
private String projectPath = "D:\\ideaSpace\\adi";//模板输出的项目目录 private String projectPath = "D:\\ideaSpace\\guns";//模板输出的项目目录
private String bizChName; //业务名称 private String bizChName; //业务名称
private String bizEnName; //业务英文名称 private String bizEnName; //业务英文名称
private String bizEnBigName;//业务英文名称(大写) private String bizEnBigName;//业务英文名称(大写)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment