0

我无法使本机图像工作。我有我的自定义反应式身份验证管理器,当我使用 mvn spring-boot:run 运行服务时一切正常。但是,当我使用本机映像创建容器并运行它时,出现以下错误:

webflux-netty_1  | java.lang.IllegalStateException: No provider found for class com.example.webflux.security.JwtAuthenticationToken
webflux-netty_1  |      at org.springframework.security.web.server.authentication.AuthenticationWebFilter.lambda$authenticate$6(AuthenticationWebFilter.java:123) ~[na:na]
webflux-netty_1  |      Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException: 
webflux-netty_1  | Error has been observed at the following site(s):
webflux-netty_1  |      |_ checkpoint ? org.springframework.security.web.server.authentication.AuthenticationWebFilter [DefaultWebFilterChain]
webflux-netty_1  |      |_ checkpoint ? org.springframework.security.web.server.context.ReactorContextWebFilter [DefaultWebFilterChain]

我找不到任何例子。有人可以帮忙吗?

非常感谢您提前。此致。

4

1 回答 1

0

好吧,这是我犯的一个愚蠢的错误,我已经意识到这一点,因为我从 IntelliJ IDEA 中运行了同样的错误。对此感到抱歉。结束问题。

于 2021-05-05T20:02:29.530 回答