INNER CODE UNIT · Java
requireRoleAnnotationAspect
pac4j/spring-webmvc-pac4j · src/main/java/org/pac4j/springframework/annotation/AnnotationConfig.java:25
public RequireRoleAnnotationAspect requireRoleAnnotationAspect() {
return new RequireRoleAnnotationAspect();
}
/**
* The exception resolver which turns the HTTP actions thrown by the annotations into HTTP responses.
*
* @param config the config
* @return the exception resolver
*/
@Bean
public DefaultHttpActionExceptionResolver defaultHttpActionExceptionResolver(final Config config) {
return new DefaultHttpActionExceptionResolver(config);
}
}