application.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. server:
  2. port: 5008 # 端口号
  3. servlet:
  4. context-path: ${spring.application.name} # 访问路径,如果不配置,访问IP:端口号,配置后访问IP:端口号/${context-path}
  5. spring:
  6. application:
  7. name: /push-web # 项目名称
  8. http:
  9. encoding: # http编码
  10. force: true
  11. charset: UTF-8
  12. enabled: true
  13. datasource: # mybatis 配置,使用druid数据源
  14. url: jdbc:mysql://1.1.1.1:3306/bigdata-web?useUnicode=true&characterEncoding=UTF-8
  15. username: root
  16. password: diagbot@20180822
  17. type: com.alibaba.druid.pool.DruidDataSource
  18. driver-class-name: com.mysql.jdbc.Driver
  19. filters: stat
  20. maxActive: 20
  21. initialSize: 1
  22. maxWait: 60000
  23. minIdle: 1
  24. timeBetweenEvictionRunsMillis: 60000
  25. minEvictableIdleTimeMillis: 300000
  26. validationQuery: select 'x'
  27. testWhileIdle: true
  28. testOnBorrow: false
  29. testOnReturn: false
  30. poolPreparedStatements: true
  31. maxOpenPreparedStatements: 20
  32. logging: # 日志
  33. config: classpath:logback-spring.xml