application-dev.yml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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://192.168.1.144:3306/s-zsj?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
  14. username: root
  15. password: 123456
  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. jersey:
  35. application-path: api
  36. ############################################################
  37. #
  38. # mybatis 配置
  39. #
  40. ############################################################
  41. # mybatis \配置
  42. mybatis:
  43. type-aliases-package: com.sooka.pojo
  44. mapper-locations: classpath:mapper/*.xml
  45. # 通用mapper配置
  46. mapper:
  47. mappers: com.sooka.utils.MyMapper
  48. not-empty: false
  49. identity: MYSQL
  50. ############################################################
  51. #
  52. # Server 服务器相关配置
  53. #
  54. ############################################################
  55. server:
  56. # 配置api端口号
  57. port: 5522
  58. tomcat:
  59. # tomcat的URI编码
  60. uri-encoding: UTF-8
  61. ############################################################
  62. #
  63. # 新点接口地址配置
  64. #
  65. ############################################################
  66. xd:
  67. # 基础地址
  68. base_url: http://syggzy.jlsy.gov.cn/EpointWebService/rest/projectinformation