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

@@ -21,8 +21,7 @@ import java.util.List;
import static org.springframework.http.MediaType.*;
@RequestMapping(value = "/{{{baseName}}}", produces = {APPLICATION_JSON_VALUE})
@Api(value = "/{{{baseName}}}", description = "the {{{baseName}}} API")
@Api(value = "{{{baseName}}}", description = "the {{{baseName}}} API")
{{>generatedAnnotation}}
{{#operations}}
public interface {{classname}} {