From af6985d16ba69fc7dfba43aea449e0345b6885d9 Mon Sep 17 00:00:00 2001 From: wangpeng Date: Mon, 19 Feb 2024 12:39:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=BF=E6=8D=A2=E6=95=B0=E6=8D=AE=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 10 ++-- src/main/resources/application.properties | 42 ++++++++--------- src/main/resources/dbfh.properties | 56 +++++++++++------------ 3 files changed, 54 insertions(+), 54 deletions(-) diff --git a/pom.xml b/pom.xml index 0d6aca9..6c91184 100644 --- a/pom.xml +++ b/pom.xml @@ -5,12 +5,12 @@ 4.0.0 com.zcloud - integrated_whb + integrated_traffic 0.0.1-SNAPSHOT war - integrated_whb - integrated_whb for Spring Boot + integrated_traffic + integrated_traffic for Spring Boot org.springframework.boot @@ -505,7 +505,7 @@ - - integrated_whb + integrated_traffic org.springframework.boot diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 9a95565..e314119 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,29 +1,29 @@ -spring.application.name=integrated_whb +spring.application.name=integrated_traffic server.port=8099 datasource.no1.driver-class-name: com.mysql.cj.jdbc.Driver -datasource.no1.url=jdbc:mysql://192.168.0.42:3306/integrated_whb?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=utf-8 +datasource.no1.url=jdbc:mysql://192.168.0.64:3306/qa-traffic-prevention?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=utf-8 datasource.no1.username=root datasource.no1.password=root -#数据源2(默认没用,俩地址写一样即可) +#\u6570\u636E\u6E902(\u9ED8\u8BA4\u6CA1\u7528\uFF0C\u4FE9\u5730\u5740\u5199\u4E00\u6837\u5373\u53EF) datasource.no2.driver-class-name: com.mysql.cj.jdbc.Driver -datasource.no2.url=jdbc:mysql://192.168.0.42:3306/zcloud-admin?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=utf-8 +datasource.no2.url=jdbc:mysql://192.168.0.64:3306/qa-traffic-admin?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=utf-8 datasource.no2.username=root datasource.no2.password=root -#druid连接池 +#druid\u8FDE\u63A5\u6C60 spring.datasource.type: com.alibaba.druid.pool.DruidDataSource -#最大活跃数 +#\u6700\u5927\u6D3B\u8DC3\u6570 spring.datasource.maxActive: 20 -#初始化数量 +#\u521D\u59CB\u5316\u6570\u91CF spring.datasource.initialSize: 1 -#最大连接等待超时时间 +#\u6700\u5927\u8FDE\u63A5\u7B49\u5F85\u8D85\u65F6\u65F6\u95F4 spring.datasource.maxWait: 60000 -#打开PSCache,并且指定每个连接PSCache的大小 +#\u6253\u5F00PSCache\uFF0C\u5E76\u4E14\u6307\u5B9A\u6BCF\u4E2A\u8FDE\u63A5PSCache\u7684\u5927\u5C0F spring.datasource.poolPreparedStatements: true spring.datasource.maxPoolPreparedStatementPerConnectionSize: 20 -#通过connectionProperties属性来打开mergeSql功能;慢SQL记录 +#\u901A\u8FC7connectionProperties\u5C5E\u6027\u6765\u6253\u5F00mergeSql\u529F\u80FD\uFF1B\u6162SQL\u8BB0\u5F55 #connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000 spring.datasource.minIdle: 1 spring.datasource.timeBetweenEvictionRunsMillis: 60000 @@ -32,23 +32,23 @@ spring.datasource.validationQuery: select 1 from dual spring.datasource.testWhileIdle: true spring.datasource.testOnBorrow: false spring.datasource.testOnReturn: false -#配置监控统计拦截的filters,去掉后监控界面sql将无法统计,'wall'用于防火墙 +#\u914D\u7F6E\u76D1\u63A7\u7EDF\u8BA1\u62E6\u622A\u7684filters\uFF0C\u53BB\u6389\u540E\u76D1\u63A7\u754C\u9762sql\u5C06\u65E0\u6CD5\u7EDF\u8BA1,'wall'\u7528\u4E8E\u9632\u706B\u5899 filters: stat, wall, log4j -#缓存配置文件位置 +#\u7F13\u5B58\u914D\u7F6E\u6587\u4EF6\u4F4D\u7F6E spring.cache.ehcache.cofnig=ehcache.xml -#配置这句话,控制台输出sql语句 +#\u914D\u7F6E\u8FD9\u53E5\u8BDD,\u63A7\u5236\u53F0\u8F93\u51FAsql\u8BED\u53E5 logging.level.com.zcloud.mapper=debug -#上传文件大小限制 +#\u4E0A\u4F20\u6587\u4EF6\u5927\u5C0F\u9650\u5236 spring.servlet.multipart.max-file-size=500MB spring.servlet.multipart.max-request-size=500MB -#activiti模型检测 +#activiti\u6A21\u578B\u68C0\u6D4B spring.activiti.check-process-definitions=false -#Mq配置 +#Mq\u914D\u7F6E rocketmq.consumer.group2=edu-admin-edit rocketmq.consumer.group1=edu-admin-add rocketmq.name-server=192.168.0.31:9876 @@ -59,20 +59,20 @@ rocketmq.producer.max-message-size=4194304 rocketmq.producer.retry-times-when-send-failed=3 rocketmq.producer.retry-next-server=true rocketmq.producer.retry-times-when-send-async-failed=3 -## topic 前缀 +## topic \u524D\u7F00 mq.topic.info=info mq.topic.eightWork=eightWork mq.group.info=scheduled_tasks mq.group.eightWork=scheduled_tasks_eightWork -#字符 +#\u5B57\u7B26 spring.http.encoding.charset=UTF-8 spring.http.encoding.force=true spring.http.encoding.enabled=true -# 关闭springboot启动时的banner +# \u5173\u95EDspringboot\u542F\u52A8\u65F6\u7684banner spring.main.banner-mode=off -#jar包部署时去掉注释 +#jar\u5305\u90E8\u7F72\u65F6\u53BB\u6389\u6CE8\u91CA #web.upload-path=h:/ #web.front-path=h:/ #spring.resources.static-locations=file:${web.upload-path},file:${web.front-path} @@ -81,6 +81,6 @@ config.basic.url=http://192.168.0.7:8082/zcouldProperty customer.id=LAZ-20221129-3 customer.SECRET_KEY=a256e8575c3f4240b08f6350f13ce8e2 -#开发 +#\u5F00\u53D1 customer.url=https://api.qhdsafety.com/sync/ customer.domain=video.qhdsafety.com diff --git a/src/main/resources/dbfh.properties b/src/main/resources/dbfh.properties index a0f4f81..10f580f 100644 --- a/src/main/resources/dbfh.properties +++ b/src/main/resources/dbfh.properties @@ -1,67 +1,67 @@ -##用于备份、还原数据库、在线编辑 SQL +##\u7528\u4E8E\u5907\u4EFD\u3001\u8FD8\u539F\u6570\u636E\u5E93\u3001\u5728\u7EBF\u7F16\u8F91 SQL -# 是否远程备份数据库(例如tomcat和数据库不在同一个服务器中,非linux) yes or no , DBSeverport远程服务器备份程序端口 +# \u662F\u5426\u8FDC\u7A0B\u5907\u4EFD\u6570\u636E\u5E93\uFF08\u4F8B\u5982tomcat\u548C\u6570\u636E\u5E93\u4E0D\u5728\u540C\u4E00\u4E2A\u670D\u52A1\u5668\u4E2D\uFF0C\u975Elinux\uFF09 yes or no , DBSeverport\u8FDC\u7A0B\u670D\u52A1\u5668\u5907\u4EFD\u7A0B\u5E8F\u7AEF\u53E3 remoteDB=no DBSeverport=6666 #################################### -# 数据库类型 +# \u6570\u636E\u5E93\u7C7B\u578B dbtype=mysql -# 数据库地址 +# \u6570\u636E\u5E93\u5730\u5740 dbAddress=192.168.0.17 -#端口 +#\u7AEF\u53E3 dbport=3306 -# 数据库名称 -databaseName=integrated_whb -# 数据库用户名 +# \u6570\u636E\u5E93\u540D\u79F0 +databaseName=integrated_traffic +# \u6570\u636E\u5E93\u7528\u6237\u540D username=root -# 数据库密码 +# \u6570\u636E\u5E93\u5BC6\u7801 password=root -# mysqldump 路径 Linux +# mysqldump \u8DEF\u5F84 Linux #dbpath = /usr/bin/ -# 备份文件存放位置 Linux +# \u5907\u4EFD\u6587\u4EF6\u5B58\u653E\u4F4D\u7F6E Linux #sqlFilePath =/mysql_backup/ -# mysqldump 路径 Windows(mysql安装目录) +# mysqldump \u8DEF\u5F84 Windows(mysql\u5B89\u88C5\u76EE\u5F55) dbpath = E\://Soft//mysql5.6//MySQL Server 5.6//bin// -# 备份文件存放位置 Windows +# \u5907\u4EFD\u6587\u4EF6\u5B58\u653E\u4F4D\u7F6E Windows sqlFilePath =F\:/mysql_backup/ #################################### #################################### -# 数据库类型 +# \u6570\u636E\u5E93\u7C7B\u578B #dbtype=oracle -# 数据库地址 +# \u6570\u636E\u5E93\u5730\u5740 #dbAddress=192.168.1.102 -#端口 +#\u7AEF\u53E3 #dbport=1521 -# 数据库用户名 +# \u6570\u636E\u5E93\u7528\u6237\u540D #username=C##FHBOOT -# 数据库名称 +# \u6570\u636E\u5E93\u540D\u79F0 #databaseName=orcl -# 数据库密码 +# \u6570\u636E\u5E93\u5BC6\u7801 #password = root -# 备份文件存放位置 Linux +# \u5907\u4EFD\u6587\u4EF6\u5B58\u653E\u4F4D\u7F6E Linux #sqlFilePath =/mysql_backup/ -# 备份文件存放位置 Windows +# \u5907\u4EFD\u6587\u4EF6\u5B58\u653E\u4F4D\u7F6E Windows #sqlFilePath =E\://oracle_backup// #################################### #################################### -# 数据库类型 +# \u6570\u636E\u5E93\u7C7B\u578B #dbtype=sqlserver -# 数据库地址 +# \u6570\u636E\u5E93\u5730\u5740 #dbAddress=192.168.1.102 -#端口 +#\u7AEF\u53E3 #dbport=1433 -# 数据库的用户 +# \u6570\u636E\u5E93\u7684\u7528\u6237 #username = sa -# 数据库名称 +# \u6570\u636E\u5E93\u540D\u79F0 #databaseName=fhboot -# 数据库密码 +# \u6570\u636E\u5E93\u5BC6\u7801 #password = root -# 备份文件存放位置 (只有Windows)确保此路径存在,否则备份失败 +# \u5907\u4EFD\u6587\u4EF6\u5B58\u653E\u4F4D\u7F6E (\u53EA\u6709Windows\uFF09\u786E\u4FDD\u6B64\u8DEF\u5F84\u5B58\u5728\uFF0C\u5426\u5219\u5907\u4EFD\u5931\u8D25 #sqlFilePath =E\:/sqlserverBackup/ ####################################