注释接口 EnableImplicitApi


@Retention(SOURCE) @Target(TYPE) public @interface EnableImplicitApi
By default, HTTP service classes and methods are not considered external APIs that need to be exported, unless the developer manually uses @Api annotations, as follows.

 @Api
 @RestController
 public class TestController {
     @Api
     @GetMapping
     public String test() {
         return "Hello World";
     }
 }
 
However, you can choose to use this annotation on any of the classes, as follows:

 @EnableImplicitApi
 public class App {
 }
 
This eliminates the need to add @Api annotations to each HTTP service class and method. Jimmer automatically treats the annotations of the web framework, such as @RestController and @GetMapping, as the part of the API that needs to be exported. as follows

 @RestController
 public class TestController {
     @GetMapping
     public String test() {
         return "Hello World";
     }
 }