lxw
2023-08-22 04bd5e8012fe6672ebb66c1ce23ced5e66e411f6
控制参数读取,设置,控制成功
2个文件已修改
4 ■■■■ 已修改文件
pom.xml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/config/application-prod.yml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
pom.xml
@@ -180,7 +180,7 @@
                <version>1.4.2.RELEASE</version>
                <configuration>
                    <!-- 工程主入口-->
                    <mainClass>com.whyc.CadDrawManagerApplication</mainClass>
                    <mainClass>com.whyc.EnvirMonitorSysApplication</mainClass>
                    <fork>true</fork>
                    <includeSystemScope>true</includeSystemScope><!--添加此项-->
                </configuration>
src/main/resources/config/application-prod.yml
@@ -16,7 +16,7 @@
  datasource:
    type: com.alibaba.druid.pool.DruidDataSource
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://192.168.10.79:3360/db_environment_inf?characterEncoding=utf8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&rewriteBatchedStatements=true
    url: jdbc:mysql://127.0.0.1:3360/db_environment_inf?characterEncoding=utf8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&rewriteBatchedStatements=true
    #    url: jdbc:mysql://192.168.10.80:3360/db_user?characterEncoding=utf8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&rewriteBatchedStatements=true
    #    url: jdbc:mysql://118.89.139.230:3360/db_user?characterEncoding=utf8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&rewriteBatchedStatements=true
    username: root