摘要:
有时候我们需要在内容详情页实时浏览人数,这时候我们可以使用websocket实现这个功能 pom.xml <dependency> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> <version>8.0</version> 阅读全文
posted @ 2020-03-29 16:54
yvioo
阅读(3429)
评论(0)
推荐(0)
摘要:
有时候我们会出现无法用注解 @Autowired 注入bean的情况,这个时候可以 通过contextLoader获取 WebApplicationContext ctx = ContextLoader.getCurrentWebApplicationContext(); BeanService b 阅读全文
posted @ 2020-03-29 02:29
yvioo
阅读(1669)
评论(0)
推荐(0)