don't put RequestMapping on the interface

as Spring-MVC will automatically consider it as a controller which is not necessarily the case (eg. for a spring-cloud FeignClient)
This commit is contained in:
cbornet
2016-06-06 14:40:11 +02:00
parent 556f529933
commit 1836062e6f
28 changed files with 73 additions and 99 deletions

View File

@@ -131,9 +131,6 @@ public class SpringBootServerCodegen extends JavaClientCodegen implements Codege
if (basePath == "") {
basePath = "default";
} else {
if (co.path.startsWith("/" + basePath)) {
co.path = co.path.substring(("/" + basePath).length());
}
co.subresourceOperation = !co.path.isEmpty();
}
List<CodegenOperation> opList = operations.get(basePath);