Browse Source
- 新增 application-prod.yml 文件,用于定义生产环境下的应用配置 - 配置内容包括服务器端口、应用根路径、LCC 相关设置、MyBatis、JDBC、Redis、Web 资源和安全性配置jx-test
1 changed files with 88 additions and 0 deletions
@ -0,0 +1,88 @@ |
|||||
|
server: |
||||
|
port: 7779 |
||||
|
|
||||
|
app: |
||||
|
root-path: './' |
||||
|
|
||||
|
lcc: |
||||
|
location: './lcc-map' |
||||
|
autoStart: |
||||
|
# - projectUuid: tw_test |
||||
|
# envId: 1 |
||||
|
frontend-mqtt: |
||||
|
brokerUrl: tcp://10.10.9.58:1885 |
||||
|
username: admin |
||||
|
password: admin |
||||
|
websocket: mqtt://10.10.101.8:7885 |
||||
|
|
||||
|
mybatis: |
||||
|
enable: true |
||||
|
watcher: true |
||||
|
interval: 1s |
||||
|
locations: |
||||
|
- fileType: filesystem |
||||
|
location: './servo/src/main/java' |
||||
|
filter: '**/*.xml' |
||||
|
#- fileType: jar |
||||
|
# location: 'classpath*:com/yvan/workbench/**/*.xml' |
||||
|
# filter: '' |
||||
|
|
||||
|
jdbc: |
||||
|
enable: true |
||||
|
default-name: 'default' |
||||
|
data-source: |
||||
|
default: |
||||
|
jdbc-url: jdbc:p6spy:mysql://10.10.9.58:3306/rcs2_tw_zhanghui |
||||
|
username: admin |
||||
|
password: admin123456 |
||||
|
minimum-idle: 2 |
||||
|
maximum-pool-size: 100 |
||||
|
connection-test-query: 'select 1 from dual' |
||||
|
|
||||
|
redis: |
||||
|
enable: true |
||||
|
default-name: 'default' |
||||
|
data-source: |
||||
|
default: |
||||
|
mode: standalone |
||||
|
standalone: |
||||
|
host: '10.10.9.58' |
||||
|
port: 6379 |
||||
|
password: 'admin123456' |
||||
|
database: 0 |
||||
|
|
||||
|
web: |
||||
|
resources: |
||||
|
enable: true |
||||
|
mappings: |
||||
|
- hosted-path: '/' |
||||
|
location: './servo/src/main/resources/static' |
||||
|
mvc: |
||||
|
path: '/api/' |
||||
|
http-method: [ 'POST', 'GET' ] |
||||
|
package-mapping: |
||||
|
- path-prefix: '/workbench' |
||||
|
package-prefix: 'com.yvan.workbench.controller' |
||||
|
allow-packages: |
||||
|
- 'com.yvan.workbench.controller.' |
||||
|
transactional-def-datasource: [ ] |
||||
|
def-transactional: |
||||
|
datasource: [ ] |
||||
|
timeout: -1 |
||||
|
read-only: false |
||||
|
hot-reload: |
||||
|
enable: false |
||||
|
# watchFile: './build/.hotReload' |
||||
|
interval: 1s |
||||
|
exclude-packages: [ ] |
||||
|
exclude-classes: [ ] |
||||
|
locations: |
||||
|
- './servo/out/production/classes' |
||||
|
#- './servo/build/classes/java/main' |
||||
|
security: |
||||
|
enable: true |
||||
|
data-source: |
||||
|
jdbc-name: "default" |
||||
|
enable-redis: true |
||||
|
redis-name: "default" |
||||
|
redis-namespace: "yvan-lcc-bench" |
||||
Loading…
Reference in new issue