application-dev.yml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. spring:
  2. ############################################################
  3. #
  4. # 配置数据源相关 使用 HikariCP 数据源
  5. #
  6. ############################################################
  7. # jdbc_config datasource
  8. # datasource:
  9. # dynamic:
  10. # primary: db1
  11. # datasource:
  12. # db1:
  13. # url: jdbc:mysql://172.18.128.8:3306/thsjzt?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
  14. ## url: jdbc:mysql://172.17.5.7:3306/thsjzt?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
  15. #
  16. # username: thsjzt
  17. # password: thsjzt
  18. # # Hikari will use the above plus the following to setup connection pooling
  19. # type: com.zaxxer.hikari.HikariDataSource
  20. # hikari:
  21. # # 等待连接池分配连接的最大时长(毫秒),超过这个时长还没有的连接则发生SQLException,默认:30秒
  22. # connection-timeout: 30000
  23. # # 最小连接数
  24. # minimum-idle: 5
  25. # # 最大连接数
  26. # maximum-pool-size: 15
  27. # # 自动提交
  28. # auto-commit: true
  29. # # 一个连接idle状态的最大时长(毫秒),超时则被释放(retired),默认:10分钟
  30. # idle-timeout: 600000
  31. # # 连接池的名字
  32. # pool-name: DatebookHikariCP
  33. # # 一个连接的生命时长(毫秒),超时而且没被使用则被释放(retired),默认:30分钟1800000ms
  34. # max-lifetime: 28740000
  35. # connection-test-query: SELECT 1
  36. #
  37. # db2:
  38. ## url: jdbc:mysql://172.17.5.7:3306/thsjzt?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
  39. ## username: thsjzt
  40. ## password: thsjzt
  41. #
  42. # url: jdbc:mysql://59.198.246.77:32368/jl503033?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
  43. # username: jl503033
  44. # password: Bx82TIg0
  45. # # Hikari will use the above plus the following to setup connection pooling
  46. # type: com.zaxxer.hikari.HikariDataSource
  47. # hikari:
  48. # # 等待连接池分配连接的最大时长(毫秒),超过这个时长还没有的连接则发生SQLException,默认:30秒
  49. # connection-timeout: 30000
  50. # # 最小连接数
  51. # minimum-idle: 5
  52. # # 最大连接数
  53. # maximum-pool-size: 15
  54. # # 自动提交
  55. # auto-commit: true
  56. # # 一个连接idle状态的最大时长(毫秒),超时则被释放(retired),默认:10分钟
  57. # idle-timeout: 600000
  58. # # 连接池的名字
  59. # pool-name: DatebookHikariCP
  60. # # 一个连接的生命时长(毫秒),超时而且没被使用则被释放(retired),默认:30分钟1800000ms
  61. # max-lifetime: 28740000
  62. # connection-test-query: SELECT 1
  63. # driver-class-name: com.mysql.cj.jdbc.Driver
  64. # url: jdbc:mysql://59.198.246.77:32368/jl503034?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
  65. # username: jl503034
  66. # password: Cs56DIi9
  67. # url: jdbc:mysql://172.17.5.7:3306/thsjzt?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
  68. # url: jdbc:mysql://10.0.51.4:8888/thsjzt?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
  69. jersey:
  70. application-path: api
  71. ############################################################
  72. #
  73. # mybatis 配置
  74. #
  75. ############################################################
  76. # mybatis \配置
  77. mybatis:
  78. type-aliases-package: com.sooka.pojo
  79. mapper-locations: classpath:mapper/*.xml,system/*.xml
  80. # 通用mapper配置
  81. mapper:
  82. mappers: com.sooka.utils.MyMapper
  83. not-empty: false
  84. identity: MYSQL
  85. ############################################################
  86. #
  87. # Server 服务器相关配置
  88. #
  89. ############################################################
  90. server:
  91. # 配置api端口号
  92. port: 5522
  93. tomcat:
  94. # tomcat的URI编码
  95. uri-encoding: UTF-8
  96. ############################################################
  97. #
  98. # 新点接口地址配置
  99. #
  100. ############################################################
  101. xd:
  102. # 基础地址
  103. base_url: http://syggzy.jlsy.gov.cn/EpointWebService/rest/projectinformation