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

View File

@ -11,7 +11,10 @@ yjddzh:
receiveTimeOver: 60
spring:
profiles:
active: dev
default: dev
main:
allow-bean-definition-overriding: true
allow-circular-references: true
application:
name: joylink-rtss
jackson:
@ -21,6 +24,17 @@ spring:
servlet:
multipart:
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 邮件发送的配置
mail:
host: smtp.exmail.qq.com
@ -38,16 +52,6 @@ spring:
port: 465
class: javax.net.ssl.SSLSocketFactory
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:
mapper-locations: classpath:mybatis/mapper/**/*.xml
# type-aliases-package: club.joylink.rtss.entity
@ -88,7 +92,9 @@ tencent-cloud:
# 环境连接配置 start
---
spring:
profiles: dev
config:
activate:
on-profile: dev
datasource:
url: jdbc:mysql://192.168.3.233:3306/joylink?useSSL=false&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
username: root
@ -116,7 +122,9 @@ common:
license-secret-key: joylink
---
spring:
profiles: test
config:
activate:
on-profile: test
datasource:
url: jdbc:mysql://172.16.0.128:3306/joylink?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
username: root
@ -147,7 +155,9 @@ common:
---
spring:
profiles: local-test
config:
activate:
on-profile: local-test
datasource:
url: jdbc:mysql://192.168.53.22:3306/joylink?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
username: root
@ -178,7 +188,9 @@ common:
---
spring:
profiles: prd
config:
activate:
on-profile: prd
datasource:
url: jdbc:mysql://192.168.0.169:3306/joylink?useSSL=false&serverTimezone=Asia/Shanghai
username: root
@ -212,7 +224,9 @@ common:
---
spring:
profiles: local
config:
activate:
on-profile: local
datasource:
url: jdbc:mysql://192.168.1.254:3306/joylink?useSSL=false&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
username: root