Spring Boot笔记 #08# DEBUG级别启动日志译成中文
关于启用debug模式:https://docs.spring.io/spring-boot/docs/current/reference/html/using.html#using.auto-configuration.replacing
Spring Boot应用生命周期:https://docs.spring.io/spring-boot/docs/current/reference/html/features.html#features.spring-application.application-events-and-listeners
一个简单的、只有Spring Web依赖的Spring Boot程序
INFO级别的启动日志(略作删改)
INFO 7896 - [main] 【main函数所在类全名】 : 正在使用Java1.8在xx上启动【main函数所在类名】且PID是7896 (【用户名】在【java包所在目录】启动了【jar全名】) INFO 7896 - [main] 【main函数所在类全名】 : No active profile set, falling back to 1 default profile: "default" INFO 7896 - [main] 【main函数所在类全名】 : 未设置活动配置文件,返回到1个默认profile:“default” INFO 7896 - [main] 【嵌入式汤姆猫Web服务器类全名】 : Tomcat已初始化端口:8080(http) INFO 7896 - [main] 【卡特琳娜.核心.Apr生命周期监听器】 : 安装了Apache Tomcat本机库的较旧版本[1.2.19],而Tomcat建议使用[1.2.30]的最低版本 INFO 7896 - [main] 【卡特琳娜.核心.Apr生命周期监听器】 : 使用APR版本[1.6.5]加载了Apache Tomcat本机库[1.2.19] INFO 7896 - [main] 【卡特琳娜.核心.Apr生命周期监听器】 : APR能力: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [false]. INFO 7896 - [main] 【卡特琳娜.核心.Apr生命周期监听器】 : APR/OpenSSL配置: useAprConnector [false], useOpenSSL [true] INFO 7896 - [main] 【卡特琳娜.核心.Apr生命周期监听器】 : OpenSSL已成功初始化[OpenSSL 1.0.2q 20 Nov 2018] INFO 7896 - [main] 【卡特琳娜.核心.标准服务】 : 正在启动服务[Tomcat] INFO 7896 - [main] 【卡特琳娜.核心.标准引擎】 : 正在启动Servlet引擎:[ApacheTomcat/9.0.58] INFO 7896 - [main] o.a.c.c.C.[Tomcat].[localhost].[/]: 初始化Spring嵌入式WebApplicationContext INFO 7896 - [main] w.s.c.【ServletWeb服务器应用上下文】 : Root WebApplicationContext: 初始化在2406毫秒内完成 INFO 7896 - [main] 【嵌入式汤姆猫Web服务器类全名】 : Tomcat在端口8080(http)上启动,上下文路径为"" INFO 7896 - [main] 【main函数所在类全名】 : 在3.363秒内启动【main函数所在类名】(JVM运行时间为3.869)
DEBUG级别启动日志(略作删改)
执行:
java -jar demo-0.0.1-SNAPSHOT.jar --debug
输出如下(原文852行):
第一部分
56.606【INFO级】【main函数所在类】: 同INFO级启动信息,正在启动【main函数所在类】 56.621【INFO级】【main函数所在类】: 同INFO级启动信息 56.621调试信息【SpringApplication应用】:加载源类【main函数所在类】 56.700调试信息【配置ServletWeb服务器应用程序上下文类】:正在刷新【boot.web.servlet上下文注解类】【配置ServletWeb服务器应用程序上下文类】@4909b8da 58.106调试信息【汤姆猫ServletWeb服务器工厂】: Code archive: 【我的jar包绝对路径】 58.106调试信息【汤姆猫ServletWeb服务器工厂】: Code archive: 【我的jar包绝对路径】 58.106调试信息【汤姆猫ServletWeb服务器工厂】: None of the document roots [src/main/webapp, public, static] point to a directory and will be ignored. 58.153【INFO级】【TomcatWebServer】: 同INFO级启动信息 58.153【INFO级】【AprLifecycleListener】: 同INFO级启动信息 58.153【INFO级】【AprLifecycleListener】: 同INFO级启动信息 58.153【INFO级】【AprLifecycleListener】: 同INFO级启动信息 58.153【INFO级】【AprLifecycleListener】: 同INFO级启动信息 59.215【INFO级】【AprLifecycleListener】: 同INFO级启动信息 59.231【INFO级】StandardService:同INFO级启动信息 59.231【INFO级】StandardEngine:同INFO级启动信息 59.356【INFO级】o.a.c.c.C.[Tomcat].[localhost].[/]:同INFO级启动信息 59.356调试信息【ServletWeb服务器应用上下文】: 已将Root WebApplicationContext发布为名为[xx]的ServletContext属性 59.372【INFO级】【ServletWeb服务器应用上下文】: Root WebApplicationContext: initialization completed in 2672 ms 59.387调试信息【Servlet上下文初始化器beans】: Mapping filters: characterEncodingFilter urls=[/*] order=-2147483648, formContentFilter urls=[/*] order=-9900, requestContextFilter urls=[/*] order=-105 59.387调试信息【Servlet上下文初始化器beans】: Mapping servlets: dispatcherServlet urls=[/] 59.434调试信息【更老的请求上下文过滤器】: Filter 'requestContextFilter' configured for use 59.434调试信息【更老的CharacterEncoding过滤器】: Filter 'characterEncodingFilter' configured for use 59.434调试信息【更老的某种过滤器】: Filter 'formContentFilter' configured for use 59.700调试信息【请求映射处理程序适配器】: ControllerAdvice beans: 0 @ModelAttribute, 0 @InitBinder, 1 RequestBodyAdvice, 1 ResponseBodyAdvice 59.887调试信息【请求映射处理程序映射】: 2 mappings in 'requestMappingHandlerMapping' 59.919调试信息【简单的Url处理程序映射】: Patterns [/webjars/**, /**] in 'resourceHandlerMapping' 59.934调试信息【异常处理程序异常解析器】: ControllerAdvice beans: 0 @ExceptionHandler, 1 ResponseBodyAdvice 00.059【INFO级】【TomcatWebServer】: Tomcat started on port(s): 8080 (http) with context path '' 00.091调试信息【条件评估报告日志侦听器】:
第二部分——条件评估报告(不一一翻译..)
描述了当前应用的auto-configuration(默认的自动配置)以及原因。可以很好地了解相关依赖的应用状况。
①正匹配
Aop[自动配置]匹配: - @[以属性为条件](spring.aop.auto=true)匹配 (以属性为条件) Aop[自动配置].ClassProxyingConfiguration匹配: - @[以类缺失为条件]没有发现不想要的类'org.aspectj.weaver.Advice' (OnClassCondition) - @[以属性为条件](spring.aop.proxy-target-class=true)匹配 (以属性为条件) DispatcherServlet[自动配置]匹配: - @[以类为条件]找到所需的类'org.springframework.web.servlet.DispatcherServlet' (OnClassCondition) - 找到“会话”范围(OnWebApplicationCondition) DispatcherServlet[自动配置].DispatcherServletConfiguration匹配: - @[以类为条件]找到所需的类'javax.servlet.ServletRegistration' (OnClassCondition) - 默认DispatcherServlet未找到dispatcher servlet bean(DispatcherServlet[自动配置].DefaultDispatcherServletCondition) DispatcherServlet[自动配置].DispatcherServletRegistrationConfiguration匹配: - @[以类为条件]found required class 'javax.servlet.ServletRegistration' (OnClassCondition) - DispatcherServlet Registration did not find servlet registration bean (DispatcherServlet[自动配置].DispatcherServletRegistrationCondition) DispatcherServlet[自动配置].DispatcherServletRegistrationConfiguration#dispatcherServletRegistration匹配: - @[以Bean为条件](names: dispatcherServlet types: org.springframework.web.servlet.DispatcherServlet; SearchStrategy: all) found bean 'dispatcherServlet' (OnBeanCondition) EmbeddedWebServerFactoryCustomizer[自动配置]匹配: - @[以WebApplication为条件](required) found 'session' scope (OnWebApplicationCondition) EmbeddedWebServerFactoryCustomizer[自动配置].TomcatWebServerFactoryCustomizerConfiguration匹配: - @[以类为条件]found required classes 'org.apache.catalina.startup.Tomcat', 'org.apache.coyote.UpgradeProtocol' (OnClassCondition) ErrorMvc[自动配置]匹配: - @[以类为条件]found required classes 'javax.servlet.Servlet', 'org.springframework.web.servlet.DispatcherServlet' (OnClassCondition) - found 'session' scope (OnWebApplicationCondition) ErrorMvc[自动配置]#basicErrorController匹配: - @[以Bean缺失为条件](types: org.springframework.boot.web.servlet.error.ErrorController; SearchStrategy: current) did not find any beans (OnBeanCondition) ErrorMvc[自动配置]#errorAttributes匹配: - @[以Bean缺失为条件](types: org.springframework.boot.web.servlet.error.ErrorAttributes; SearchStrategy: current) did not find any beans (OnBeanCondition) ErrorMvc[自动配置].DefaultErrorViewResolverConfiguration#conventionErrorViewResolver匹配: - @[以Bean为条件](types: org.springframework.web.servlet.DispatcherServlet; SearchStrategy: all) found bean 'dispatcherServlet'; @[以Bean缺失为条件](types: org.springframework.boot.autoconfigure.web.servlet.error.ErrorViewResolver; SearchStrategy: all) did not find any beans (OnBeanCondition) ErrorMvc[自动配置].WhitelabelErrorViewConfiguration匹配: - @[以属性为条件](server.error.whitelabel.enabled)匹配 (以属性为条件) - ErrorTemplate Missing did not find error template view (ErrorMvc[自动配置].ErrorTemplateMissingCondition) ErrorMvc[自动配置].WhitelabelErrorViewConfiguration#beanNameViewResolver匹配: - @[以Bean缺失为条件](types: org.springframework.web.servlet.view.BeanNameViewResolver; SearchStrategy: all) did not find any beans (OnBeanCondition) ErrorMvc[自动配置].WhitelabelErrorViewConfiguration#defaultErrorView匹配: - @[以Bean缺失为条件](names: error; SearchStrategy: all) did not find any beans (OnBeanCondition) GenericCacheConfiguration匹配: - Cache org.springframework.boot.autoconfigure.cache.GenericCacheConfiguration automatic cache type (CacheCondition) HttpEncoding[自动配置]匹配: - @[以类为条件]found required class 'org.springframework.web.filter.CharacterEncodingFilter' (OnClassCondition) - found 'session' scope (OnWebApplicationCondition) - @[以属性为条件](server.servlet.encoding.enabled)匹配 (以属性为条件) HttpEncoding[自动配置]#characterEncodingFilter匹配: - @[以Bean缺失为条件](types: org.springframework.web.filter.CharacterEncodingFilter; SearchStrategy: all) did not find any beans (OnBeanCondition) HttpMessageConverters[自动配置]匹配: - @[以类为条件]found required class 'org.springframework.http.converter.HttpMessageConverter' (OnClassCondition) - NoneNestedConditions 0匹配 1 did not; NestedCondition on HttpMessageConverters[自动配置].NotReactiveWebApplicationCondition.ReactiveWebApplication did not find reactive web application classes (HttpMessageConverters[自动配置].NotReactiveWebApplicationCondition) HttpMessageConverters[自动配置]#messageConverters匹配: - @[以Bean缺失为条件](types: org.springframework.boot.autoconfigure.http.HttpMessageConverters; SearchStrategy: all) did not find any beans (OnBeanCondition) HttpMessageConverters[自动配置].StringHttpMessageConverterConfiguration匹配: - @[以类为条件]found required class 'org.springframework.http.converter.StringHttpMessageConverter' (OnClassCondition) HttpMessageConverters[自动配置].StringHttpMessageConverterConfiguration#stringHttpMessageConverter匹配: - @[以Bean缺失为条件](types: org.springframework.http.converter.StringHttpMessageConverter; SearchStrategy: all) did not find any beans (OnBeanCondition) Jackson[自动配置]匹配: - @[以类为条件]found required class 'com.fasterxml.jackson.databind.ObjectMapper' (OnClassCondition) Jackson[自动配置].Jackson2ObjectMapperBuilderCustomizerConfiguration匹配: - @[以类为条件]found required class 'org.springframework.http.converter.json.Jackson2ObjectMapperBuilder' (OnClassCondition) Jackson[自动配置].JacksonObjectMapperBuilderConfiguration匹配: - @[以类为条件]found required class 'org.springframework.http.converter.json.Jackson2ObjectMapperBuilder' (OnClassCondition) Jackson[自动配置].JacksonObjectMapperBuilderConfiguration#jacksonObjectMapperBuilder匹配: - @[以Bean缺失为条件](types: org.springframework.http.converter.json.Jackson2ObjectMapperBuilder; SearchStrategy: all) did not find any beans (OnBeanCondition) Jackson[自动配置].JacksonObjectMapperConfiguration匹配: - @[以类为条件]found required class 'org.springframework.http.converter.json.Jackson2ObjectMapperBuilder' (OnClassCondition) Jackson[自动配置].JacksonObjectMapperConfiguration#jacksonObjectMapper匹配: - @[以Bean缺失为条件](types: com.fasterxml.jackson.databind.ObjectMapper; SearchStrategy: all) did not find any beans (OnBeanCondition) Jackson[自动配置].ParameterNamesModuleConfiguration匹配: - @[以类为条件]found required class 'com.fasterxml.jackson.module.paramnames.ParameterNamesModule' (OnClassCondition) Jackson[自动配置].ParameterNamesModuleConfiguration#parameterNamesModule匹配: - @[以Bean缺失为条件](types: com.fasterxml.jackson.module.paramnames.ParameterNamesModule; SearchStrategy: all) did not find any beans (OnBeanCondition) JacksonHttpMessageConvertersConfiguration.MappingJackson2HttpMessageConverterConfiguration匹配: - @[以类为条件]found required class 'com.fasterxml.jackson.databind.ObjectMapper' (OnClassCondition) - @[以属性为条件](spring.mvc.converters.preferred-json-mapper=jackson)匹配 (以属性为条件) - @[以Bean为条件](types: com.fasterxml.jackson.databind.ObjectMapper; SearchStrategy: all) found bean 'jacksonObjectMapper' (OnBeanCondition) JacksonHttpMessageConvertersConfiguration.MappingJackson2HttpMessageConverterConfiguration#mappingJackson2HttpMessageConverter匹配: - @[以Bean缺失为条件](types: org.springframework.http.converter.json.MappingJackson2HttpMessageConverter ignored: org.springframework.hateoas.server.mvc.TypeConstrainedMappingJackson2HttpMessageConverter,org.springframework.data.rest.webmvc.alps.AlpsJsonHttpMessageConverter; SearchStrategy: all) did not find any beans (OnBeanCondition) Lifecycle[自动配置]#defaultLifecycleProcessor匹配: - @[以Bean缺失为条件](names: lifecycleProcessor; SearchStrategy: current) did not find any beans (OnBeanCondition) Multipart[自动配置]匹配: - @[以类为条件]found required classes 'javax.servlet.Servlet', 'org.springframework.web.multipart.support.StandardServletMultipartResolver', 'javax.servlet.MultipartConfigElement' (OnClassCondition) - found 'session' scope (OnWebApplicationCondition) - @[以属性为条件](spring.servlet.multipart.enabled)匹配 (以属性为条件) Multipart[自动配置]#multipartConfigElement匹配: - @[以Bean缺失为条件](types: javax.servlet.MultipartConfigElement,org.springframework.web.multipart.commons.CommonsMultipartResolver; SearchStrategy: all) did not find any beans (OnBeanCondition) Multipart[自动配置]#multipartResolver匹配: - @[以Bean缺失为条件](types: org.springframework.web.multipart.MultipartResolver; SearchStrategy: all) did not find any beans (OnBeanCondition) NoOpCacheConfiguration匹配: - Cache org.springframework.boot.autoconfigure.cache.NoOpCacheConfiguration automatic cache type (CacheCondition) PropertyPlaceholder[自动配置]#propertySourcesPlaceholderConfigurer匹配: - @[以Bean缺失为条件](types: org.springframework.context.support.PropertySourcesPlaceholderConfigurer; SearchStrategy: current) did not find any beans (OnBeanCondition) RestTemplate[自动配置]匹配: - @[以类为条件]found required class 'org.springframework.web.client.RestTemplate' (OnClassCondition) - NoneNestedConditions 0匹配 1 did not; NestedCondition on RestTemplate[自动配置].NotReactiveWebApplicationCondition.ReactiveWebApplication did not find reactive web application classes (RestTemplate[自动配置].NotReactiveWebApplicationCondition) RestTemplate[自动配置]#restTemplateBuilder匹配: - @[以Bean缺失为条件](types: org.springframework.boot.web.client.RestTemplateBuilder; SearchStrategy: all) did not find any beans (OnBeanCondition) RestTemplate[自动配置]#restTemplateBuilderConfigurer匹配: - @[以Bean缺失为条件](types: org.springframework.boot.autoconfigure.web.client.RestTemplateBuilderConfigurer; SearchStrategy: all) did not find any beans (OnBeanCondition) ServletWebServerFactory[自动配置]匹配: - @[以类为条件]found required class 'javax.servlet.ServletRequest' (OnClassCondition) - found 'session' scope (OnWebApplicationCondition) ServletWebServerFactory[自动配置]#tomcatServletWebServerFactoryCustomizer匹配: - @[以类为条件]found required class 'org.apache.catalina.startup.Tomcat' (OnClassCondition) ServletWebServerFactoryConfiguration.EmbeddedTomcat匹配: - @[以类为条件]found required classes 'javax.servlet.Servlet', 'org.apache.catalina.startup.Tomcat', 'org.apache.coyote.UpgradeProtocol' (OnClassCondition) - @[以Bean缺失为条件](types: org.springframework.boot.web.servlet.server.ServletWebServerFactory; SearchStrategy: current) did not find any beans (OnBeanCondition) SimpleCacheConfiguration匹配: - Cache org.springframework.boot.autoconfigure.cache.SimpleCacheConfiguration automatic cache type (CacheCondition) SqlInitialization[自动配置]匹配: - @[以属性为条件](spring.sql.init.enabled)匹配 (以属性为条件) - NoneNestedConditions 0匹配 1 did not; NestedCondition on SqlInitialization[自动配置].SqlInitializationModeCondition.ModeIsNever @[以属性为条件](spring.sql.init.mode=never) did not find property 'mode' (SqlInitialization[自动配置].SqlInitializationModeCondition) TaskExecution[自动配置]匹配: - @[以类为条件]found required class 'org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor' (OnClassCondition) TaskExecution[自动配置]#applicationTaskExecutor匹配: - @[以Bean缺失为条件](types: java.util.concurrent.Executor; SearchStrategy: all) did not find any beans (OnBeanCondition) TaskExecution[自动配置]#taskExecutorBuilder匹配: - @[以Bean缺失为条件](types: org.springframework.boot.task.TaskExecutorBuilder; SearchStrategy: all) did not find any beans (OnBeanCondition) TaskScheduling[自动配置]匹配: - @[以类为条件]found required class 'org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler' (OnClassCondition) TaskScheduling[自动配置]#taskSchedulerBuilder匹配: - @[以Bean缺失为条件](types: org.springframework.boot.task.TaskSchedulerBuilder; SearchStrategy: all) did not find any beans (OnBeanCondition) WebMvc[自动配置]匹配: - @[以类为条件]found required classes 'javax.servlet.Servlet', 'org.springframework.web.servlet.DispatcherServlet', 'org.springframework.web.servlet.config.annotation.WebMvcConfigurer' (OnClassCondition) - found 'session' scope (OnWebApplicationCondition) - @[以Bean缺失为条件](types: org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport; SearchStrategy: all) did not find any beans (OnBeanCondition) WebMvc[自动配置]#formContentFilter匹配: - @[以属性为条件](spring.mvc.formcontent.filter.enabled)匹配 (以属性为条件) - @[以Bean缺失为条件](types: org.springframework.web.filter.FormContentFilter; SearchStrategy: all) did not find any beans (OnBeanCondition) WebMvc[自动配置].EnableWebMvcConfiguration#flashMapManager匹配: - @[以Bean缺失为条件](names: flashMapManager; SearchStrategy: all) did not find any beans (OnBeanCondition) WebMvc[自动配置].EnableWebMvcConfiguration#localeResolver匹配: - @[以Bean缺失为条件](names: localeResolver; SearchStrategy: all) did not find any beans (OnBeanCondition) WebMvc[自动配置].EnableWebMvcConfiguration#themeResolver匹配: - @[以Bean缺失为条件](names: themeResolver; SearchStrategy: all) did not find any beans (OnBeanCondition) WebMvc[自动配置].WebMvc[自动配置]Adapter#defaultViewResolver匹配: - @[以Bean缺失为条件](types: org.springframework.web.servlet.view.InternalResourceViewResolver; SearchStrategy: all) did not find any beans (OnBeanCondition) WebMvc[自动配置].WebMvc[自动配置]Adapter#requestContextFilter匹配: - @[以Bean缺失为条件](types: org.springframework.web.context.request.RequestContextListener,org.springframework.web.filter.RequestContextFilter; SearchStrategy: all) did not find any beans (OnBeanCondition) WebMvc[自动配置].WebMvc[自动配置]Adapter#viewResolver匹配: - @[以Bean为条件](types: org.springframework.web.servlet.ViewResolver; SearchStrategy: all) found beans 'defaultViewResolver', 'beanNameViewResolver', 'mvcViewResolver'; @[以Bean缺失为条件](names: viewResolver types: org.springframework.web.servlet.view.ContentNegotiatingViewResolver; SearchStrategy: all) did not find any beans (OnBeanCondition) WebSocketServlet[自动配置]匹配: - @[以类为条件]found required classes 'javax.servlet.Servlet', 'javax.websocket.server.ServerContainer' (OnClassCondition) - found 'session' scope (OnWebApplicationCondition) WebSocketServlet[自动配置].TomcatWebSocketConfiguration匹配: - @[以类为条件]found required classes 'org.apache.catalina.startup.Tomcat', 'org.apache.tomcat.websocket.server.WsSci' (OnClassCondition) WebSocketServlet[自动配置].TomcatWebSocketConfiguration#websocketServletWebServerCustomizer匹配: - @[以Bean缺失为条件](names: websocketServletWebServerCustomizer; SearchStrategy: all) did not find any beans (OnBeanCondition)
②不匹配
ActiveMQ[自动配置]: 不匹配: - @[以类为条件]did not find required class 'javax.jms.ConnectionFactory' (OnClassCondition) Aop[自动配置].AspectJAutoProxyingConfiguration: 不匹配: - @[以类为条件]did not find required class 'org.aspectj.weaver.Advice' (OnClassCondition) Artemis[自动配置]: 不匹配: - @[以类为条件]did not find required class 'javax.jms.ConnectionFactory' (OnClassCondition) Batch[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.batch.core.launch.JobLauncher' (OnClassCondition) Cache[自动配置]: 不匹配: - @[以Bean为条件](types: org.springframework.cache.interceptor.CacheAspectSupport; SearchStrategy: all) did not find any beans of type org.springframework.cache.interceptor.CacheAspectSupport (OnBeanCondition) Matched: - @[以类为条件]found required class 'org.springframework.cache.CacheManager' (OnClassCondition) Cache[自动配置].CacheManagerEntityManagerFactoryDependsOnPostProcessor: 不匹配: - @[以类为条件]did not find required class 'org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean' (OnClassCondition) - Ancestor org.springframework.boot.autoconfigure.cache.Cache[自动配置] did not match (ConditionEvaluationReport.AncestorsMatchedCondition) CaffeineCacheConfiguration: 不匹配: - @[以类为条件]did not find required class 'com.github.benmanes.caffeine.cache.Caffeine' (OnClassCondition) Cassandra[自动配置]: 不匹配: - @[以类为条件]did not find required class 'com.datastax.oss.driver.api.core.CqlSession' (OnClassCondition) CassandraData[自动配置]: 不匹配: - @[以类为条件]did not find required class 'com.datastax.oss.driver.api.core.CqlSession' (OnClassCondition) CassandraReactiveData[自动配置]: 不匹配: - @[以类为条件]did not find required class 'com.datastax.oss.driver.api.core.CqlSession' (OnClassCondition) CassandraReactiveRepositories[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.data.cassandra.ReactiveSession' (OnClassCondition) CassandraRepositories[自动配置]: 不匹配: - @[以类为条件]did not find required class 'com.datastax.oss.driver.api.core.CqlSession' (OnClassCondition) ClientHttpConnector[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.web.reactive.function.client.WebClient' (OnClassCondition) Codecs[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.web.reactive.function.client.WebClient' (OnClassCondition) Couchbase[自动配置]: 不匹配: - @[以类为条件]did not find required class 'com.couchbase.client.java.Cluster' (OnClassCondition) CouchbaseCacheConfiguration: 不匹配: - @[以类为条件]did not find required class 'com.couchbase.client.java.Cluster' (OnClassCondition) CouchbaseData[自动配置]: 不匹配: - @[以类为条件]did not find required class 'com.couchbase.client.java.Bucket' (OnClassCondition) CouchbaseReactiveData[自动配置]: 不匹配: - @[以类为条件]did not find required class 'com.couchbase.client.java.Cluster' (OnClassCondition) CouchbaseReactiveRepositories[自动配置]: 不匹配: - @[以类为条件]did not find required class 'com.couchbase.client.java.Cluster' (OnClassCondition) CouchbaseRepositories[自动配置]: 不匹配: - @[以类为条件]did not find required class 'com.couchbase.client.java.Bucket' (OnClassCondition) DataSource[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType' (OnClassCondition) DataSourceInitializationConfiguration: 不匹配: - @[以类为条件]did not find required class 'org.springframework.jdbc.datasource.init.DatabasePopulator' (OnClassCondition) DataSourceTransactionManager[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.jdbc.core.JdbcTemplate' (OnClassCondition) DispatcherServlet[自动配置].DispatcherServletConfiguration#multipartResolver: 不匹配: - @[以Bean为条件](types: org.springframework.web.multipart.MultipartResolver; SearchStrategy: all) did not find any beans of type org.springframework.web.multipart.MultipartResolver (OnBeanCondition) EhCacheCacheConfiguration: 不匹配: - @[以类为条件]did not find required class 'net.sf.ehcache.Cache' (OnClassCondition) ElasticsearchData[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate' (OnClassCondition) ElasticsearchRepositories[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.elasticsearch.client.Client' (OnClassCondition) ElasticsearchRestClient[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.elasticsearch.client.RestClientBuilder' (OnClassCondition) EmbeddedLdap[自动配置]: 不匹配: - @[以类为条件]did not find required class 'com.unboundid.ldap.listener.InMemoryDirectoryServer' (OnClassCondition) EmbeddedMongo[自动配置]: 不匹配: - @[以类为条件]did not find required class 'com.mongodb.MongoClientSettings' (OnClassCondition) EmbeddedWebServerFactoryCustomizer[自动配置].JettyWebServerFactoryCustomizerConfiguration: 不匹配: - @[以类为条件]did not find required classes 'org.eclipse.jetty.server.Server', 'org.eclipse.jetty.util.Loader', 'org.eclipse.jetty.webapp.WebAppContext' (OnClassCondition) EmbeddedWebServerFactoryCustomizer[自动配置].NettyWebServerFactoryCustomizerConfiguration: 不匹配: - @[以类为条件]did not find required class 'reactor.netty.http.server.HttpServer' (OnClassCondition) EmbeddedWebServerFactoryCustomizer[自动配置].UndertowWebServerFactoryCustomizerConfiguration: 不匹配: - @[以类为条件]did not find required classes 'io.undertow.Undertow', 'org.xnio.SslClientAuthMode' (OnClassCondition) ErrorWebFlux[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.web.reactive.config.WebFluxConfigurer' (OnClassCondition) Flyway[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.flywaydb.core.Flyway' (OnClassCondition) FreeMarker[自动配置]: 不匹配: - @[以类为条件]did not find required class 'freemarker.template.Configuration' (OnClassCondition) GroovyTemplate[自动配置]: 不匹配: - @[以类为条件]did not find required class 'groovy.text.markup.MarkupTemplateEngine' (OnClassCondition) Gson[自动配置]: 不匹配: - @[以类为条件]did not find required class 'com.google.gson.Gson' (OnClassCondition) GsonHttpMessageConvertersConfiguration: 不匹配: - @[以类为条件]did not find required class 'com.google.gson.Gson' (OnClassCondition) H2Console[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.h2.server.web.WebServlet' (OnClassCondition) Hazelcast[自动配置]: 不匹配: - @[以类为条件]did not find required class 'com.hazelcast.core.HazelcastInstance' (OnClassCondition) HazelcastCacheConfiguration: 不匹配: - @[以类为条件]did not find required class 'com.hazelcast.core.HazelcastInstance' (OnClassCondition) HazelcastJpaDependency[自动配置]: 不匹配: - @[以类为条件]did not find required class 'com.hazelcast.core.HazelcastInstance' (OnClassCondition) HibernateJpa[自动配置]: 不匹配: - @[以类为条件]did not find required class 'javax.persistence.EntityManager' (OnClassCondition) HttpHandler[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.web.reactive.DispatcherHandler' (OnClassCondition) Hypermedia[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.hateoas.EntityModel' (OnClassCondition) InfinispanCacheConfiguration: 不匹配: - @[以类为条件]did not find required class 'org.infinispan.spring.embedded.provider.SpringEmbeddedCacheManager' (OnClassCondition) InfluxDb[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.influxdb.InfluxDB' (OnClassCondition) Integration[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.integration.config.EnableIntegration' (OnClassCondition) JCacheCacheConfiguration: 不匹配: - @[以类为条件]did not find required class 'javax.cache.Caching' (OnClassCondition) JacksonHttpMessageConvertersConfiguration.MappingJackson2XmlHttpMessageConverterConfiguration: 不匹配: - @[以类为条件]did not find required class 'com.fasterxml.jackson.dataformat.xml.XmlMapper' (OnClassCondition) JdbcRepositories[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.data.jdbc.repository.config.AbstractJdbcConfiguration' (OnClassCondition) JdbcTemplate[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.jdbc.core.JdbcTemplate' (OnClassCondition) Jersey[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.glassfish.jersey.server.spring.SpringComponentProvider' (OnClassCondition) Jms[自动配置]: 不匹配: - @[以类为条件]did not find required class 'javax.jms.Message' (OnClassCondition) Jmx[自动配置]: 不匹配: - @[以属性为条件](spring.jmx.enabled=true) did not find property 'enabled' (以属性为条件) Matched: - @[以类为条件]found required class 'org.springframework.jmx.export.MBeanExporter' (OnClassCondition) JndiConnectionFactory[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.jms.core.JmsTemplate' (OnClassCondition) JndiDataSource[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType' (OnClassCondition) Jooq[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.jooq.DSLContext' (OnClassCondition) JpaRepositories[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.data.jpa.repository.JpaRepository' (OnClassCondition) Jsonb[自动配置]: 不匹配: - @[以类为条件]did not find required class 'javax.json.bind.Jsonb' (OnClassCondition) JsonbHttpMessageConvertersConfiguration: 不匹配: - @[以类为条件]did not find required class 'javax.json.bind.Jsonb' (OnClassCondition) Jta[自动配置]: 不匹配: - @[以类为条件]did not find required class 'javax.transaction.Transaction' (OnClassCondition) Kafka[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.kafka.core.KafkaTemplate' (OnClassCondition) Ldap[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.ldap.core.ContextSource' (OnClassCondition) LdapRepositories[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.data.ldap.repository.LdapRepository' (OnClassCondition) Liquibase[自动配置]: 不匹配: - @[以类为条件]did not find required class 'liquibase.change.DatabaseChange' (OnClassCondition) MailSender[自动配置]: 不匹配: - @[以类为条件]did not find required class 'javax.mail.internet.MimeMessage' (OnClassCondition) MailSenderValidator[自动配置]: 不匹配: - @ConditionalOnSingleCandidate did not find required type 'org.springframework.mail.javamail.JavaMailSenderImpl' (OnBeanCondition) MessageSource[自动配置]: 不匹配: - ResourceBundle did not find bundle with basename messages (MessageSource[自动配置].ResourceBundleCondition) Mongo[自动配置]: 不匹配: - @[以类为条件]did not find required class 'com.mongodb.client.MongoClient' (OnClassCondition) MongoData[自动配置]: 不匹配: - @[以类为条件]did not find required class 'com.mongodb.client.MongoClient' (OnClassCondition) MongoReactive[自动配置]: 不匹配: - @[以类为条件]did not find required class 'com.mongodb.reactivestreams.client.MongoClient' (OnClassCondition) MongoReactiveData[自动配置]: 不匹配: - @[以类为条件]did not find required class 'com.mongodb.reactivestreams.client.MongoClient' (OnClassCondition) MongoReactiveRepositories[自动配置]: 不匹配: - @[以类为条件]did not find required class 'com.mongodb.reactivestreams.client.MongoClient' (OnClassCondition) MongoRepositories[自动配置]: 不匹配: - @[以类为条件]did not find required class 'com.mongodb.client.MongoClient' (OnClassCondition) Mustache[自动配置]: 不匹配: - @[以类为条件]did not find required class 'com.samskivert.mustache.Mustache' (OnClassCondition) Neo4j[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.neo4j.driver.Driver' (OnClassCondition) Neo4jData[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.neo4j.driver.Driver' (OnClassCondition) Neo4jReactiveData[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.neo4j.driver.Driver' (OnClassCondition) Neo4jReactiveRepositories[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.neo4j.driver.Driver' (OnClassCondition) Neo4jRepositories[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.neo4j.driver.Driver' (OnClassCondition) Netty[自动配置]: 不匹配: - @[以类为条件]did not find required class 'io.netty.util.NettyRuntime' (OnClassCondition) OAuth2Client[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.security.config.annotation.web.configuration.EnableWebSecurity' (OnClassCondition) OAuth2ResourceServer[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.security.oauth2.server.resource.BearerTokenAuthenticationToken' (OnClassCondition) PersistenceExceptionTranslation[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor' (OnClassCondition) ProjectInfo[自动配置]#buildProperties: 不匹配: - @ConditionalOnResource did not find resource '${spring.info.build.location:classpath:META-INF/build-info.properties}' (OnResourceCondition) ProjectInfo[自动配置]#gitProperties: 不匹配: - GitResource did not find git info at classpath:git.properties (ProjectInfo[自动配置].GitResourceAvailableCondition) Quartz[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.quartz.Scheduler' (OnClassCondition) R2dbc[自动配置]: 不匹配: - @[以类为条件]did not find required class 'io.r2dbc.spi.ConnectionFactory' (OnClassCondition) R2dbcData[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.data.r2dbc.core.R2dbcEntityTemplate' (OnClassCondition) R2dbcInitializationConfiguration: 不匹配: - @[以类为条件]did not find required classes 'io.r2dbc.spi.ConnectionFactory', 'org.springframework.r2dbc.connection.init.DatabasePopulator' (OnClassCondition) R2dbcRepositories[自动配置]: 不匹配: - @[以类为条件]did not find required class 'io.r2dbc.spi.ConnectionFactory' (OnClassCondition) R2dbcTransactionManager[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.r2dbc.connection.R2dbcTransactionManager' (OnClassCondition) RSocketMessaging[自动配置]: 不匹配: - @[以类为条件]did not find required class 'io.rsocket.RSocket' (OnClassCondition) RSocketRequester[自动配置]: 不匹配: - @[以类为条件]did not find required class 'io.rsocket.RSocket' (OnClassCondition) RSocketSecurity[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.security.rsocket.core.SecuritySocketAcceptorInterceptor' (OnClassCondition) RSocketServer[自动配置]: 不匹配: - @[以类为条件]did not find required class 'io.rsocket.core.RSocketServer' (OnClassCondition) RSocketStrategies[自动配置]: 不匹配: - @[以类为条件]did not find required class 'io.netty.buffer.PooledByteBufAllocator' (OnClassCondition) Rabbit[自动配置]: 不匹配: - @[以类为条件]did not find required class 'com.rabbitmq.client.Channel' (OnClassCondition) ReactiveElasticsearchRepositories[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.data.elasticsearch.client.reactive.ReactiveElasticsearchClient' (OnClassCondition) ReactiveElasticsearchRestClient[自动配置]: 不匹配: - @[以类为条件]did not find required class 'reactor.netty.http.client.HttpClient' (OnClassCondition) ReactiveMultipart[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.web.reactive.config.WebFluxConfigurer' (OnClassCondition) ReactiveOAuth2Client[自动配置]: 不匹配: - @[以类为条件]did not find required class 'reactor.core.publisher.Flux' (OnClassCondition) ReactiveOAuth2ResourceServer[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity' (OnClassCondition) ReactiveSecurity[自动配置]: 不匹配: - @[以类为条件]did not find required class 'reactor.core.publisher.Flux' (OnClassCondition) ReactiveUserDetailsService[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.security.authentication.ReactiveAuthenticationManager' (OnClassCondition) ReactiveWebServerFactory[自动配置]: 不匹配: - @[以WebApplication为条件]did not find reactive web application classes (OnWebApplicationCondition) Redis[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.data.redis.core.RedisOperations' (OnClassCondition) RedisCacheConfiguration: 不匹配: - @[以类为条件]did not find required class 'org.springframework.data.redis.connection.RedisConnectionFactory' (OnClassCondition) RedisReactive[自动配置]: 不匹配: - @[以类为条件]did not find required class 'reactor.core.publisher.Flux' (OnClassCondition) RedisRepositories[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.data.redis.repository.configuration.EnableRedisRepositories' (OnClassCondition) RepositoryRestMvc[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.data.rest.webmvc.config.RepositoryRestMvcConfiguration' (OnClassCondition) Saml2RelyingParty[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.security.saml2.provider.service.registration.RelyingPartyRegistrationRepository' (OnClassCondition) Security[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.security.authentication.DefaultAuthenticationEventPublisher' (OnClassCondition) SecurityFilter[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.security.config.http.SessionCreationPolicy' (OnClassCondition) SendGrid[自动配置]: 不匹配: - @[以类为条件]did not find required class 'com.sendgrid.SendGrid' (OnClassCondition) ServletWebServerFactory[自动配置].ForwardedHeaderFilterConfiguration: 不匹配: - @[以属性为条件](server.forward-headers-strategy=framework) did not find property 'server.forward-headers-strategy' (以属性为条件) ServletWebServerFactoryConfiguration.EmbeddedJetty: 不匹配: - @[以类为条件]did not find required classes 'org.eclipse.jetty.server.Server', 'org.eclipse.jetty.util.Loader', 'org.eclipse.jetty.webapp.WebAppContext' (OnClassCondition) ServletWebServerFactoryConfiguration.EmbeddedUndertow: 不匹配: - @[以类为条件]did not find required classes 'io.undertow.Undertow', 'org.xnio.SslClientAuthMode' (OnClassCondition) Session[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.session.Session' (OnClassCondition) Solr[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.apache.solr.client.solrj.impl.CloudSolrClient' (OnClassCondition) SpringApplicationAdminJmx[自动配置]: 不匹配: - @[以属性为条件](spring.application.admin.enabled=true) did not find property 'enabled' (以属性为条件) SpringDataWeb[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.data.web.PageableHandlerMethodArgumentResolver' (OnClassCondition) TaskScheduling[自动配置]#taskScheduler: 不匹配: - @[以Bean为条件](names: org.springframework.context.annotation.internalScheduledAnnotationProcessor; SearchStrategy: all) did not find any beans named org.springframework.context.annotation.internalScheduledAnnotationProcessor (OnBeanCondition) Thymeleaf[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.thymeleaf.spring5.SpringTemplateEngine' (OnClassCondition) Transaction[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.transaction.PlatformTransactionManager' (OnClassCondition) UserDetailsService[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.security.authentication.AuthenticationManager' (OnClassCondition) Validation[自动配置]: 不匹配: - @[以类为条件]did not find required class 'javax.validation.executable.ExecutableValidator' (OnClassCondition) WebClient[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.web.reactive.function.client.WebClient' (OnClassCondition) WebFlux[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.web.reactive.config.WebFluxConfigurer' (OnClassCondition) WebMvc[自动配置]#hiddenHttpMethodFilter: 不匹配: - @[以属性为条件](spring.mvc.hiddenmethod.filter.enabled) did not find property 'enabled' (以属性为条件) WebMvc[自动配置].ResourceChainCustomizerConfiguration: 不匹配: - @ConditionalOnEnabledResourceChain did not find class org.webjars.WebJarAssetLocator (OnEnabledResourceChainCondition) WebMvc[自动配置].WebMvc[自动配置]Adapter#beanNameViewResolver: 不匹配: - @[以Bean缺失为条件](types: org.springframework.web.servlet.view.BeanNameViewResolver; SearchStrategy: all) found beans of type 'org.springframework.web.servlet.view.BeanNameViewResolver' beanNameViewResolver (OnBeanCondition) WebServiceTemplate[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.oxm.Marshaller' (OnClassCondition) WebServices[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.ws.transport.http.MessageDispatcherServlet' (OnClassCondition) WebSessionIdResolver[自动配置]: 不匹配: - @[以类为条件]did not find required class 'reactor.core.publisher.Mono' (OnClassCondition) WebSocketMessaging[自动配置]: 不匹配: - @[以类为条件]did not find required class 'org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer' (OnClassCondition) WebSocketReactive[自动配置]: 不匹配: - @[以WebApplication为条件]did not find reactive web application classes (OnWebApplicationCondition) WebSocketServlet[自动配置].Jetty10WebSocketConfiguration: 不匹配: - @[以类为条件]did not find required classes 'org.eclipse.jetty.websocket.javax.server.internal.JavaxWebSocketServerContainer', 'org.eclipse.jetty.websocket.server.JettyWebSocketServerContainer' (OnClassCondition) WebSocketServlet[自动配置].JettyWebSocketConfiguration: 不匹配: - @[以类为条件]did not find required class 'org.eclipse.jetty.websocket.jsr356.server.deploy.WebSocketServerContainerInitializer' (OnClassCondition) WebSocketServlet[自动配置].UndertowWebSocketConfiguration: 不匹配: - @[以类为条件]did not find required class 'io.undertow.websockets.jsr.Bootstrap' (OnClassCondition) XADataSource[自动配置]: 不匹配: - @[以类为条件]did not find required class 'javax.transaction.TransactionManager' (OnClassCondition)
③排除
None
④无条件的类
org.springframework.boot.autoconfigure.context.ConfigurationProperties[自动配置]
org.springframework.boot.autoconfigure.context.Lifecycle[自动配置]
org.springframework.boot.autoconfigure.context.PropertyPlaceholder[自动配置]
org.springframework.boot.autoconfigure.availability.ApplicationAvailability[自动配置]
org.springframework.boot.autoconfigure.info.ProjectInfo[自动配置]
第三部分
00.106【INFO级】【main函数所在类】: Started DemoApplication in 3.966 seconds (JVM running for 4.476)
00.122调试信息【应用可用性bean】:应用程序可用性状态LivenessState更改为CORRECT
00.122调试信息【应用可用性bean】:应用程序可用性状态ReadinessState更改为ACCEPTING_TRAFFIC(接受流量)