Spring注入(dao)或者(service)对象为null

Spring注入(dao)或者(service)对象为null
1.spring配置有没有扫描包
2.dao和service加注解没
3.web.xml配置监器
4.注入对象忘记加@Autowired
自己总结了这么几点!

发布了3 篇原创文章 · 获赞 1 · 访问量 122

猜你喜欢

转载自blog.csdn.net/Lee_XCSDN/article/details/104719459