Skip to content

Commit 34d3e3a

Browse files
author
zhuxiao
committed
升级jdk17、springboot3
1 parent 779becc commit 34d3e3a

File tree

93 files changed

+422
-370
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+422
-370
lines changed

conf/devCommons/config/application.yml

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ server:
55
servlet:
66
context-path: / #设置应用的目录. 前缀需要带/, 无需设置后缀, 示例 【 /xxx 】 or 【 / 】
77
spring:
8+
main:
9+
allow-circular-references: true
810
servlet:
911
multipart:
1012
enabled: true #是否启用http上传处理
1113
max-request-size: 10MB #最大请求文件的大小
1214
max-file-size: 10MB #设置单个文件最大长度
13-
resources:
14-
static-locations: classpath:/static #项目静态资源路径 (可直接通过http访问)
1515
freemarker:
1616
template-loader-path: classpath:/templates #freemarker模板目录
1717
template-encoding: UTF-8
@@ -45,11 +45,12 @@ spring:
4545
connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
4646
cache:
4747
type: redis
48-
redis:
49-
host: 127.0.0.1
50-
port: 6379
51-
timeout: 1000
52-
password:
48+
data:
49+
redis:
50+
host: 127.0.0.1
51+
port: 6379
52+
timeout: 1000
53+
password:
5354

5455
# #activeMQ配置 ( 注意: activeMQ配置项需在spring的下级 )
5556
activemq:
@@ -86,15 +87,32 @@ spring:
8687
#日志配置参数。
8788
# 当存在logback-spring.xml文件时: 该配置将引进到logback配置, springboot配置不生效。
8889
# 不存在logback-spring.xml 文件时, 使用springboot的配置, 同样可用。
90+
web:
91+
resources:
92+
static-locations: classpath:/static
8993
logging:
9094
level:
9195
root: info #主日志级别
9296
com.jeequan.jeepay: debug #该项目日志级别,当需要打印sql时请开启为debug
93-
path: ./logs #日志存放地址
97+
file:
98+
path: ./logs
9499

100+
springdoc:
101+
swagger-ui:
102+
path: /swagger-ui.html
103+
tags-sorter: alpha
104+
operations-sorter: alpha
105+
api-docs:
106+
path: /v3/api-docs
107+
group-configs:
108+
- group: 'default'
109+
paths-to-match: '/**'
110+
packages-to-scan: com.jeequan.jeepay.mgr.ctrl.isv
95111
# knife4j APIDOC文档
96112
knife4j:
97113
enable: true
114+
setting:
115+
language: zh_cn
98116

99117
#系统业务参数
100118
isys:

jeepay-components/jeepay-components-mq/pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@
2525
<artifactId>jeepay-core</artifactId>
2626
</dependency>
2727

28-
<dependency>
29-
<groupId>javax.annotation</groupId>
30-
<artifactId>javax.annotation-api</artifactId>
31-
<scope>provided</scope> <!-- 仅编译依赖该jar, 运行时存在 -->
32-
</dependency>
33-
3428
<!-- ↓↓↓↓↓↓ MQ依赖包 ↓↓↓↓↓↓ -->
3529
<!-- 使用的厂商 scope=compile, 否则需要scope=provided(仅编译,不依赖) -->
3630

jeepay-components/jeepay-components-mq/src/main/java/com/jeequan/jeepay/components/mq/vender/activemq/ActiveMQConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
import org.springframework.jms.config.JmsListenerContainerFactory;
2727
import org.springframework.stereotype.Component;
2828

29-
import javax.jms.ConnectionFactory;
30-
import javax.jms.Destination;
29+
import jakarta.jms.ConnectionFactory;
30+
import jakarta.jms.Destination;
3131
import java.util.Map;
3232
import java.util.concurrent.ConcurrentHashMap;
3333

jeepay-components/jeepay-components-mq/src/main/java/com/jeequan/jeepay/components/mq/vender/activemq/ActiveMQSender.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import org.springframework.jms.core.JmsTemplate;
2525
import org.springframework.stereotype.Component;
2626

27-
import javax.jms.TextMessage;
27+
import jakarta.jms.TextMessage;
2828

