INNER CODE UNIT · Java
AnnotationConfig
pac4j/spring-webmvc-pac4j · src/main/java/org/pac4j/springframework/annotation/AnnotationConfig.java:17
public class AnnotationConfig {
/**
* Role aspect configuration.
*
* @return the aspect
*/
@Bean
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
*/