**
Errors are reported as follows:
**
Caused by: java.lang.IllegalStateException: Ambiguous mapping. Cannot map ‘com.offcn.seckill.feign.SeckillGoodsFeignn’ method
com.offcn.seckill.feign.SeckillGoodsFeignn#findPage(SeckillGoods, int, Int)
to {post/seckillgoods/search/{page}/{size}}: there is already ‘seckillgoodscontroller’ bean method
reason mark>: there are two or more requestmapping or getmapping with the same name
solution: mark>
1. Check whether there are the same requestmapping URLs in all other classes, If you modify different URLs, you can
2. In the remote calling interface using feign, the requestmapping on the interface is the same as the requestmapping URL of the called class. For problems, you can configure the requestmpping URL of the interface into the method of this interface, Remove the URL configuration of interface requestmapping
for example:
and replace it with the following:
if your problem is solved, please click praise and comment to support the blogger’s hard work mark>=
Read More:
- java.lang.IllegalStateException: Could not execute method for android:onClick
- Caused by: java.net.SocketException : connection reset or caused by: java.sql.SQLRecoverableException solve
- Caused by: java.lang.reflect.InvocationTargetExceptio
- java.lang.IllegalStateException : unable to read meta data for class
- Caused by: java.lang.ClassNotFoundException: com.alibaba.nacos.api.naming.NamingMaintainService
- Caused by: java.io.IOException: CreateProcess error=87, The parameter is incorrect
- java.lang.IllegalStateException Exception: cause analysis and solution
- Initialization of bean failed; nested exception is java.lang.StackOverflowError
- java.lang.IllegalStateException: Logback configuration error detected
- java.lang.IllegalStateException: Cannot call sendRedirect() after the response has been committed
- Caused by: java.sql.SQLException: Parameter index out of range (1 > number of parameters, which is 0
- Spring boot running appears java.lang.IllegalStateException : Failed to load ApplicationContext
- Android error java.lang.IllegalStateException : System services not available to Activities before onC
- java.lang.IllegalStateException: ArrayAdapter requires the resource ID to be a TextView
- Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of ty
- Idea start error: java.lang.IllegalStateException : failed to create a child event loop
- java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @Context
- android Caused by: java.util.ConcurrentModificationException
- Caused by: java.io.IOException: APR error: -730053
- Solve the problem caused by: java.sql.SQLRecoverableException : IO error: connection reset related problems