Commit e0473e6e23f4b2fef3aafd558f6ce2b3230866d7

Authored by maliang
1 parent e39526a97e
Exists in master

测试修改

Showing 1 changed file with 7 additions and 6 deletions

mybatis-plus/src/test/java/com/baomidou/mybatisplus/test/generator/MysqlGenerator.java View file @ e0473e6
... ... @@ -42,9 +42,10 @@
42 42  
43 43 private static void customSet(GlobalConfig gc,StrategyConfig strategy,PackageConfig pc){
44 44 gc.setOutputDir("E://mybatis-plus-generate");
45   - gc.setAuthor("风车车");
46   - strategy.setInclude(new String[] { "user","role","resource" }); // 需要生成的表
47   - pc.setParent("com.lyms.hospital");
  45 + gc.setAuthor("maliang");
  46 + strategy.setInclude(new String[] { "SYS_USERS","SYS_USER_ROLE_MAPS","SYS_ROLES" }); // 需要生成的表
  47 +// pc.setParent("com.lyms.hospital");
  48 + pc.setParent("com.lyms.cm.entity.sys");
48 49  
49 50 // pc.setFunctionName("sys"); //com.lyms.hospital.web.controller.sys 加在controller后面
50 51 // pc.setModuleName("sys"); //com.lyms.hospital.sys.controller 加在controller前面
... ... @@ -101,9 +102,9 @@
101 102 DataSourceConfig dsc = new DataSourceConfig();
102 103 dsc.setDbType(DbType.MYSQL);
103 104 dsc.setDriverName("com.mysql.jdbc.Driver");
104   - dsc.setUsername("root");
105   - dsc.setPassword("123456");
106   - dsc.setUrl("jdbc:mysql://127.0.0.1:3306/basic?characterEncoding=utf8");
  105 + dsc.setUsername("center");
  106 + dsc.setPassword("lyms2015");
  107 + dsc.setUrl("jdbc:mysql://119.90.57.26:3306/basic?characterEncoding=utf8");
107 108 mpg.setDataSource(dsc);
108 109  
109 110 // 策略配置