refactor(biz): 切换配置文件至开发环境
-将 application.yml 中的 profiles.active从 test 改为 dev - 更新 application-dev.yml 中的数据库连接信息 - 删除 application-test.yml 文件,移除测试环境配置
正在显示
3 个修改的文件
包含
4 行增加
和
207 行删除
... | @@ -89,21 +89,15 @@ spring: | ... | @@ -89,21 +89,15 @@ spring: |
89 | connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000 | 89 | connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000 |
90 | datasource: | 90 | datasource: |
91 | master: | 91 | master: |
92 | url: jdbc:mysql://47.104.179.187:6003/sk-zhongye?characterEncoding=UTF-8&useUnicode=true&useSSL=false | 92 | url: jdbc:mysql://47.104.179.187:6003/sk-zhangfa?characterEncoding=UTF-8&useUnicode=true&useSSL=false |
93 | username: root | ||
94 | password: jkauto@123 | ||
95 | driver-class-name: com.mysql.jdbc.Driver | ||
96 | # 恩菲数据同步 | ||
97 | nf-db: | ||
98 | url: jdbc:mysql://113.249.91.27:3306/zhongye?characterEncoding=UTF-8&useUnicode=true&useSSL=false | ||
99 | username: root | 93 | username: root |
100 | password: jkauto@123 | 94 | password: jkauto@123 |
101 | driver-class-name: com.mysql.jdbc.Driver | 95 | driver-class-name: com.mysql.jdbc.Driver |
102 | # 多数据源配置 | 96 | # 多数据源配置 |
103 | pg-db: | 97 | pg-db: |
104 | url: jdbc:postgresql://113.249.91.27:10086/postgres?useUnicode=true&characterEncoding=UTF8 | 98 | url: jdbc:postgresql://47.104.99.86:10086/postgres?useUnicode=true&characterEncoding=UTF8 |
105 | username: postgres | 99 | username: postgres |
106 | password: jkauto@123 | 100 | password: JKjnf9713xt |
107 | driver-class-name: org.postgresql.Driver | 101 | driver-class-name: org.postgresql.Driver |
108 | #redis 配置 | 102 | #redis 配置 |
109 | redis: | 103 | redis: | ... | ... |
1 | server: | ||
2 | port: 8095 | ||
3 | servlet: | ||
4 | context-path: /skboot | ||
5 | compression: | ||
6 | enabled: true | ||
7 | mime-types: application/javascript,application/json,application/xml,text/html,text/xml,text/plain,text/css,image/* | ||
8 | |||
9 | management: | ||
10 | endpoints: | ||
11 | web: | ||
12 | exposure: | ||
13 | include: metrics,httptrace | ||
14 | spring: | ||
15 | servlet: | ||
16 | multipart: | ||
17 | max-file-size: 500MB | ||
18 | max-request-size: 100MB | ||
19 | ## quartz定时任务,采用数据库方式 | ||
20 | quartz: | ||
21 | properties: | ||
22 | org: | ||
23 | quartz: | ||
24 | threadPool: | ||
25 | threadCount: 20 | ||
26 | jobStore: | ||
27 | misfireThreshold: 60000 | ||
28 | job-store-type: jdbc | ||
29 | #决定当前服务定时是否启用 | ||
30 | auto-startup: false | ||
31 | #json 时间戳统一转换 | ||
32 | jackson: | ||
33 | date-format: yyyy-MM-dd HH:mm:ss | ||
34 | time-zone: GMT+8 | ||
35 | aop: | ||
36 | proxy-target-class: true | ||
37 | #配置freemarker | ||
38 | freemarker: | ||
39 | # 设置模板后缀名 | ||
40 | suffix: .ftl | ||
41 | # 设置文档类型 | ||
42 | content-type: text/html | ||
43 | # 设置页面编码格式 | ||
44 | charset: UTF-8 | ||
45 | # 设置页面缓存 | ||
46 | cache: false | ||
47 | prefer-file-system-access: false | ||
48 | # 设置ftl文件路径 | ||
49 | template-loader-path: | ||
50 | - classpath:/templates | ||
51 | # 设置静态文件路径,js,css等 | ||
52 | mvc: | ||
53 | static-path-pattern: /** | ||
54 | resource: | ||
55 | static-locations: classpath:/static/,classpath:/public/ | ||
56 | autoconfigure: | ||
57 | exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure | ||
58 | datasource: | ||
59 | druid: | ||
60 | stat-view-servlet: | ||
61 | enabled: true | ||
62 | loginUsername: admin | ||
63 | loginPassword: 123456 | ||
64 | web-stat-filter: | ||
65 | enabled: true | ||
66 | dynamic: | ||
67 | druid: # 全局druid参数,绝大部分值和默认保持一致。(现已支持的参数如下,不清楚含义不要乱设置) | ||
68 | # 连接池的配置信息 | ||
69 | # 初始化大小,最小,最大 | ||
70 | initial-size: 5 | ||
71 | min-idle: 5 | ||
72 | maxActive: 30 | ||
73 | # 配置获取连接等待超时的时间 | ||
74 | maxWait: 60000 | ||
75 | # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 | ||
76 | timeBetweenEvictionRunsMillis: 60000 | ||
77 | # 配置一个连接在池中最小生存的时间,单位是毫秒 | ||
78 | minEvictableIdleTimeMillis: 300000 | ||
79 | validationQuery: SELECT 1 | ||
80 | testWhileIdle: true | ||
81 | testOnBorrow: false | ||
82 | testOnReturn: false | ||
83 | # 打开PSCache,并且指定每个连接上PSCache的大小 | ||
84 | poolPreparedStatements: true | ||
85 | maxPoolPreparedStatementPerConnectionSize: 20 | ||
86 | # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙 | ||
87 | filters: stat,wall,slf4j | ||
88 | # 通过connectProperties属性来打开mergeSql功能;慢SQL记录 | ||
89 | connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000 | ||
90 | datasource: | ||
91 | master: | ||
92 | #url: jdbc:mysql://47.104.179.187:6003/sk-zhongye?characterEncoding=UTF-8&useUnicode=true&useSSL=false | ||
93 | url: jdbc:mysql://113.249.91.27:3306/sk-zhongye?characterEncoding=UTF-8&useUnicode=true&useSSL=false | ||
94 | #url: jdbc:mysql://20.0.99.3:3306/sk-zhongye?characterEncoding=UTF-8&useUnicode=true&useSSL=false | ||
95 | username: root | ||
96 | password: jkauto@123 | ||
97 | driver-class-name: com.mysql.jdbc.Driver | ||
98 | # 恩菲数据同步 | ||
99 | nf-db: | ||
100 | url: jdbc:mysql://113.249.91.27:3306/zhongye?characterEncoding=UTF-8&useUnicode=true&useSSL=false | ||
101 | #url: jdbc:mysql://20.0.99.3:3306/zhongye?characterEncoding=UTF-8&useUnicode=true&useSSL=false | ||
102 | username: root | ||
103 | password: jkauto@123 | ||
104 | driver-class-name: com.mysql.jdbc.Driver | ||
105 | # 多数据源配置 | ||
106 | pg-db: | ||
107 | url: jdbc:postgresql://113.249.91.27:10086/postgres?useUnicode=true&characterEncoding=UTF8 | ||
108 | #url: jdbc:postgresql://20.0.99.3:10086/postgres?useUnicode=true&characterEncoding=UTF8 | ||
109 | username: postgres | ||
110 | password: jkauto@123 | ||
111 | driver-class-name: org.postgresql.Driver | ||
112 | #redis 配置 | ||
113 | redis: | ||
114 | database: 1 | ||
115 | host: 127.0.0.1 | ||
116 | lettuce: | ||
117 | pool: | ||
118 | max-active: 20 #最大连接数据库连接数,设 0 为没有限制 | ||
119 | max-idle: 20 #最大等待连接中的数量,设 0 为没有限制 | ||
120 | max-wait: -1ms #最大建立连接等待时间。如果超过此时间将接到异常。设为-1表示无限制。 | ||
121 | min-idle: 0 #最小等待连接中的数量,设 0 为没有限制 | ||
122 | shutdown-timeout: 100ms | ||
123 | password: '' | ||
124 | port: 6379 | ||
125 | #mybatis plus 设置 | ||
126 | mybatis-plus: | ||
127 | #mapper-locations: classpath*:com/skua/modules/**/xml/*Mapper.xml | ||
128 | mapper-locations: classpath*:com/skua/**/xml/*Mapper.xml | ||
129 | global-config: | ||
130 | db-config: | ||
131 | #主键类型 0:"数据库ID自增",1:"该类型为未设置主键类型", 2:"用户输入ID", | ||
132 | #3:"全局唯一ID (数字类型唯一ID)", 4:"全局唯一ID UUID", | ||
133 | #5:"字符串全局唯一ID (idWorker 的字符串表示)"; | ||
134 | id-type: 4 | ||
135 | # 默认数据库表下划线命名 | ||
136 | table-underline: true | ||
137 | configuration: | ||
138 | call-setters-on-nulls: true | ||
139 | # 这个配置会将执行的sql打印出来,在开发或测试的时候可以用 | ||
140 | #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl | ||
141 | #数矿专用配置 | ||
142 | skua: | ||
143 | web-url: http://192.168.100.29:3000 | ||
144 | path: | ||
145 | #文件上传根目录 设置 | ||
146 | upload: D:\IdeaProjects\zhongye\file | ||
147 | #webapp文件路径 | ||
148 | webapp: D:\IdeaProjects\zhongye\file | ||
149 | # 断点续传路径 | ||
150 | chunk: D:\IdeaProjects\zhongye\file\files | ||
151 | #创蓝短信秘钥 | ||
152 | sms: | ||
153 | #应用地址 | ||
154 | accessKeyUrl: http://smssh1.253.com/msg/send/json | ||
155 | #账户 | ||
156 | accessKeyId: N8464035 | ||
157 | #密码 | ||
158 | accessKeySecret: H9eu8oABz | ||
159 | #数据采集服务频率,单位秒,注意如果调整了数据采集频率,请记得同步修改此配置 | ||
160 | collectionFrequency: 10 | ||
161 | #报警判断时间间隔 单位秒 | ||
162 | alarmTimeInterval: 600 | ||
163 | #设备报警判断时间间隔 单位秒 | ||
164 | equipAlarmTimeInterval: 300 | ||
165 | #判断是否在离线 | ||
166 | isRunTimeInterval: 3600 | ||
167 | #视频对接相关配置,未使用,待完善 | ||
168 | video: | ||
169 | lan: 113.249.91.27 | ||
170 | ip: 113.249.91.27 | ||
171 | port: 8667 | ||
172 | appkey: 21656155 | ||
173 | secretkey: llQvkzDIzmYnNiXNYxDN | ||
174 | #消息推送 | ||
175 | push: | ||
176 | #是否开启流程消息推送 | ||
177 | process-enable: false | ||
178 | mob: | ||
179 | appSecret: fd97aba79649a0322934a9c88bfceff309 | ||
180 | appKey: 3a2653ad36727 | ||
181 | pushHostName: http://api.push.mob.com/v3/push/createPush | ||
182 | packageName: com.kingtrol.flutter_zhongye | ||
183 | iosProduction: 0 | ||
184 | # 自定义逻辑,以','分割(e.g: messagePush:消息推送完后处理) | ||
185 | flow: | ||
186 | custom-logic: messagePush | ||
187 | #cas单点登录 | ||
188 | cas: | ||
189 | prefixUrl: http://cas.example.org:8443/cas | ||
190 | #不在用户目录下创建文件夹 | ||
191 | flowable: | ||
192 | content: | ||
193 | storage: | ||
194 | create-root: false | ||
195 | |||
196 | |||
197 |
-
请 注册 或 登录 后发表评论