小编Sic*_*umi的帖子

Spring Boot 过滤器错误,未注册过滤器后无法注册

我都是 Spring Boot 和 Kotlin 的新手。

我有一个错误说

Failed to instantiate [javax.servlet.Filter]: Factory method 'springSecurityFilterChain' threw exception; nested exception is java.lang.IllegalArgumentException: 
Cannot register after unregistered Filter class com.jxinternet.platform.ms.merchant.config.security.ReplaceResponseFilter


2018-10-03 15:50:21.601 ERROR 63436 --- [           main] o.s.boot.SpringApplication               : Application run failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springSecurityFilterChain' defined in class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.servlet.Filter]: Factory method 'springSecurityFilterChain' threw exception; nested exception is java.lang.IllegalArgumentException: Cannot register after unregistered Filter …
Run Code Online (Sandbox Code Playgroud)

spring filter kotlin spring-boot

4
推荐指数
1
解决办法
5755
查看次数

标签 统计

filter ×1

kotlin ×1

spring ×1

spring-boot ×1