application-prod.yml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. spring:
  2. ############################################################
  3. #
  4. # 配置数据源相关 使用 HikariCP 数据源
  5. #
  6. ############################################################
  7. # jdbc_config datasource
  8. datasource:
  9. driver-class-name: com.mysql.cj.jdbc.Driver
  10. # url: jdbc:mysql://59.198.246.77:32368/jl503034?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
  11. # username: jl503034
  12. # password: Cs56DIi9
  13. url: jdbc:mysql://59.198.246.77:32368/jl503034?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
  14. username: jl503034
  15. password: Cs56DIi9
  16. # Hikari will use the above plus the following to setup connection pooling
  17. type: com.zaxxer.hikari.HikariDataSource
  18. hikari:
  19. # 等待连接池分配连接的最大时长(毫秒),超过这个时长还没有的连接则发生SQLException,默认:30秒
  20. connection-timeout: 30000
  21. # 最小连接数
  22. minimum-idle: 5
  23. # 最大连接数
  24. maximum-pool-size: 15
  25. # 自动提交
  26. auto-commit: true
  27. # 一个连接idle状态的最大时长(毫秒),超时则被释放(retired),默认:10分钟
  28. idle-timeout: 600000
  29. # 连接池的名字
  30. pool-name: DatebookHikariCP
  31. # 一个连接的生命时长(毫秒),超时而且没被使用则被释放(retired),默认:30分钟1800000ms
  32. max-lifetime: 28740000
  33. connection-test-query: SELECT 1
  34. application:
  35. name: zsj-api1
  36. jersey:
  37. application-path: api
  38. cloud:
  39. nacos:
  40. discovery:
  41. server-addr: 192.168.1.100:8848
  42. ############################################################
  43. #
  44. # mybatis 配置
  45. #
  46. ############################################################
  47. # mybatis \配置
  48. mybatis:
  49. type-aliases-package: com.sooka.pojo
  50. mapper-locations: classpath:mapper/*.xml
  51. # 通用mapper配置
  52. mapper:
  53. mappers: com.sooka.utils.MyMapper
  54. not-empty: false
  55. identity: MYSQL
  56. ############################################################
  57. #
  58. # Server 服务器相关配置
  59. #
  60. ############################################################
  61. server:
  62. # 配置api端口号
  63. port: 5522
  64. tomcat:
  65. # tomcat的URI编码
  66. uri-encoding: UTF-8