problem:
测试类测试Controller功能时,无法注入Service
The inspection found that there was no annotation on the service implementation class. @Service
After adding it, there ***dao
was no way to inject. The
final inspection was that the mapper.xml
file was written namespace
incorrectly.
After this problem occurs, you should check whether your injection is correct and whether there are spelling errors.