application-dev.yml 2.4 KB

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