记录一下昨晚犯的低级错误,ssm项目找不到service

记录一下昨晚犯的低级错误
在搭建ssm框架时,不适用maven的情况下,一直报service的错误,说是service找不到
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘com.xx.xx.xxService’ available: expected at least 1 bean which qualifies as autowire candidate.
我一直检查service实现类有没有加@Service注解,加了。
然后又查看applicationContext.xml文件有没有加注解扫描,包路径扫描对不对,检查过后,也是对的。
接着检查web.xml有没有去加载applicationContext.xml文件,后来发现
是因为没有加spring的监听器,于是我赶紧加上,重启之后就不报这个错了记录一下昨晚犯的低级错误,ssm项目找不到service
头疼的是,加了又出现新的bug。。。。难受

Caused by: java.io.FileNotFoundException: class path resource [com/xxx/service/impl/xxxServiceImpl.class] cannot be opened because it does not exist