飞道的博客

spring.factories文件

333人阅读  评论(0)

文件:META-INF/spring.factories

    • spring-boot-2.1.9.RELEASE.jar的spring.factories部分内容


   
  1. # PropertySource Loaders
  2. org.springframework.boot.env.PropertySourceLoader=\
  3. org.springframework.boot.env.PropertiesPropertySourceLoader,\
  4. org.springframework.boot.env.YamlPropertySourceLoader
  5. # Run Listeners
  6. org.springframework.boot.SpringApplicationRunListener=\
  7. org.springframework.boot.context.event.EventPublishingRunListener
  8. ...
  9. # Application Context Initializers
  10. org.springframework.context.ApplicationContextInitializer=\
  11. org.springframework.boot.context.ConfigurationWarningsApplicationContextInitializer,\
  12. org.springframework.boot.context.ContextIdApplicationContextInitializer,\
  13. org.springframework.boot.context.config.DelegatingApplicationContextInitializer,\
  14. org.springframework.boot.web.context.ServerPortInfoApplicationContextInitializer
  15. # Application Listeners
  16. org.springframework.context.ApplicationListener=\
  17. org.springframework.boot.ClearCachesApplicationListener,\
  18. org.springframework.boot.builder.ParentContextCloserApplicationListener,\
  19. org.springframework.boot.context.FileEncodingApplicationListener,\
  20. org.springframework.boot.context.config.AnsiOutputApplicationListener,\
  21. org.springframework.boot.context.config.ConfigFileApplicationListener,\
  22. org.springframework.boot.context.config.DelegatingApplicationListener,\
  23. org.springframework.boot.context.logging.ClasspathLoggingApplicationListener,\
  24. org.springframework.boot.context.logging.LoggingApplicationListener,\
  25. org.springframework.boot.liquibase.LiquibaseServiceLocatorApplicationListener
  26. ...

    • 工厂接口以及对应的实现类

(1)FailureAnalyzer

org.springframework.boot.diagnostics.FailureAnalyzer

[org.springframework.boot.diagnostics.analyzer.BeanCurrentlyInCreationFailureAnalyzer, org.springframework.boot.diagnostics.analyzer.BeanDefinitionOverrideFailureAnalyzer, org.springframework.boot.diagnostics.analyzer.BeanNotOfRequiredTypeFailureAnalyzer, org.springframework.boot.diagnostics.analyzer.BindFailureAnalyzer, org.springframework.boot.diagnostics.analyzer.BindValidationFailureAnalyzer, org.springframework.boot.diagnostics.analyzer.UnboundConfigurationPropertyFailureAnalyzer, org.springframework.boot.diagnostics.analyzer.ConnectorStartFailureAnalyzer, org.springframework.boot.diagnostics.analyzer.NoSuchMethodFailureAnalyzer, org.springframework.boot.diagnostics.analyzer.NoUniqueBeanDefinitionFailureAnalyzer, org.springframework.boot.diagnostics.analyzer.PortInUseFailureAnalyzer, org.springframework.boot.diagnostics.analyzer.ValidationExceptionFailureAnalyzer, org.springframework.boot.diagnostics.analyzer.InvalidConfigurationPropertyNameFailureAnalyzer, org.springframework.boot.diagnostics.analyzer.InvalidConfigurationPropertyValueFailureAnalyzer, org.springframework.boot.autoconfigure.diagnostics.analyzer.NoSuchBeanDefinitionFailureAnalyzer, org.springframework.boot.autoconfigure.jdbc.DataSourceBeanCreationFailureAnalyzer, org.springframework.boot.autoconfigure.jdbc.HikariDriverConfigurationFailureAnalyzer, org.springframework.boot.autoconfigure.session.NonUniqueSessionRepositoryFailureAnalyzer, org.springframework.cloud.alibaba.nacos.diagnostics.analyzer.NacosConnectionFailureAnalyzer, org.springframework.cloud.configuration.CompatibilityNotMetFailureAnalyzer]


(2)EnvironmentPostProcessor

org.springframework.boot.env.EnvironmentPostProcessor

[org.springframework.boot.cloud.CloudFoundryVcapEnvironmentPostProcessor, org.springframework.boot.env.SpringApplicationJsonEnvironmentPostProcessor, org.springframework.boot.env.SystemEnvironmentPropertySourceEnvironmentPostProcessor, org.springframework.cloud.client.HostInfoEnvironmentPostProcessor]


org.springframework.boot.(3)SpringApplicationRunListener

[org.springframework.boot.context.event.EventPublishingRunListener]


org.springframework.context.(4)ApplicationContextInitializer

[org.springframework.boot.context.ConfigurationWarningsApplicationContextInitializer, org.springframework.boot.context.ContextIdApplicationContextInitializer, org.springframework.boot.context.config.DelegatingApplicationContextInitializer, org.springframework.boot.web.context.ServerPortInfoApplicationContextInitializer, org.springframework.boot.autoconfigure.SharedMetadataReaderFactoryContextInitializer, org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener]


