Commit 1775af20 by jscat

nyx javaapp: 功能更新

1. 调整生产版本的数据库配置 application-production.yml
parent 98c08834
#################################################################################################################
ss:
#################################################################################################################
# Data source
# Production database connections can also be auto-configured using a pooling DataSource.
# Here’s the algorithm for choosing a specific implementation:
# * We prefer the Tomcat pooling DataSource for its performance and concurrency,
# so if that is available we always choose it.
# * Otherwise, if HikariCP is available we will use it.
# * If neither the Tomcat pooling datasource nor HikariCP are available and if Commons DBCP is available
# we will use it, but we don’t recommend it in production and its support is deprecated.
# * Lastly, if Commons DBCP2 is available we will use it.
# If you use the spring-boot-starter-jdbc or spring-boot-starter-data-jpa ‘starters’ you will automatically
# get a dependency to tomcat-jdbc.
# * You can bypass that algorithm completely and specify the connection pool to use via
# the spring.datasource.type property. This is especially important if you are running your
# application in a Tomcat container as tomcat-jdbc is provided by default.
#################################################################################################################
ss:
tt: rockwell_key,rockwell_msg,rockwell_user
spring:
datasource:
rockwell_key:
url: jdbc:mysql://47.99.110.89:3306/rockwell_key
url: jdbc:mysql://47.99.110.89:3306/rockwell_key?useUnicode=true&characterEncoding=utf-8&useSSL=false
username: rockwell_dev
password: 123456
driver-class-name: com.mysql.jdbc.Driver
minimum-idle: 5
maximum-pool-size: 15
hikari:
minimum-idle: 10
maximum-pool-size: 60
validation-timeout: 3000
auto-commit: true
idle-timeout: 30000
pool-name: DatebookHikariCP
max-lifetime: 120000
idle-timeout: 60000
max-lifetime: 100000
connection-timeout: 30000
connection-test-query: SELECT 1
rockwell_msg:
url: jdbc:mysql://47.99.110.89:3306/rockwell_msg
url: jdbc:mysql://47.99.110.89:3306/rockwell_msg?useUnicode=true&characterEncoding=utf-8&useSSL=false
username: rockwell_dev
password: 123456
driver-class-name: com.mysql.jdbc.Driver
minimum-idle: 5
maximum-pool-size: 15
hikari:
minimum-idle: 10
maximum-pool-size: 60
validation-timeout: 3000
auto-commit: true
idle-timeout: 30000
pool-name: DatebookHikariCP
max-lifetime: 120000
idle-timeout: 60000
max-lifetime: 100000
connection-timeout: 30000
connection-test-query: SELECT 1
rockwell_user:
url: jdbc:mysql://47.99.110.89:3306/rockwell_user
url: jdbc:mysql://47.99.110.89:3306/rockwell_user?useUnicode=true&characterEncoding=utf-8&useSSL=false
username: rockwell_dev
password: 123456
driver-class-name: com.mysql.jdbc.Driver
minimum-idle: 5
maximum-pool-size: 15
hikari:
minimum-idle: 10
maximum-pool-size: 60
validation-timeout: 3000
auto-commit: true
idle-timeout: 30000
pool-name: DatebookHikariCP
max-lifetime: 120000
idle-timeout: 60000
max-lifetime: 100000
connection-timeout: 30000
connection-test-query: SELECT 1
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论