private void init(ApplicationContext context) {
init();
LOGGER.debug("Get All ExceptionHandlers");
List<Object> exceptionsHandlers = ReflectionUtils
.proxyToObject(context.getBeansWithAnnotation(ControllerAdvice.class).values());
LOGGER.debug("Get All RestController");
exceptionsHandlers.forEach(this::buildHttpCodes);
controllers
.addAll(ReflectionUtils.proxyToObject(context.getBeansWithAnnotation(RestController.class).values()));
LOGGER.debug("Get All Controller");
controllers.addAll(ReflectionUtils.proxyToObject(context.getBeansWithAnnotation(Controller.class).values()));
}
ResourcesBuilder.java 文件源码
java
阅读 40
收藏 0
点赞 0
评论 0
项目:spring-rest-commons-options
作者:
评论列表
文章目录