@Service不生效No bean named ‘officialShareWorkService‘ available
3,查找Resource文件下是否存在对应的xml文件,如果没有需要补充或者把方法移动到有xml的Service中实现。1,错误的注解:@Service(“/accountService”)1,正确注解:@Service(“accountService”)2,把@Service注解写到了Service中。2,在SeviceImpl类中增加对应注解。
原创
2024-07-01 14:22:10 ·
121 阅读 ·
0 评论