更改jdk,boot版本,修改配置

This commit is contained in:
tiger_zhou 2023-02-15 18:04:57 +08:00
parent cf5b5e8919
commit 0e23653da5
2 changed files with 66 additions and 52 deletions

View File

@ -5,7 +5,7 @@
<parent> <parent>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId> <artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.5.RELEASE</version> <version>2.7.7</version>
<relativePath/> <!-- lookup parent from repository --> <relativePath/> <!-- lookup parent from repository -->
</parent> </parent>
<groupId>club.joylink</groupId> <groupId>club.joylink</groupId>
@ -15,7 +15,7 @@
<description> Rail transit simulation system</description> <description> Rail transit simulation system</description>
<properties> <properties>
<java.version>11</java.version> <java.version>17</java.version>
<pagehelper.version>4.1.1</pagehelper.version> <pagehelper.version>4.1.1</pagehelper.version>
</properties> </properties>

View File

@ -11,7 +11,10 @@ yjddzh:
receiveTimeOver: 60 receiveTimeOver: 60
spring: spring:
profiles: profiles:
active: dev default: dev
main:
allow-bean-definition-overriding: true
allow-circular-references: true
application: application:
name: joylink-rtss name: joylink-rtss
jackson: jackson:
@ -21,6 +24,17 @@ spring:
servlet: servlet:
multipart: multipart:
max-file-size: 10MB max-file-size: 10MB
datasource:
driverClassName: com.mysql.cj.jdbc.Driver
hikari:
minimum-idle: 5 # 连接池维护的最小空闲连接数
maximum-pool-size: 10 #配置最大连接池大小
auto-commit: true #配置从池返回的连接的默认自动提交行为
idle-timeout: 30000 # 允许连接在连接池中空闲的最长时间单位ms
pool-name: HikariPool
max-lifetime: 1800000 # 池中连接关闭后的最长生命周期单位ms
connection-timeout: 30000 # 等待连接的超时时间单位ms
connection-test-query: select 1
# JavaMailSender 邮件发送的配置 # JavaMailSender 邮件发送的配置
mail: mail:
host: smtp.exmail.qq.com host: smtp.exmail.qq.com
@ -38,16 +52,6 @@ spring:
port: 465 port: 465
class: javax.net.ssl.SSLSocketFactory class: javax.net.ssl.SSLSocketFactory
fallback: false fallback: false
datasource:
driverClassName: com.mysql.cj.jdbc.Driver
hikari:
minimum-idle: 5 # 连接池维护的最小空闲连接数
maximum-pool-size: 10 #配置最大连接池大小
auto-commit: true #配置从池返回的连接的默认自动提交行为
idle-timeout: 30000 # 允许连接在连接池中空闲的最长时间单位ms
pool-name: HikariPool
max-lifetime: 1800000 # 池中连接关闭后的最长生命周期单位ms
connection-timeout: 30000 # 等待连接的超时时间单位ms
mybatis: mybatis:
mapper-locations: classpath:mybatis/mapper/**/*.xml mapper-locations: classpath:mybatis/mapper/**/*.xml
# type-aliases-package: club.joylink.rtss.entity # type-aliases-package: club.joylink.rtss.entity
@ -88,7 +92,9 @@ tencent-cloud:
# 环境连接配置 start # 环境连接配置 start
--- ---
spring: spring:
profiles: dev config:
activate:
on-profile: dev
datasource: datasource:
url: jdbc:mysql://192.168.3.233:3306/joylink?useSSL=false&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true url: jdbc:mysql://192.168.3.233:3306/joylink?useSSL=false&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
username: root username: root
@ -116,7 +122,9 @@ common:
license-secret-key: joylink license-secret-key: joylink
--- ---
spring: spring:
profiles: test config:
activate:
on-profile: test
datasource: datasource:
url: jdbc:mysql://172.16.0.128:3306/joylink?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai url: jdbc:mysql://172.16.0.128:3306/joylink?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
username: root username: root
@ -147,7 +155,9 @@ common:
--- ---
spring: spring:
profiles: local-test config:
activate:
on-profile: local-test
datasource: datasource:
url: jdbc:mysql://192.168.53.22:3306/joylink?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai url: jdbc:mysql://192.168.53.22:3306/joylink?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
username: root username: root
@ -178,7 +188,9 @@ common:
--- ---
spring: spring:
profiles: prd config:
activate:
on-profile: prd
datasource: datasource:
url: jdbc:mysql://192.168.0.169:3306/joylink?useSSL=false&serverTimezone=Asia/Shanghai url: jdbc:mysql://192.168.0.169:3306/joylink?useSSL=false&serverTimezone=Asia/Shanghai
username: root username: root
@ -212,7 +224,9 @@ common:
--- ---
spring: spring:
profiles: local config:
activate:
on-profile: local
datasource: datasource:
url: jdbc:mysql://192.168.1.254:3306/joylink?useSSL=false&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true url: jdbc:mysql://192.168.1.254:3306/joylink?useSSL=false&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
username: root username: root