Commit 306bb19e by yubaogu

tett

parent aeb3e06e
...@@ -3,6 +3,7 @@ jdbc.url=jdbc:mysql://192.168.9.246:3306/bitbuy-dev?useSSL=false&serverTimezone= ...@@ -3,6 +3,7 @@ jdbc.url=jdbc:mysql://192.168.9.246:3306/bitbuy-dev?useSSL=false&serverTimezone=
jdbc.user=bitbuy-dev jdbc.user=bitbuy-dev
jdbc.pass=bitbuy-dev jdbc.pass=bitbuy-dev
jdbc.database=bitbuy-dev jdbc.database=bitbuy-dev
#包路径 #包路径
url.entity=com.buybit.power.entity url.entity=com.buybit.power.entity
url.dao=com.buybit.power.mapper url.dao=com.buybit.power.mapper
...@@ -10,5 +11,10 @@ url.xmlmapper=com.buybit.power.mapper.xml ...@@ -10,5 +11,10 @@ url.xmlmapper=com.buybit.power.mapper.xml
url.service=com.buybit.power.service url.service=com.buybit.power.service
url.service.impl=com.buybit.power.service.impl url.service.impl=com.buybit.power.service.impl
url.controller=com.buybit.power.web url.controller=com.buybit.power.web
#Swagger #Swagger
swagger.enable=true swagger.enable=true
...@@ -6,10 +6,12 @@ ...@@ -6,10 +6,12 @@
*/ */
package com.flying.cattle.mdg; package com.flying.cattle.mdg;
import java.io.IOException;
import java.sql.SQLException; import java.sql.SQLException;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.Date; 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.entity.BasisInfo;
import com.gitee.flying.cattle.mdg.util.EntityInfoUtil; import com.gitee.flying.cattle.mdg.util.EntityInfoUtil;
import com.gitee.flying.cattle.mdg.util.Generator; import com.gitee.flying.cattle.mdg.util.Generator;
...@@ -48,7 +50,8 @@ public class MyGenerator { ...@@ -48,7 +50,8 @@ public class MyGenerator {
//是否是Swagger配置 //是否是Swagger配置
public static final String IS_SWAGGER = "true"; 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, 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); DAO_URL, XML_URL, SERVICE_URL, SERVICE_IMPL_URL, CONTROLLER_URL,IS_SWAGGER);
bi.setTable(TABLE); bi.setTable(TABLE);
......
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