server: port: 5008 # 端口号 servlet: context-path: ${spring.application.name} # 访问路径,如果不配置,访问IP:端口号,配置后访问IP:端口号/${context-path} spring: application: name: /push-web # 项目名称 http: encoding: # http编码 force: true charset: UTF-8 enabled: true datasource: # mybatis 配置,使用druid数据源 url: jdbc:mysql://1.1.1.1:3306/bigdata-web?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 logging: # 日志 config: classpath:logback-spring.xml