gpt4 book ai didi

spring - 为什么我会得到这个 "CONDITION EVALUATION DELTA"输出?

转载 作者:行者123 更新时间:2023-12-03 18:40:44 26 4
gpt4 key购买 nike

我在我的服务器上进行了一些更改,但我不知道这些更改中的哪些会导致此日志输出:

==========================
CONDITION EVALUATION DELTA
==========================


Positive matches:
-----------------

None


Negative matches:
-----------------

SpringBootWebSecurityConfiguration:
Did not match:
- @ConditionalOnMissingBean (types: org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; SearchStrategy: all) found beans of type 'org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter' org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerSecurityConfiguration, org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfiguration, webSecurityConfig (OnBeanCondition)
Matched:
- @ConditionalOnClass found required class 'org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter' (OnClassCondition)
- found 'session' scope (OnWebApplicationCondition)

UserDetailsServiceAutoConfiguration:
Did not match:
- @ConditionalOnMissingBean (types: org.springframework.security.authentication.AuthenticationManager,org.springframework.security.authentication.AuthenticationProvider,org.springframework.security.core.userdetails.UserDetailsService; SearchStrategy: all) found beans of type 'org.springframework.security.authentication.AuthenticationManager' authenticationManager and found beans of type 'org.springframework.security.core.userdetails.UserDetailsService' appUserDetailsService and found beans of type 'org.springframework.security.authentication.AuthenticationProvider' daoAuthenticationProvider (OnBeanCondition)
Matched:
- @ConditionalOnClass found required class 'org.springframework.security.authentication.AuthenticationManager' (OnClassCondition)

WebSecurityEnablerConfiguration:
Did not match:
- @ConditionalOnMissingBean (names: springSecurityFilterChain; SearchStrategy: all) found beans named springSecurityFilterChain (OnBeanCondition)
Matched:
- found 'session' scope (OnWebApplicationCondition)


Exclusions:
-----------

None


Unconditional classes:
----------------------

None

这真的没有告诉我任何事情。

它甚至意味着什么?是不是有什么东西坏了,因为服务器仍然工作正常。

最佳答案

条件评估增量是 Spring Boot 的 DevTools 的一个特性。它在 the documentation 中描述如下:

By default, each time your application restarts, a report showing the condition evaluation delta is logged. The report shows the changes to your application’s auto-configuration as you make changes such as adding or removing beans and setting configuration properties.



在您的问题中显示的情况下,对影响安全自动配置的安全相关 bean 进行了一些更改。没有什么坏掉的。输出试图帮助您了解您对应用程序所做的更改如何影响其自动配置。

如果您愿意,您可以关闭 delta 的日志记录。为此,请设置以下属性:
spring.devtools.restart.log-condition-evaluation-delta=false

关于spring - 为什么我会得到这个 "CONDITION EVALUATION DELTA"输出?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57018497/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com