用tomcat插件时遇到的问题

[WARN ] 2017-10-31 14:26:21,791 org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) AbstractApplicationContext.java WARN Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: 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 'memberZjfController' method
public java.lang.String com.kejiyun.controller.MemberZjfController.member()
to {[/member]}: There is already 'memberXmfController' bean method
public java.lang.String com.kejiyun.controller.MemberXmfController.member() mapped.

[ERROR] 2017-10-31 14:26:21,796 org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:502) FrameworkServlet.java ERROR Context initialization failed
org.springframework.beans.factory.BeanCreationException: 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 'memberZjfController' method
public java.lang.String com.kejiyun.controller.MemberZjfController.member()
to {[/member]}: There is already 'memberXmfController' bean method

Caused by: java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'memberZjfController' method
public java.lang.String com.kejiyun.controller.MemberZjfController.member()
to {[/member]}: There is already 'memberXmfController' bean method

严重: StandardWrapper.Throwable
org.springframework.beans.factory.BeanCreationException: 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 'memberZjfController' method
public java.lang.String com.kejiyun.controller.MemberZjfController.member()
to {[/member]}: There is already 'memberXmfController' bean method

Caused by: java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'memberZjfController' method
public java.lang.String com.kejiyun.controller.MemberZjfController.member()
to {[/member]}: There is already 'memberXmfController' bean method

严重: Servlet [springDispatcherServlet] in web application [/kejiyun_hrj] threw load() exception
java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'memberZjfController' method
public java.lang.String com.kejiyun.controller.MemberZjfController.member()
to {[/member]}: There is already 'memberXmfController' bean method

严重: StandardServer.await: create[localhost:8005]:
java.net.BindException: Address already in use: JVM_Bind

我用tomcat插件时,一启动tomcat就报了这些错误,还有几个提示“严重”,看不懂,大佬帮我看下

4个回答

端口改一改,或者你之前运行的程序没有停止,Address already in use: JVM_Bind localhost:8005

Chiffgc
帆轻扬 我把tomcat和eclipse都关了,重新开了启动,还是这样的错误。端口的话要怎么改,我截张图在下面,大佬帮我看下改多少
2 年多之前 回复

端口修改

百度一下怎么查看正在用的端口就好了,
https://jingyan.baidu.com/article/8275fc86b7156446a03cf6e2.html
随便改一个不重复的就好

Chiffgc
帆轻扬 好,谢谢,已经解决了,是由于tomcat插件和servers里面的tomcat两个重复了,只能开启一个
2 年多之前 回复

百度一下怎么查看正在用的端口就好了,
https://jingyan.baidu.com/article/8275fc86b7156446a03cf6e2.html

Chiffgc
帆轻扬 好,谢谢,已经解决了
2 年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问