12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- spring:
- ############################################################
- #
- # 配置数据源相关 使用 HikariCP 数据源
- #
- ############################################################
- # jdbc_config datasource
- datasource:
- driver-class-name: com.mysql.cj.jdbc.Driver
- # url: jdbc:mysql://36.97.65.105:53306/thsjzt?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
- # 互联网
- # url: jdbc:mysql://10.0.51.4:8888/thsjzt?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
- # 政务网 Vpn
- # url: jdbc:mysql://172.17.5.7:3306/thsjzt?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
- # 政务网 dzzw
- url: jdbc:mysql://172.18.128.8:3306/thsjzt?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&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
- ############################################################
- #
- # mybatis 配置
- #
- ############################################################
- # mybatis \配置
- mybatis:
- type-aliases-package: com.sooka.pojo
- mapper-locations: classpath:mapper/*.xml
- # 通用mapper配置
- mapper:
- mappers: com.sooka.utils.MyMapper
- not-empty: false
- identity: MYSQL
- ############################################################
- #
- # Server 服务器相关配置
- #
- ############################################################
- server:
- # 配置api端口号
- port: 5533
- tomcat:
- # tomcat的URI编码
- uri-encoding: UTF-8
- ############################################################
- #
- # 新点接口地址配置
- #
- ############################################################
- xd:
- # 基础地址
- base_url: http://syggzy.jlsy.gov.cn/EpointWebService/rest/projectinformation
|