完成效果图:
项目准备提要:
com.github.pagehelper
pagehelper-spring-boot-starter
1.2.5
org.springframework.boot
spring-boot-devtools
true
org.apache.commons
commons-lang3
com.google.guava
guava
28.0-jre
org.springframework.boot
spring-boot-starter-thymeleaf
org.springframework.boot
spring-boot-starter-websocket
WebSocket配置
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;
@Configuration
public class WebSocketExporter {
@Bean
public ServerEndpointExporter serverEndpointExporter(){
return new ServerEndpointExporter();