3

Ambiguous mapping. Cannot map 'testManagerService' method

 3 years ago
source link: https://www.oschina.net/question/3418091_2322087
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Ambiguous mapping. Cannot map 'testManagerService' method

高峰123 发布于 今天 16:41
使用依赖如下
<dependency>
   <groupId>io.springfox</groupId>
   <artifactId>springfox-swagger2</artifactId>
   <version>2.8.0</version>
</dependency>
<dependency>
   <groupId>io.springfox</groupId>
   <artifactId>springfox-swagger-ui</artifactId>
   <version>2.8.0</version>
</dependency>
<dependency>
   <groupId>io.swagger</groupId>
   <artifactId>swagger-annotations</artifactId>
   <version>1.5.20</version>
</dependency>

不使用swagger没事,集成了swagger后报错如下:

Caused by: java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'testManagerService' method 

我并不认为是我的代码有问题,因为不引入swagger可以正常使用。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK