Commit ae05aa90120567d41fee521f76266a5ffd389637
1 parent
5b6e97a2
[yml格式不规范]导致启动报错
Showing
4 changed files
with
50 additions
and
50 deletions
jeecg-boot/jeecg-boot-module-system/src/main/resources/application-dev.yml
... | ... | @@ -174,16 +174,16 @@ mybatis-plus: |
174 | 174 | # 返回类型为Map,显示null对应的字段 |
175 | 175 | call-setters-on-nulls: true |
176 | 176 | #jeecg专用配置 |
177 | -minidao : | |
177 | +minidao: | |
178 | 178 | base-package: org.jeecg.modules.jmreport.* |
179 | -jeecg : | |
179 | +jeecg: | |
180 | 180 | # 是否启用安全模式 |
181 | 181 | safeMode: false |
182 | 182 | # 签名密钥串(前后端要一致,正式发布请自行修改) |
183 | 183 | signatureSecret: dd05f1c54d63749eda95f9fa6d49v442a |
184 | 184 | # 本地:local\Minio:minio\阿里云:alioss |
185 | 185 | uploadType: local |
186 | - path : | |
186 | + path: | |
187 | 187 | #文件上传根目录 设置 |
188 | 188 | upload: /opt/upFiles |
189 | 189 | #webapp文件路径 |
... | ... | @@ -268,7 +268,7 @@ cas: |
268 | 268 | #Mybatis输出sql日志 |
269 | 269 | logging: |
270 | 270 | level: |
271 | - org.jeecg.modules.system.mapper : info | |
271 | + org.jeecg.modules.system.mapper: info | |
272 | 272 | #swagger |
273 | 273 | knife4j: |
274 | 274 | #开启增强配置 |
... | ... |
jeecg-boot/jeecg-boot-module-system/src/main/resources/application-dm8.yml
... | ... | @@ -14,16 +14,16 @@ server: |
14 | 14 | mime-types: application/javascript,application/json,application/xml,text/html,text/xml,text/plain,text/css,image/* |
15 | 15 | |
16 | 16 | management: |
17 | - endpoints: | |
18 | - web: | |
19 | - exposure: | |
20 | - include: metrics,httptrace | |
17 | + endpoints: | |
18 | + web: | |
19 | + exposure: | |
20 | + include: metrics,httptrace | |
21 | 21 | |
22 | 22 | spring: |
23 | 23 | servlet: |
24 | - multipart: | |
25 | - max-file-size: 10MB | |
26 | - max-request-size: 10MB | |
24 | + multipart: | |
25 | + max-file-size: 10MB | |
26 | + max-request-size: 10MB | |
27 | 27 | mail: |
28 | 28 | host: smtp.163.com |
29 | 29 | username: jeecgos@163.com |
... | ... | @@ -79,8 +79,8 @@ spring: |
79 | 79 | static-path-pattern: /** |
80 | 80 | resource: |
81 | 81 | static-locations: classpath:/static/,classpath:/public/ |
82 | -# autoconfigure: | |
83 | -# exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure | |
82 | + # autoconfigure: | |
83 | + # exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure | |
84 | 84 | datasource: |
85 | 85 | type: com.alibaba.druid.pool.DruidDataSource |
86 | 86 | druid: |
... | ... | @@ -132,14 +132,14 @@ mybatis-plus: |
132 | 132 | # 返回类型为Map,显示null对应的字段 |
133 | 133 | call-setters-on-nulls: true |
134 | 134 | #jeecg专用配置 |
135 | -jeecg : | |
135 | +jeecg: | |
136 | 136 | # 是否启用安全模式 |
137 | 137 | safeMode: false |
138 | 138 | # 签名密钥串(前后端要一致,正式发布请自行修改) |
139 | 139 | signatureSecret: dd05f1c54d63749eda95f9fa6d49v442a |
140 | 140 | # 本地:local\Minio:minio\阿里云:alioss |
141 | 141 | uploadType: alioss |
142 | - path : | |
142 | + path: | |
143 | 143 | #文件上传根目录 设置 |
144 | 144 | upload: D://opt//upFiles |
145 | 145 | #webapp文件路径 |
... | ... | @@ -197,7 +197,7 @@ jeecg : |
197 | 197 | port: 30007 |
198 | 198 | logPath: logs/jeecg/job/jobhandler/ |
199 | 199 | logRetentionDays: 30 |
200 | - #自定义路由配置 yml nacos database | |
200 | + #自定义路由配置 yml nacos database | |
201 | 201 | route: |
202 | 202 | config: |
203 | 203 | data-id: jeecg-gateway-router |
... | ... | @@ -215,7 +215,7 @@ cas: |
215 | 215 | #Mybatis输出sql日志 |
216 | 216 | logging: |
217 | 217 | level: |
218 | - org.jeecg.modules.system.mapper : info | |
218 | + org.jeecg.modules.system.mapper: info | |
219 | 219 | #enable swagger |
220 | 220 | swagger: |
221 | 221 | enable: true |
... | ... |
jeecg-boot/jeecg-boot-module-system/src/main/resources/application-prod.yml
... | ... | @@ -174,22 +174,22 @@ mybatis-plus: |
174 | 174 | # 返回类型为Map,显示null对应的字段 |
175 | 175 | call-setters-on-nulls: true |
176 | 176 | #jeecg专用配置 |
177 | -minidao : | |
177 | +minidao: | |
178 | 178 | base-package: org.jeecg.modules.jmreport.* |
179 | -jeecg : | |
179 | +jeecg: | |
180 | 180 | # 是否启用安全模式 |
181 | 181 | safeMode: false |
182 | 182 | # 签名密钥串(前后端要一致,正式发布请自行修改) |
183 | 183 | signatureSecret: dd05f1c54d63749eda95f9fa6d49v442a |
184 | 184 | # 本地:local\Minio:minio\阿里云:alioss |
185 | 185 | uploadType: alioss |
186 | - path : | |
186 | + path: | |
187 | 187 | #文件上传根目录 设置 |
188 | 188 | upload: /opt/jeecg-boot/upload |
189 | 189 | #webapp文件路径 |
190 | 190 | webapp: /opt/jeecg-boot/webapp |
191 | 191 | shiro: |
192 | - excludeUrls: /test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/category/**,/visual/**,/map/**,/jmreport/bigscreen2/**,/api/getUserInfo | |
192 | + excludeUrls: /test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/category/**,/visual/**,/map/**,/jmreport/bigscreen2/**,/api/getUserInfo | |
193 | 193 | #阿里云oss存储和大鱼短信秘钥配置 |
194 | 194 | oss: |
195 | 195 | accessKey: ?? |
... | ... | @@ -262,7 +262,7 @@ cas: |
262 | 262 | #Mybatis输出sql日志 |
263 | 263 | logging: |
264 | 264 | level: |
265 | - org.jeecg.modules.system.mapper : info | |
265 | + org.jeecg.modules.system.mapper: info | |
266 | 266 | #swagger |
267 | 267 | knife4j: |
268 | 268 | #开启增强配置 |
... | ... |
jeecg-boot/jeecg-boot-module-system/src/main/resources/application-test.yml
... | ... | @@ -133,34 +133,34 @@ spring: |
133 | 133 | # 通过connectProperties属性来打开mergeSql功能;慢SQL记录 |
134 | 134 | connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000 |
135 | 135 | datasource: |
136 | - master: | |
137 | - url: jdbc:mysql://127.0.0.1:3306/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai | |
138 | - username: root | |
139 | - password: root | |
140 | - driver-class-name: com.mysql.cj.jdbc.Driver | |
136 | + master: | |
137 | + url: jdbc:mysql://127.0.0.1:3306/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai | |
138 | + username: root | |
139 | + password: root | |
140 | + driver-class-name: com.mysql.cj.jdbc.Driver | |
141 | 141 | # 多数据源配置 |
142 | 142 | #multi-datasource1: |
143 | - #url: jdbc:mysql://localhost:3306/jeecg-boot2?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai | |
144 | - #username: root | |
145 | - #password: root | |
146 | - #driver-class-name: com.mysql.cj.jdbc.Driver | |
143 | + #url: jdbc:mysql://localhost:3306/jeecg-boot2?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai | |
144 | + #username: root | |
145 | + #password: root | |
146 | + #driver-class-name: com.mysql.cj.jdbc.Driver | |
147 | 147 | #redis 配置 |
148 | 148 | redis: |
149 | - database: 0 | |
150 | - host: 192.168.1.199 | |
151 | - lettuce: | |
152 | - pool: | |
153 | - max-active: 8 #最大连接数据库连接数,设 -1 为没有限制 | |
154 | - max-idle: 8 #最大等待连接中的数量,设 0 为没有限制 | |
155 | - max-wait: -1ms #最大建立连接等待时间。如果超过此时间将接到异常。设为-1表示无限制。 | |
156 | - min-idle: 0 #最小等待连接中的数量,设 0 为没有限制 | |
157 | - shutdown-timeout: 100ms | |
158 | - password: '' | |
159 | - port: 6379 | |
149 | + database: 0 | |
150 | + host: 192.168.1.199 | |
151 | + lettuce: | |
152 | + pool: | |
153 | + max-active: 8 #最大连接数据库连接数,设 -1 为没有限制 | |
154 | + max-idle: 8 #最大等待连接中的数量,设 0 为没有限制 | |
155 | + max-wait: -1ms #最大建立连接等待时间。如果超过此时间将接到异常。设为-1表示无限制。 | |
156 | + min-idle: 0 #最小等待连接中的数量,设 0 为没有限制 | |
157 | + shutdown-timeout: 100ms | |
158 | + password: '' | |
159 | + port: 6379 | |
160 | 160 | #mybatis plus 设置 |
161 | 161 | mybatis-plus: |
162 | - mapper-locations: classpath*:org/jeecg/modules/**/xml/*Mapper.xml | |
163 | - global-config: | |
162 | + mapper-locations: classpath*:org/jeecg/modules/**/xml/*Mapper.xml | |
163 | + global-config: | |
164 | 164 | # 关闭MP3.0自带的banner |
165 | 165 | banner: false |
166 | 166 | db-config: |
... | ... | @@ -168,28 +168,28 @@ mybatis-plus: |
168 | 168 | id-type: ASSIGN_ID |
169 | 169 | # 默认数据库表下划线命名 |
170 | 170 | table-underline: true |
171 | - configuration: | |
171 | + configuration: | |
172 | 172 | # 这个配置会将执行的sql打印出来,在开发或测试的时候可以用 |
173 | 173 | log-impl: org.apache.ibatis.logging.stdout.StdOutImpl |
174 | 174 | # 返回类型为Map,显示null对应的字段 |
175 | 175 | call-setters-on-nulls: true |
176 | 176 | #jeecg专用配置 |
177 | -minidao : | |
177 | +minidao: | |
178 | 178 | base-package: org.jeecg.modules.jmreport.* |
179 | -jeecg : | |
179 | +jeecg: | |
180 | 180 | # 是否启用安全模式 |
181 | 181 | safeMode: false |
182 | 182 | # 签名密钥串(前后端要一致,正式发布请自行修改) |
183 | 183 | signatureSecret: dd05f1c54d63749eda95f9fa6d49v442a |
184 | 184 | # 本地:local\Minio:minio\阿里云:alioss |
185 | 185 | uploadType: local |
186 | - path : | |
186 | + path: | |
187 | 187 | #文件上传根目录 设置 |
188 | 188 | upload: D://opt//upFiles |
189 | 189 | #webapp文件路径 |
190 | 190 | webapp: D://opt//webapp |
191 | 191 | shiro: |
192 | - excludeUrls: /test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/category/**,/visual/**,/map/**,/jmreport/bigscreen2/** | |
192 | + excludeUrls: /test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/category/**,/visual/**,/map/**,/jmreport/bigscreen2/** | |
193 | 193 | #阿里云oss存储和大鱼短信秘钥配置 |
194 | 194 | oss: |
195 | 195 | accessKey: ?? |
... | ... | @@ -259,7 +259,7 @@ jeecg : |
259 | 259 | #Mybatis输出sql日志 |
260 | 260 | logging: |
261 | 261 | level: |
262 | - org.jeecg.modules.system.mapper : info | |
262 | + org.jeecg.modules.system.mapper: info | |
263 | 263 | #cas单点登录 |
264 | 264 | cas: |
265 | 265 | prefixUrl: http://cas.example.org:8443/cas |
... | ... |