Try putting the PermissionEvaluator
in a separate @Configuration
class. You appear to be forcing it to be instantiated before the ServletContext
is ready (Spring Security filters have to be created super early so this can happen).
More Related Contents:
- Filter invoke twice when register as Spring bean
- Spring security CORS Filter
- How to disable ‘X-Frame-Options’ response header in Spring Security?
- How to enable HTTP response caching in Spring Boot
- HttpSecurity, WebSecurity and AuthenticationManagerBuilder
- Multiple WebSecurityConfigurerAdapter in spring boot for multiple patterns
- Spring Security 5 : There is no PasswordEncoder mapped for the id “null”
- Securing Spring Boot API with API key and secret
- Spring Security HTTP Basic for RESTFul and FormLogin (Cookies) for web – Annotations
- How do I disable resolving login parameters passed as url parameters / from the url
- What does Cookie CsrfTokenRepository.withHttpOnlyFalse () do and when to use it?
- disabling spring security in spring boot app [duplicate]
- Disabling a filter for only a few paths
- Spring Boot and multiple external configuration files
- Spring Boot – inject map from application.yml
- Spring Boot – Handle to Hibernate SessionFactory
- Java Spring Boot: How to map my app root (“/”) to index.html?
- Read file from resources folder in Spring Boot
- Filter order in spring-boot
- No serializer found for class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor
- Spring Boot: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean
- Websocket Authentication and Authorization in Spring
- Hot swapping in Spring Boot
- java.lang.IllegalArgumentException: No converter found for return value of type
- How to apply Spring Security filter only on secured endpoints?
- Configuration using annotation @SpringBootApplication
- Table ‘DBNAME.hibernate_sequence’ doesn’t exist
- Spring’s @RequestParam with Enum
- Using @RequestParam for multipartfile is a right way?
- Single role multiple IP addresses in Spring Security configuration