12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- spring:
- ############################################################
- #
- # 配置数据源相关 使用 HikariCP 数据源
- #
- ############################################################
- # jdbc_config datasource
- datasource:
- 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://59.198.246.77:32368/jl503034?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
- username: jl503034
- password: Cs56DIi9
- # 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
- application:
- name: zsj-api1
- jersey:
- application-path: api
- cloud:
- nacos:
- discovery:
- server-addr: 192.168.1.100:8848
- ############################################################
- #
- # 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: 5522
- tomcat:
- # tomcat的URI编码
- uri-encoding: UTF-8
|