1.查看接口实现类是否加了注解service。
2.查看spring配置文件是否自动扫描包
<context:component-scan base-package="xxx.xx.xxx">
3.查看是否在web.xml中加载spring容器。(写web.xml时,spring配置文件名写错了)
1.查看接口实现类是否加了注解service。
2.查看spring配置文件是否自动扫描包
<context:component-scan base-package="xxx.xx.xxx">
3.查看是否在web.xml中加载spring容器。(写web.xml时,spring配置文件名写错了)