Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
guns-vip
Commits
c21281e6
Commit
c21281e6
authored
Jan 19, 2018
by
stylefeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改生成器方法名称
parent
51052586
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
8 deletions
+9
-8
guns-admin/src/main/java/com/stylefeng/guns/modular/code/controller/CodeController.java
+1
-1
guns-generator/src/main/java/com/stylefeng/guns/generator/action/GunsCodeGenerator.java
+4
-3
guns-generator/src/main/java/com/stylefeng/guns/generator/action/config/AbstractGeneratorConfig.java
+1
-1
guns-generator/src/main/java/com/stylefeng/guns/generator/action/config/GunsGeneratorConfig.java
+1
-1
guns-generator/src/main/java/com/stylefeng/guns/generator/action/config/WebGeneratorConfig.java
+1
-1
guns-generator/src/main/java/com/stylefeng/guns/generator/engine/config/ContextConfig.java
+1
-1
No files found.
guns-admin/src/main/java/com/stylefeng/guns/modular/code/controller/CodeController.java
View file @
c21281e6
...
@@ -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
.
do
Adi
Generation
();
webGeneratorConfig
.
do
Guns
Generation
();
return
SUCCESS_TIP
;
return
SUCCESS_TIP
;
}
}
}
}
guns-generator/src/main/java/com/stylefeng/guns/generator/action/GunsCodeGenerator.java
View file @
c21281e6
...
@@ -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
.
do
Adi
Generation
();
gunsGeneratorConfig
.
do
Guns
Generation
();
}
}
}
}
\ No newline at end of file
guns-generator/src/main/java/com/stylefeng/guns/generator/action/config/AbstractGeneratorConfig.java
View file @
c21281e6
...
@@ -99,7 +99,7 @@ public abstract class AbstractGeneratorConfig {
...
@@ -99,7 +99,7 @@ public abstract class AbstractGeneratorConfig {
}
}
}
}
public
void
do
Adi
Generation
()
{
public
void
do
Guns
Generation
()
{
GunsTemplateEngine
GunsTemplateEngine
=
new
SimpleTemplateEngine
();
GunsTemplateEngine
GunsTemplateEngine
=
new
SimpleTemplateEngine
();
GunsTemplateEngine
.
setContextConfig
(
contextConfig
);
GunsTemplateEngine
.
setContextConfig
(
contextConfig
);
sqlConfig
.
setConnection
(
dataSourceConfig
.
getConn
());
sqlConfig
.
setConnection
(
dataSourceConfig
.
getConn
());
...
...
guns-generator/src/main/java/com/stylefeng/guns/generator/action/config/GunsGeneratorConfig.java
View file @
c21281e6
...
@@ -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
);
...
...
guns-generator/src/main/java/com/stylefeng/guns/generator/action/config/WebGeneratorConfig.java
View file @
c21281e6
...
@@ -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
());
...
...
guns-generator/src/main/java/com/stylefeng/guns/generator/engine/config/ContextConfig.java
View file @
c21281e6
...
@@ -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
;
//业务英文名称(大写)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment