update knife4j 配置

This commit is contained in:
yyb 2025-04-25 14:33:20 +08:00
parent 889189e726
commit 4dc7964ef4
6 changed files with 28 additions and 27 deletions

View File

@ -25,11 +25,11 @@
</dependency> </dependency>
<!-- Swagger --> <!-- Swagger -->
<dependency> <!-- <dependency>-->
<groupId>io.springfox</groupId> <!-- <groupId>io.springfox</groupId>-->
<artifactId>springfox-swagger2</artifactId> <!-- <artifactId>springfox-swagger2</artifactId>-->
<version>${swagger.fox.version}</version> <!-- <version>${swagger.fox.version}</version>-->
</dependency> <!-- </dependency>-->
<dependency> <dependency>
<groupId>com.github.xiaoymin</groupId> <groupId>com.github.xiaoymin</groupId>

View File

@ -71,15 +71,28 @@
<!-- Swagger --> <!-- Swagger -->
<!-- <dependency>-->
<!-- <groupId>io.springfox</groupId>-->
<!-- <artifactId>springfox-swagger-ui</artifactId>-->
<!-- <version>${swagger.fox.version}</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>io.springfox</groupId>-->
<!-- <artifactId>springfox-swagger2</artifactId>-->
<!-- <version>${swagger.fox.version}</version>-->
<!-- </dependency>-->
<!-- knife4j -->
<dependency> <dependency>
<groupId>io.springfox</groupId> <groupId>com.github.xiaoymin</groupId>
<artifactId>springfox-swagger-ui</artifactId> <artifactId>knife4j-spring-boot-starter</artifactId>
<version>${swagger.fox.version}</version> <version>3.0.3</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>io.springfox</groupId> <groupId>com.github.xiaoymin</groupId>
<artifactId>springfox-swagger2</artifactId> <artifactId>knife4j-spring-ui</artifactId>
<version>${swagger.fox.version}</version> <version>3.0.3</version>
</dependency> </dependency>
<!-- Lombok --> <!-- Lombok -->
@ -105,13 +118,6 @@
<artifactId>common-core</artifactId> <artifactId>common-core</artifactId>
</dependency> </dependency>
<!-- knife4j -->
<dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>knife4j-spring-ui</artifactId>
<version>3.0.3</version>
</dependency>
<dependency> <dependency>
<groupId>com.github.xiaoymin</groupId> <groupId>com.github.xiaoymin</groupId>
<artifactId>knife4j-spring-boot-starter</artifactId> <artifactId>knife4j-spring-boot-starter</artifactId>

View File

@ -44,7 +44,7 @@ public class ChatRoomServiceImpl extends ServiceImpl<ChatRoomMapper, ChatRoom> i
public TableDataInfo findRoomList(RoomPageVo roomPageVo) { public TableDataInfo findRoomList(RoomPageVo roomPageVo) {
String userEmail = SecurityUtils.getUsername(); String userEmail = SecurityUtils.getUsername();
PageHelper.startPage(1, 20); PageHelper.startPage(1, 20);
System.out.println("-----时间"+roomPageVo.getSendDateTime()+"-----------用户"+userEmail + "-----当前时间"+ System.currentTimeMillis()); // System.out.println("-----时间"+roomPageVo.getSendDateTime()+"-----------用户"+userEmail + "-----当前时间"+ System.currentTimeMillis());
//1.查找当前客服对应的聊天室 //1.查找当前客服对应的聊天室
List<ChatRoomDto> roomList = chatRoomMapper.findRoomList(userEmail,roomPageVo.getSendDateTime()); List<ChatRoomDto> roomList = chatRoomMapper.findRoomList(userEmail,roomPageVo.getSendDateTime());
List<String> userEmails = roomList.stream().map(ChatRoomDto::getUserEmail).collect(Collectors.toList()); List<String> userEmails = roomList.stream().map(ChatRoomDto::getUserEmail).collect(Collectors.toList());

View File

@ -39,10 +39,3 @@ spring:
max-file-size: 2MB max-file-size: 2MB
max-request-size: 8MB max-request-size: 8MB
websocket:
transport:
message-size-limit: 1500 # 消息大小限制 1.5k 约500汉字
send-time-limit: 5000 # 发送超时时间 5秒
send-buffer-size-limit: 65536 # 发送缓冲区大小 64K
time-to-first-message: 5000 # 首次消息超时时间 5秒
max-connections: 100 # 最大连接数

View File

@ -201,6 +201,7 @@
<plugin> <plugin>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>
<version>2.5.6</version>
<executions> <executions>
<execution> <execution>
<goals> <goals>

View File

@ -95,6 +95,7 @@
<plugin> <plugin>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>
<version>2.5.6</version>
<executions> <executions>
<execution> <execution>
<goals> <goals>