1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- server:
- port: 5002 # 端口号
- servlet:
- context-path: ${spring.application.name} # 访问路径,如果不配置,访问IP:端口号,配置后访问IP:端口号/${context-path}
- spring:
- application:
- name: /nlp-web # 项目名称
- http:
- encoding: # http编码
- force: true
- charset: UTF-8
- enabled: true
- datasource: # mybatis 配置,使用druid数据源
- url: jdbc:mysql://1.1.1.1:3306/med-s?useUnicode=true&characterEncoding=UTF-8
- username: root
- password: diagbot@20180822
- type: com.alibaba.druid.pool.DruidDataSource
- driver-class-name: com.mysql.jdbc.Driver
- filters: stat
- maxActive: 20
- initialSize: 1
- maxWait: 60000
- minIdle: 1
- timeBetweenEvictionRunsMillis: 60000
- minEvictableIdleTimeMillis: 300000
- validationQuery: select 'x'
- testWhileIdle: true
- testOnBorrow: false
- testOnReturn: false
- poolPreparedStatements: true
- maxOpenPreparedStatements: 20
- pagehelper:
- helper-dialect: mysql
- reasonable: true
- support-methods-arguments: true
- params: count==countSql
- logging: # 日志
- level.root: info
- level.org.diagbot: debug
- path: logs/
- file: nlp-web.log
|