![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java web
永不做码农
一枚正在努力的学僧
展开
-
Springboot2.0 集成 websocket 出现 Failed to register @ServerEndpoint class 问题
最近学习springboot 集成websocket ,参照网上例程如下:config配置:/** * 开启WebSocket支持 配置websocket并开启 */@Configurationpublic class WebSocketConfig { @Bean public ServerEndpointExporter serverEndpointExporter...原创 2020-04-28 09:40:13 · 8976 阅读 · 6 评论 -
SpringMVC的Controller层注解
@Controller 用于标记在一个类上,表示一个SpringMVC Controller对象。通过Spring使用扫描机制查找应用程序中所有基于注解的控制器类。分发处理器会扫描使用了Controller注解的类的方法是否使用了RequestMapping注解,只有使用了RequestMapping注解的方法才是真正处理请求的处理器。@Controllerpublic class ...原创 2020-02-07 03:00:17 · 942 阅读 · 0 评论