Error creating bean with name ‘org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping’: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map ‘userLogin’ method
public org.springframework.web.servlet.ModelAndView com.chenjie.customer.controllers.UserLogin.addRegister(org.share.domain.dao.info.User,javax.servlet.http.HttpServletRequest)
to {[/customer],methods=[POST]}: There is already ‘userLogin’ bean method
错误原因是 在controller里面,定义了重复的url