By default, only classes annotated with
org.springframework.stereotype.Controllerororg.springframework.web.bind.annotation.RestControllerwill be exported as api.
When there is a need to export api from classes that are not annotated with
org.springframework.stereotype.Controllerororg.springframework.web.bind.annotation.RestController, you can configure this rule.
api from all classesclass.is.ctrl=true
api from classes annotated with ctrl commentapi from all classes causes lag, and you want to control which classes include api using the @ctrl comment, you can configure:class.is.ctrl=#ctrl
Demo
/**
* @ctrl
*/
@RequestMapping("/base")
public interface BaseController {
/**
* Current controller name
*
* @public
*/
@RequestMapping("/ctrl/name")
String ctrlName();
}