diff --git a/servo/src/main/resources/application-prod.yml b/servo/src/main/resources/application-prod.yml new file mode 100644 index 0000000..0933a00 --- /dev/null +++ b/servo/src/main/resources/application-prod.yml @@ -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"