Ambiguous mapping. Cannot map ‘informationController’ method
com.shenger.dev.demo2.doctor.Expert.information.controller.InformationController#findOneId(Integer)
to {POST /content/findOneId}: There is already ‘contentController’ bean method
翻译
:
不明确的映射。无法映射“informationController”方法
com.shenger.dev.demo2.doctor.Expert.information.controller.InformationController(整数)
到{POST/content/findOneId}:已经有“contentController”bean方法
解决办法是:
控制层里的@RequestMapping("/information")这有重复的名字