2929
/**
3030
* activeMQ 消息发送器的实现

jeepay-components/jeepay-components-mq/src/main/java/com/jeequan/jeepay/components/mq/vender/rabbitmq/RabbitMQConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@
2121
import com.jeequan.jeepay.components.mq.constant.MQVenderCS;
2222
import com.jeequan.jeepay.components.mq.model.AbstractMQ;
2323
import com.jeequan.jeepay.core.utils.SpringBeansUtil;
24+
import jakarta.annotation.PostConstruct;
2425
import org.springframework.amqp.core.*;
2526
import org.springframework.beans.factory.annotation.Autowired;
2627
import org.springframework.beans.factory.annotation.Qualifier;
2728
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
2829
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
2930
import org.springframework.stereotype.Component;
3031

31-
import javax.annotation.PostConstruct;
3232
import java.util.Set;
3333

3434
/**

jeepay-components/jeepay-components-oss/pom.xml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,16 @@
5050
<scope>provided</scope> <!-- 仅编译依赖该jar, 运行时存在 -->
5151
</dependency>
5252

53-
<dependency>
54-
<groupId>javax.annotation</groupId>
55-
<artifactId>javax.annotation-api</artifactId>
56-
<scope>provided</scope> <!-- 仅编译依赖该jar, 运行时存在 -->
57-
</dependency>
58-
5953
<!-- 阿里云oss组件 -->
6054
<dependency>
6155
<groupId>com.aliyun.oss</groupId>
6256
<artifactId>aliyun-sdk-oss</artifactId>
6357
<scope>provided</scope> <!-- 当对象存储使用aliyunOSS时,需要改为:compile, 否则使用provided仅用于编译代码 -->
6458
</dependency>
59+
<dependency>
60+
<groupId>jakarta.annotation</groupId>
61+
<artifactId>jakarta.annotation-api</artifactId>
62+
</dependency>
6563

6664
</dependencies>
6765

jeepay-components/jeepay-components-oss/src/main/java/com/jeequan/jeepay/components/oss/service/AliyunOssService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
import com.aliyun.oss.model.GetObjectRequest;
2121
import com.jeequan.jeepay.components.oss.config.AliyunOssYmlConfig;
2222
import com.jeequan.jeepay.components.oss.constant.OssSavePlaceEnum;
23+
import jakarta.annotation.PostConstruct;
2324
import lombok.extern.slf4j.Slf4j;
2425
import org.springframework.beans.factory.annotation.Autowired;
2526
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
2627
import org.springframework.stereotype.Service;
2728
import org.springframework.web.multipart.MultipartFile;
2829

29-
import javax.annotation.PostConstruct;
3030
import java.io.File;
3131

3232
/**

jeepay-core/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@
4141
</dependency>
4242

4343
<dependency>
44-
<groupId>javax.servlet</groupId>
45-
<artifactId>javax.servlet-api</artifactId>
44+
<groupId>jakarta.servlet</groupId>
45+
<artifactId>jakarta.servlet-api</artifactId>
4646
<scope>provided</scope> <!-- 仅编译依赖该jar, 运行时存在 -->
4747
</dependency>
4848

4949
<!-- mybatis plus -->
5050
<dependency>
5151
<groupId>com.baomidou</groupId>
52-
<artifactId>mybatis-plus-boot-starter</artifactId>
52+
<artifactId>mybatis-plus-spring-boot3-starter</artifactId>
5353
<version>${mybatis.plus.starter.version}</version>
5454
<scope>provided</scope>
5555
</dependency>

jeepay-core/src/main/java/com/jeequan/jeepay/core/beans/RequestKitBean.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@
2525
import org.springframework.web.context.request.RequestAttributes;
2626
import org.springframework.web.context.request.RequestContextHolder;
2727

28-
import javax.servlet.http.HttpServletRequest;
29-
import java.io.BufferedReader;
30-
import java.io.IOException;
31-
import java.io.InputStreamReader;
28+
import jakarta.servlet.http.HttpServletRequest;
3229
import java.util.Iterator;
3330
import java.util.Map;
3431
import java.util.stream.Collectors;

jeepay-core/src/main/java/com/jeequan/jeepay/core/ctrls/AbstractCtrl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
import org.springframework.util.ObjectUtils;
3434
import org.springframework.web.multipart.MultipartFile;
3535

36-
import javax.servlet.http.HttpServletRequest;
37-
import javax.servlet.http.HttpServletResponse;
36+
import jakarta.servlet.http.HttpServletRequest;
37+
import jakarta.servlet.http.HttpServletResponse;
3838
import java.io.File;
3939
import java.math.BigDecimal;
4040
import java.util.Date;

0 commit comments

Comments
 (0)