报错
No qualifying bean of type [javax.servlet.http.HttpServletRequest] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
解决办法:
加入
@WebAppConfiguration
注解
参考
http://www.belonk.com/c/spring_test_No_bean_HttpServletRequest.html