ocr识别-websocket

This commit is contained in:
liyawei
2022-03-14 15:29:39 +08:00
parent 389afb4843
commit c7e6e21848
6 changed files with 140 additions and 2 deletions
@@ -9,7 +9,9 @@ import org.springframework.boot.web.servlet.support.SpringBootServletInitializer
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.core.env.Environment;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;
import java.net.InetAddress;
import java.net.UnknownHostException;
@@ -44,4 +46,8 @@ public class LawNioApplication extends SpringBootServletInitializer {
"----------------------------------------------------------");
}
@Bean
public ServerEndpointExporter serverEndpointExporter() {
return new ServerEndpointExporter();
}
}