Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ydl-generator
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
余保谷
ydl-generator
Commits
306bb19e
Commit
306bb19e
authored
Jul 07, 2021
by
yubaogu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tett
parent
aeb3e06e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletions
+10
-1
generatorConfig.properties
src/main/resources/config/generatorConfig.properties
+6
-0
MyGenerator.java
src/test/java/com/flying/cattle/mdg/MyGenerator.java
+4
-1
No files found.
src/main/resources/config/generatorConfig.properties
View file @
306bb19e
...
...
@@ -3,6 +3,7 @@ jdbc.url=jdbc:mysql://192.168.9.246:3306/bitbuy-dev?useSSL=false&serverTimezone=
jdbc.user
=
bitbuy-dev
jdbc.pass
=
bitbuy-dev
jdbc.database
=
bitbuy-dev
#包路径
url.entity
=
com.buybit.power.entity
url.dao
=
com.buybit.power.mapper
...
...
@@ -10,5 +11,10 @@ url.xmlmapper=com.buybit.power.mapper.xml
url.service
=
com.buybit.power.service
url.service.impl
=
com.buybit.power.service.impl
url.controller
=
com.buybit.power.web
#Swagger
swagger.enable
=
true
src/test/java/com/flying/cattle/mdg/MyGenerator.java
View file @
306bb19e
...
...
@@ -6,10 +6,12 @@
*/
package
com
.
flying
.
cattle
.
mdg
;
import
java.io.IOException
;
import
java.sql.SQLException
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
com.alibaba.druid.support.json.JSONUtils
;
import
com.gitee.flying.cattle.mdg.entity.BasisInfo
;
import
com.gitee.flying.cattle.mdg.util.EntityInfoUtil
;
import
com.gitee.flying.cattle.mdg.util.Generator
;
...
...
@@ -48,7 +50,8 @@ public class MyGenerator {
//是否是Swagger配置
public
static
final
String
IS_SWAGGER
=
"true"
;
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
throws
IOException
{
System
.
out
.
println
(
MyGenerator
.
class
.
getResource
(
""
).
getPath
());
BasisInfo
bi
=
new
BasisInfo
(
PROJECT
,
AUTHOR
,
VERSION
,
URL
,
NAME
,
PASS
,
DATABASE
,
TIME
,
AGILE
,
ENTITY_URL
,
DAO_URL
,
XML_URL
,
SERVICE_URL
,
SERVICE_IMPL_URL
,
CONTROLLER_URL
,
IS_SWAGGER
);
bi
.
setTable
(
TABLE
);
...
...
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