入门到放弃_1

报错内容:xxx.Service that could not be found.

解决办法:可能是因为在对应的接口实现类中缺少了@Service所导致,加上就行了。

结果:在UserviceImpl中加上@Service即可正常运行

 

 

报错:Ambiguous mapping. Cannot map 'xxxController' method

原因:在control类中,@RequestMapping的返回值相同了,修改其中一个的返回值即可

结果:将重复的一个@RequestMapping("/userinfo")改为@RequestMapping("/userupdate"),可以运行

原文地址:https://www.cnblogs.com/wang-hao/p/9888369.html