org.springframework.boot.env.(5)PropertySourceLoader

[org.springframework.boot.env.PropertiesPropertySourceLoader, org.springframework.boot.env.YamlPropertySourceLoader]


org.springframework.context.(6)ApplicationListener

org.springframework.boot.ClearCachesApplicationListener

org.springframework.boot.builder.ParentContextCloserApplicationListener

org.springframework.boot.context.FileEncodingApplicationListener

org.springframework.boot.context.config.AnsiOutputApplicationListener

org.springframework.boot.context.config.ConfigFileApplicationListener

org.springframework.boot.context.config.DelegatingApplicationListener

org.springframework.boot.context.logging.ClasspathLoggingApplicationListener

org.springframework.boot.context.logging.LoggingApplicationListener

org.springframework.boot.liquibase.LiquibaseServiceLocatorApplicationListener

org.springframework.boot.autoconfigure.BackgroundPreinitializer

org.springframework.cloud.bootstrap.BootstrapApplicationListener

org.springframework.cloud.bootstrap.LoggingSystemShutdownListener,

org.springframework.cloud.context.restart.RestartListener


org.springframework.boot.diagnostics.(7)FailureAnalysisReporter

[org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter]


org.springframework.boot.(8)SpringBootExceptionReporter

[org.springframework.boot.diagnostics.FailureAnalyzers]


org.springframework.boot.autoconfigure.(9)AutoConfigurationImportFilter

[org.springframework.boot.autoconfigure.condition.OnBeanCondition, org.springframework.boot.autoconfigure.condition.OnClassCondition, org.springframework.boot.autoconfigure.condition.OnWebApplicationCondition]


org.springframework.boot.autoconfigure.(10)AutoConfigurationImportListener

[org.springframework.boot.autoconfigure.condition.ConditionEvaluationReportAutoConfigurationImportListener]


org.springframework.boot.autoconfigure.template.(11)TemplateAvailabilityProvider

[org.springframework.boot.autoconfigure.freemarker.FreeMarkerTemplateAvailabilityProvider, org.springframework.boot.autoconfigure.mustache.MustacheTemplateAvailabilityProvider, org.springframework.boot.autoconfigure.groovy.template.GroovyTemplateAvailabilityProvider, org.springframework.boot.autoconfigure.thymeleaf.ThymeleafTemplateAvailabilityProvider, org.springframework.boot.autoconfigure.web.servlet.JspTemplateAvailabilityProvider]


org.springframework.boot.autoconfigure.(12)EnableAutoConfiguration

[org.springframework.boot.autoconfigure.admin.SpringApplicationAdminJmxAutoConfiguration, org.springframework.boot.autoconfigure.aop.AopAutoConfiguration, org.springframework.boot.autoconfigure.amqp.RabbitAutoConfiguration, org.springframework.boot.autoconfigure.batch.BatchAutoConfiguration, org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration, org.springframework.boot.autoconfigure.cassandra.CassandraAutoConfiguration, org.springframework.boot.autoconfigure.cloud.CloudServiceConnectorsAutoConfiguration, org.springframework.boot.autoconfigure.context.ConfigurationPropertiesAutoConfiguration, org.springframework.boot.autoconfigure.context.MessageSourceAutoConfiguration, org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration, org.springframework.boot.autoconfigure.couchbase.CouchbaseAutoConfiguration, org.springframework.boot.autoconfigure.dao.PersistenceExceptionTranslationAutoConfiguration,

... //省略

org.springframework.cloud.alibaba.nacos.NacosConfigAutoConfiguration,

org.springframework.cloud.alibaba.nacos.endpoint.NacosConfigEndpointAutoConfiguration, org.springframework.cloud.client.CommonsClientAutoConfiguration, org.s...


org.springframework.data.util.(13)ProxyUtils$ProxyDetector

[org.springframework.data.jpa.util.HibernateProxyDetector]


org.springframework.data.repository.core.support.(14)RepositoryFactorySupport

[org.springframework.data.jpa.repository.support.JpaRepositoryFactory]


org.springframework.data.web.config.(15)SpringDataJacksonModules

[org.springframework.data.web.config.SpringDataJacksonConfiguration]


org.springframework.beans.(16)BeanInfoFactory

[org.springframework.beans.ExtendedBeanInfoFactory]


org.springframework.cloud.bootstrap.(17)BootstrapConfiguration

[org.springframework.cloud.alibaba.nacos.NacosConfigBootstrapConfiguration, org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration, org.springframework.cloud.bootstrap.encrypt.EncryptionBootstrapConfiguration, org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration, org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration]


转载:https://blog.csdn.net/u011149152/article/details/128799670
查看评论
* 以上用户言论只代表其个人观点,不代表本网站的观点或立场