123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- spring:
- ############################################################
- #
- # 配置数据源相关 使用 HikariCP 数据源
- #
- ############################################################
- # jdbc_config datasource
- # datasource:
- # dynamic:
- # primary: db1
- # datasource:
- # db1:
- # url: jdbc:mysql://172.18.128.8:3306/thsjzt?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
- ## url: jdbc:mysql://172.17.5.7:3306/thsjzt?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
- #
- # username: thsjzt
- # password: thsjzt
- # # Hikari will use the above plus the following to setup connection pooling
- # type: com.zaxxer.hikari.HikariDataSource
- # hikari:
- # # 等待连接池分配连接的最大时长(毫秒),超过这个时长还没有的连接则发生SQLException,默认:30秒
- # connection-timeout: 30000
- # # 最小连接数
- # minimum-idle: 5
- # # 最大连接数
- # maximum-pool-size: 15
- # # 自动提交
- # auto-commit: true
- # # 一个连接idle状态的最大时长(毫秒),超时则被释放(retired),默认:10分钟
- # idle-timeout: 600000
- # # 连接池的名字
- # pool-name: DatebookHikariCP
- # # 一个连接的生命时长(毫秒),超时而且没被使用则被释放(retired),默认:30分钟1800000ms
- # max-lifetime: 28740000
- # connection-test-query: SELECT 1
- #
- # db2:
- ## url: jdbc:mysql://172.17.5.7:3306/thsjzt?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
- ## username: thsjzt
- ## password: thsjzt
- #
- # url: jdbc:mysql://59.198.246.77:32368/jl503033?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
- # username: jl503033
- # password: Bx82TIg0
- # # Hikari will use the above plus the following to setup connection pooling
- # type: com.zaxxer.hikari.HikariDataSource
- # hikari:
- # # 等待连接池分配连接的最大时长(毫秒),超过这个时长还没有的连接则发生SQLException,默认:30秒
- # connection-timeout: 30000
- # # 最小连接数
- # minimum-idle: 5
- # # 最大连接数
- # maximum-pool-size: 15
- # # 自动提交
- # auto-commit: true
- # # 一个连接idle状态的最大时长(毫秒),超时则被释放(retired),默认:10分钟
- # idle-timeout: 600000
- # # 连接池的名字
- # pool-name: DatebookHikariCP
- # # 一个连接的生命时长(毫秒),超时而且没被使用则被释放(retired),默认:30分钟1800000ms
- # max-lifetime: 28740000
- # connection-test-query: SELECT 1
- # driver-class-name: com.mysql.cj.jdbc.Driver
- # url: jdbc:mysql://59.198.246.77:32368/jl503034?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
- # username: jl503034
- # password: Cs56DIi9
- # url: jdbc:mysql://172.17.5.7:3306/thsjzt?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
- # url: jdbc:mysql://10.0.51.4:8888/thsjzt?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
- jersey:
- application-path: api
- ############################################################
- #
- # mybatis 配置
- #
- ############################################################
- # mybatis \配置
- mybatis:
- type-aliases-package: com.sooka.pojo
- mapper-locations: classpath:mapper/*.xml,system/*.xml
- # 通用mapper配置
- mapper:
- mappers: com.sooka.utils.MyMapper
- not-empty: false
- identity: MYSQL
- ############################################################
- #
- # Server 服务器相关配置
- #
- ############################################################
- server:
- # 配置api端口号
- port: 5522
- tomcat:
- # tomcat的URI编码
- uri-encoding: UTF-8
- ############################################################
- #
- # 新点接口地址配置
- #
- ############################################################
- xd:
- # 基础地址
- base_url: http://syggzy.jlsy.gov.cn/EpointWebService/rest/projectinformation
|