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
2e104d2d
Commit
2e104d2d
authored
Nov 03, 2017
by
naan1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生成器配置完善
parent
ee8491bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
guns-admin/src/main/java/generator/config/GunsGeneratorConfig.java
+10
-8
No files found.
guns-admin/src/main/java/generator/config/GunsGeneratorConfig.java
View file @
2e104d2d
...
...
@@ -13,7 +13,7 @@ public class GunsGeneratorConfig extends AbstractGeneratorConfig {
@Override
protected
void
globalConfig
()
{
globalConfig
.
setOutputDir
(
"
/Users/stylefeng/work/ideaSpace/guns/guns-admin/src/main/
java"
);
globalConfig
.
setOutputDir
(
"
D:\\ideaSpace\\guns\\guns-admin\\src\\main\\
java"
);
globalConfig
.
setFileOverride
(
true
);
globalConfig
.
setEnableCache
(
false
);
globalConfig
.
setBaseResultMap
(
true
);
...
...
@@ -34,7 +34,7 @@ public class GunsGeneratorConfig extends AbstractGeneratorConfig {
@Override
protected
void
strategyConfig
()
{
//strategy.setTablePrefix(new String[]{"_"});// 此处可以修改为您的表前缀
//strategyConfig.setInclude(new String[]{"bill
"});
strategyConfig
.
setInclude
(
new
String
[]{
"my_order
"
});
strategyConfig
.
setNaming
(
NamingStrategy
.
underline_to_camel
);
}
...
...
@@ -49,17 +49,18 @@ public class GunsGeneratorConfig extends AbstractGeneratorConfig {
@Override
protected
void
contextConfig
()
{
contextConfig
.
setBizChName
(
"记账管理"
);
contextConfig
.
setBizEnName
(
"
bill
"
);
contextConfig
.
setBizEnName
(
"
order
"
);
contextConfig
.
setModuleName
(
"system"
);
contextConfig
.
setProjectPath
(
"/Users/stylefeng/work/ideaSpace/guns/guns-admin"
);
contextConfig
.
setEntityName
(
"Bill"
);
contextConfig
.
setProjectPath
(
"D:\\ideaSpace\\guns\\guns-admin"
);
contextConfig
.
setEntityName
(
"MyOrder"
);
sqlConfig
.
setParentMenuName
(
"系统管理"
);
/**
* mybatis-plus 生成器开关
*/
contextConfig
.
setEntitySwitch
(
fals
e
);
contextConfig
.
setDaoSwitch
(
fals
e
);
contextConfig
.
setServiceSwitch
(
fals
e
);
contextConfig
.
setEntitySwitch
(
tru
e
);
contextConfig
.
setDaoSwitch
(
tru
e
);
contextConfig
.
setServiceSwitch
(
tru
e
);
/**
* guns 生成器开关
...
...
@@ -70,5 +71,6 @@ public class GunsGeneratorConfig extends AbstractGeneratorConfig {
contextConfig
.
setEditPageSwitch
(
true
);
contextConfig
.
setJsSwitch
(
true
);
contextConfig
.
setInfoJsSwitch
(
true
);
contextConfig
.
setSqlSwitch
(
true
);
}
}
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