为了账号安全,请及时绑定邮箱和手机立即绑定

无法注入httpservletRequest

Description:


Field httpServletRequest in com.miaoshaproject.controller.UserController required a bean of type 'javax.servlet.http.HttpServletRequest' that could not be found.


The injection point has the following annotations:

- @org.springframework.beans.factory.annotation.Autowired(required=true)



Action:


Consider defining a bean of type 'javax.servlet.http.HttpServletRequest' in your configuration.


正在回答

1 回答

代码也不上,怎么知道你的问题.

估计是你没有自动注入,可以使用

@bean注解方法和@autowire注解变量

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

无法注入httpservletRequest

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号