|
|
|
@ -41,10 +41,10 @@ public class CodeGenerator { |
|
|
|
|
|
|
|
|
|
// 3、数据源配置
|
|
|
|
|
DataSourceConfig dsc = new DataSourceConfig(); |
|
|
|
|
dsc.setUrl("jdbc:mysql://192.168.31.136:3306/iasf?useUnicode=true&useSSL=false&characterEncoding=utf8&serverTimezone=GMT%2b8"); |
|
|
|
|
dsc.setUrl("jdbc:mysql://139.9.47.170:3306/iasf?serverTimezone=GMT%2B8"); |
|
|
|
|
dsc.setDriverName("com.mysql.cj.jdbc.Driver"); |
|
|
|
|
dsc.setUsername("root"); |
|
|
|
|
dsc.setPassword("123456"); |
|
|
|
|
dsc.setPassword("HuoRan@2021"); |
|
|
|
|
dsc.setDbType(DbType.MYSQL); |
|
|
|
|
mpg.setDataSource(dsc); |
|
|
|
|
|
|
|
|
@ -61,7 +61,7 @@ public class CodeGenerator { |
|
|
|
|
|
|
|
|
|
// 5、策略配置
|
|
|
|
|
StrategyConfig strategy = new StrategyConfig(); |
|
|
|
|
strategy.setInclude("sys_template_style_configuration"); |
|
|
|
|
strategy.setInclude("sys_floating_column_scheme_scope_of_application"); |
|
|
|
|
strategy.setNaming(NamingStrategy.underline_to_camel);//数据库表映射到实体的命名策略
|
|
|
|
|
// strategy.setTablePrefix("sys_"); //生成实体时去掉表前缀
|
|
|
|
|
|
|
|
|
|