我有 swagger_jaxrs_2.10 (1.3.6) 工作了很长时间,我想从新的 2.0 swagger 规范中受益。
因此,我的 pom 从
<dependency>
<groupId>com.wordnik</groupId>
<artifactId>swagger-jaxrs_2.10</artifactId>
<version>1.3.6</version>
</dependency>
至
<groupId>io.swagger</groupId>
<artifactId>swagger-jaxrs</artifactId>
<version>1.5.3</version>
</dependency>
当我运行时,尝试访问时出现以下错误myApp/swagger.json
SEVERE: Conflicting URI templates. The URI template / for root resource class io.swagger.jaxrs.listing.ApiListingResource and the URI template / transform to the same regular expression (/.*)?
有任何想法吗?