fix: Spring Securityのバグを回避するため設定を変更

This commit is contained in:
usbharu 2024-02-20 22:59:45 +09:00
parent 0d24f41145
commit 0a38c8155c
1 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ import java.security.interfaces.RSAPublicKey
import java.util.*
@EnableWebSecurity(debug = true)
@EnableWebSecurity(debug = false)
@Configuration
@Suppress("FunctionMaxLength", "TooManyFunctions", "LongMethod")
class SecurityConfig {
@ -416,7 +416,7 @@ class SecurityConfig {
return roleHierarchyImpl
}
@Bean
// @Bean
fun beanDefinitionRegistryPostProcessor(): BeanDefinitionRegistryPostProcessor {
return BeanDefinitionRegistryPostProcessor { registry: BeanDefinitionRegistry ->
registry.getBeanDefinition(AbstractSecurityWebApplicationInitializer.DEFAULT_FILTER_NAME).beanClassName =