SpringMVC报错

错误提示:

java.lang.IllegalStateException: Ambiguous mapping found. Cannot map 'org.tutorial.spring.controller.EmployeeController#0' bean method 
public java.lang.String org.tutorial.spring.controller.EmployeeController.get(org.springframework.ui.Model)
to {[/employees/new],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}: There is already 'employeeController' bean method
public java.lang.String org.tutorial.spring.controller.EmployeeController.get(org.springframework.ui.Model) mapped.    

 

1、Bean重复

2、@RequestMapping (value="xx")  使用value而不是name

3、@RequestMapping (value="xx")  value 值重复 

4、mvn clean package


posted @ 2019-05-18 15:26  心有八千里路  阅读(290)  评论(0编辑  收藏  举报