application-dev.yml 2.6 KB

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