Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SiEn
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
hewei
SiEn
Commits
207ec20c
Commit
207ec20c
authored
Oct 10, 2020
by
giaogiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化代码生成器
parent
79172eec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
generator/src/main/java/io/geekidea/springbootplus/generator/SpringBootPlusGenerator.java
+9
-2
No files found.
generator/src/main/java/io/geekidea/springbootplus/generator/SpringBootPlusGenerator.java
View file @
207ec20c
...
@@ -25,6 +25,8 @@ import io.geekidea.springbootplus.generator.constant.GeneratorConstant;
...
@@ -25,6 +25,8 @@ import io.geekidea.springbootplus.generator.constant.GeneratorConstant;
import
io.geekidea.springbootplus.generator.properties.GeneratorProperties
;
import
io.geekidea.springbootplus.generator.properties.GeneratorProperties
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
java.util.Scanner
;
/**
/**
* spring-boot-plus代码生成器入口类
* spring-boot-plus代码生成器入口类
*
*
...
@@ -40,7 +42,12 @@ public class SpringBootPlusGenerator {
...
@@ -40,7 +42,12 @@ public class SpringBootPlusGenerator {
* @param args
* @param args
*/
*/
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
getCode
(
"123"
);
Scanner
sc
=
new
Scanner
(
System
.
in
);
System
.
out
.
println
(
"请输入表名称:"
);
String
name
=
sc
.
nextLine
();
getCode
(
name
);
}
}
private
static
void
getCode
(
String
tableName
)
{
private
static
void
getCode
(
String
tableName
)
{
...
@@ -51,7 +58,7 @@ public class SpringBootPlusGenerator {
...
@@ -51,7 +58,7 @@ public class SpringBootPlusGenerator {
.
setMavenModuleName
(
"common"
)
.
setMavenModuleName
(
"common"
)
.
setParentPackage
(
"com.jumeirah.common"
)
.
setParentPackage
(
"com.jumeirah.common"
)
// .setModuleName("api-app")
// .setModuleName("api-app")
.
setAuthor
(
"
wei"
)
.
setAuthor
(
"
xxx"
)
// 设置作者名称
.
setFileOverride
(
true
);
.
setFileOverride
(
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