goupan
2024-04-08 7273ec7fdae8365fc0db9a919006c96fb60331ca
代码提交
8个文件已修改
48 ■■■■ 已修改文件
generator/src/main/java/com/mindant/generator/action/GunsCodeBatchGenerator.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
generator/src/main/java/com/mindant/generator/action/GunsCodeGenerator.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
guns/src/main/resources/application-dev.yml 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
guns/src/main/resources/application-local.yml 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
guns/src/main/resources/application-prod.yml 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
rest/src/main/resources/application-dev.yml 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
rest/src/main/resources/application-local.yml 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
rest/src/main/resources/application-prod.yml 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
generator/src/main/java/com/mindant/generator/action/GunsCodeBatchGenerator.java
@@ -23,13 +23,13 @@
        // 数据库名
        String dbName = "xlzx";
        // 数据库连接
        String url = "jdbc:mysql://rm-2vc47rysl5jt6gv312o.mysql.cn-chengdu.rds.aliyuncs.com:3306/"
        String url = "jdbc:mysql://1.95.0.51:8306/"
                + dbName
                + "?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&nullCatalogMeansCurrent=true";
        // 用户名
        String userName = "root_dev";
        String userName = "root";
        // 密码
        String password = "00aabb00";
        String password = "Root2024!";
        // 查询数据库表名、注释
        String tableSql = "SELECT TABLE_NAME AS tableName,TABLE_COMMENT AS tableComment FROM information_schema.`TABLES` WHERE TABLE_SCHEMA = '" + dbName + "'" +
generator/src/main/java/com/mindant/generator/action/GunsCodeGenerator.java
@@ -29,11 +29,11 @@
//        gunsGeneratorConfig.doGunsGeneration();
        GenQo genQo = new GenQo();
        //数据库url
        genQo.setUrl("jdbc:mysql://rm-2vc47rysl5jt6gv312o.mysql.cn-chengdu.rds.aliyuncs.com:3306/fbwl?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&nullCatalogMeansCurrent=true");
        genQo.setUrl("jdbc:mysql://1.95.0.51:8306/fbwl?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&nullCatalogMeansCurrent=true");
        //数据库密码
        genQo.setPassword("00aabb00");
        genQo.setPassword("Root2024!");
        //数据库用户名
        genQo.setUserName("root_dev");
        genQo.setUserName("root");
        //表名
        genQo.setTableName("t_area");
        genQo.setAuthor("guohongjin");
guns/src/main/resources/application-dev.yml
@@ -2,9 +2,9 @@
spring:
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://rm-2vc47rysl5jt6gv312o.mysql.cn-chengdu.rds.aliyuncs.com:3306/xlzx?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&nullCatalogMeansCurrent=true
    username: root_dev
    password: 00aabb00
    url: jdbc:mysql://1.95.0.51:8306/xlzx?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&nullCatalogMeansCurrent=true
    username: root
    password: Root2024!
    # 连接池大小根据实际情况调整
    max-active: 100
guns/src/main/resources/application-local.yml
@@ -2,9 +2,9 @@
spring:
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://rm-2vc47rysl5jt6gv312o.mysql.cn-chengdu.rds.aliyuncs.com:3306/xlzx?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&nullCatalogMeansCurrent=true
    username: root_dev
    password: 00aabb00
    url: jdbc:mysql://1.95.0.51:8306/xlzx?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&nullCatalogMeansCurrent=true
    username: root
    password: Root2024!
    # 连接池大小根据实际情况调整
    max-active: 100
guns/src/main/resources/application-prod.yml
@@ -2,9 +2,9 @@
spring:
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://rm-2vc47rysl5jt6gv312o.mysql.cn-chengdu.rds.aliyuncs.com:3306/xlzx?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&nullCatalogMeansCurrent=true
    username: root_dev
    password: 00aabb00
    url: jdbc:mysql://1.95.0.51:8306/xlzx?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&nullCatalogMeansCurrent=true
    username: root
    password: Root2024!
    # 连接池大小根据实际情况调整
    max-active: 100
rest/src/main/resources/application-dev.yml
@@ -2,9 +2,9 @@
spring:
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://rm-2vc47rysl5jt6gv312o.mysql.cn-chengdu.rds.aliyuncs.com:3306/xlzx?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&nullCatalogMeansCurrent=true
    username: root_dev
    password: 00aabb00
    url: jdbc:mysql://1.95.0.51:8306/xlzx?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&nullCatalogMeansCurrent=true
    username: root
    password: Root2024!
    # 连接池大小根据实际情况调整
    max-active: 100
rest/src/main/resources/application-local.yml
@@ -2,9 +2,9 @@
spring:
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://rm-2vc47rysl5jt6gv312o.mysql.cn-chengdu.rds.aliyuncs.com:3306/xlzx?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&nullCatalogMeansCurrent=true
    username: root_dev
    password: 00aabb00
    url: jdbc:mysql://1.95.0.51:8306/xlzx?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&nullCatalogMeansCurrent=true
    username: root
    password: Root2024!
    # 连接池大小根据实际情况调整
    max-active: 100
rest/src/main/resources/application-prod.yml
@@ -2,9 +2,9 @@
spring:
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://rm-2vc47rysl5jt6gv312o.mysql.cn-chengdu.rds.aliyuncs.com:3306/xlzx?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&nullCatalogMeansCurrent=true
    username: root_dev
    password: 00aabb00
    url: jdbc:mysql://1.95.0.51:8306/xlzx?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&nullCatalogMeansCurrent=true
    username: root
    password: Root2024!
    # 连接池大小根据实际情况调整
    max-active: 100