application-dev.yml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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://36.97.65.105:53306/thsjzt?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
  11. url: jdbc:mysql://172.18.128.5:3306/thsjzt?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  12. username: thsjzt
  13. password: thsjzt
  14. # Hikari will use the above plus the following to setup connection pooling
  15. type: com.zaxxer.hikari.HikariDataSource
  16. hikari:
  17. # 等待连接池分配连接的最大时长(毫秒),超过这个时长还没有的连接则发生SQLException,默认:30秒
  18. connection-timeout: 30000
  19. # 最小连接数
  20. minimum-idle: 5
  21. # 最大连接数
  22. maximum-pool-size: 15
  23. # 自动提交
  24. auto-commit: true
  25. # 一个连接idle状态的最大时长(毫秒),超时则被释放(retired),默认:10分钟
  26. idle-timeout: 600000
  27. # 连接池的名字
  28. pool-name: DatebookHikariCP
  29. # 一个连接的生命时长(毫秒),超时而且没被使用则被释放(retired),默认:30分钟1800000ms
  30. max-lifetime: 28740000
  31. connection-test-query: SELECT 1
  32. ############################################################
  33. #
  34. # mybatis 配置
  35. #
  36. ############################################################
  37. # mybatis \配置
  38. mybatis:
  39. type-aliases-package: com.sooka.pojo
  40. mapper-locations: classpath:mapper/*.xml
  41. # 通用mapper配置
  42. mapper:
  43. mappers: com.sooka.utils.MyMapper
  44. not-empty: false
  45. identity: MYSQL
  46. ############################################################
  47. #
  48. # Server 服务器相关配置
  49. #
  50. ############################################################
  51. server:
  52. # 配置api端口号
  53. port: 5533
  54. tomcat:
  55. # tomcat的URI编码
  56. uri-encoding: UTF-8
  57. ############################################################
  58. #
  59. # 新点接口地址配置
  60. #
  61. ############################################################
  62. xd:
  63. # 基础地址
  64. base_url: http://syggzy.jlsy.gov.cn/EpointWebService/rest/projectinformation