- 博客(2)
- 资源 (1)
- 收藏
- 关注
原创 Thread子类中,不能使用Spring注解,变量为null
线程里面,不能使用注解,Spring本身默认Bean为单例模式构建,同时是非线程安全的,因此禁止了在Thread子类中的注入行为,因此在Thread中直接注入的bean是null的。 解决办法有很多个,可自行在网上搜索,本文的解决办法如下: 创建SpringContextUtils类如下。 package com.vdes.modles.utils;import org.springframewo
2017-03-06 19:29:13
1295
原创 Error during WebSocket handshake: Unexpected response code: 200错误
struts2+spring+mybatis项目加入Websocket出现 Error during WebSocket handshake: Unexpected response code: 200 或 Error during WebSocket handshake: Unexpected response code: 404错误,搞了半天,之前都没问题的, struts.x
2017-03-02 14:42:58
7331
apache-tomcat-9
2017-03-01
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