application.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. server:
  2. port: 5002 # 端口号
  3. servlet:
  4. context-path: ${spring.application.name} # 访问路径,如果不配置,访问IP:端口号,配置后访问IP:端口号/${context-path}
  5. spring:
  6. application:
  7. name: /nlp-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/med-s?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. pagehelper:
  33. helper-dialect: mysql
  34. reasonable: true
  35. support-methods-arguments: true
  36. params: count==countSql
  37. logging: # 日志
  38. level.root: info
  39. level.org.diagbot: debug
  40. path: logs/
  41. file: nlp-web.log