错误信息
defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map ‘labTeamsController’ method
public com.gsunis.mpms.labour.entity.LabTeams com.gsunis.mpms.labour.controller.LabTeamsController.findByOrgId(int)
to {POST /lab-teams}: There is already ‘labTeamsController’ bean method
public com.gsunis.mpms.labour.entity.LabTeams com.gsunis.mpms.labour.controller.LabTeamsController.findByTeamsId(int) mapped.
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:769)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:218)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor
错误原因及解决方法
RequestMapper有相同的改了就好了