SpringBoot 自动配置预加载类-01

获取配置类

package com.xbm;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;


@MapperScan("com.xbm")
@SpringBootApplication(scanBasePackages = "com.xbm")
public class SpringBootWebApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(SpringBootWebApplication.class, args);
        String[] beanDefinitionNames = run.getBeanDefinitionNames();
        for (String beanName : beanDefinitionNames) {
            System.out.println("beanName:" + beanName);

        }
    }

}

运行结果:

beanName:org.springframework.context.annotation.internalConfigurationAnnotationProcessor
beanName:org.springframework.context.annotation.internalAutowiredAnnotationProcessor
beanName:org.springframework.context.annotation.internalCommonAnnotationProcessor
beanName:org.springframework.context.event.internalEventListenerProcessor
beanName:org.springframework.context.event.internalEventListenerFactory
beanName:springBootWebApplication
beanName:org.springframework.boot.autoconfigure.internalCachingMetadataReaderFactory
beanName:loginController
beanName:usersController
beanName:userDaoServices
beanName:com.xbm.SpringBootWebApplication#MapperScannerRegistrar#0
beanName:org.springframework.boot.autoconfigure.AutoConfigurationPackages
beanName:org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration
beanName:propertySourcesPlaceholderConfigurer
beanName:org.springframework.boot.autoconfigure.ssl.SslAutoConfiguration
beanName:sslPropertiesSslBundleRegistrar
beanName:sslBundleRegistry
beanName:org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor
beanName:org.springframework.boot.context.internalConfigurationPropertiesBinder
beanName:org.springframework.boot.context.properties.BoundConfigurationProperties
beanName:org.springframework.boot.context.properties.EnableConfigurationPropertiesRegistrar.methodValidationExcludeFilter
beanName:spring.ssl-org.springframework.boot.autoconfigure.ssl.SslProperties
beanName:org.springframework.boot.autoconfigure.websocket.servlet.WebSocketServletAutoConfiguration$TomcatWebSocketConfiguration
beanName:websocketServletWebServerCustomizer
beanName:org.springframework.boot.autoconfigure.websocket.servlet.WebSocketServletAutoConfiguration
beanName:org.springframework.boot.autoconfigure.web.servlet.ServletWebServerFactoryConfiguration$EmbeddedTomcat
beanName:tomcatServletWebServerFactory
beanName:org.springframework.boot.autoconfigure.web.servlet.ServletWebServerFactoryAutoConfiguration
beanName:servletWebServerFactoryCustomizer
beanName:tomcatServletWebServerFactoryCustomizer
beanName:server-org.springframework.boot.autoconfigure.web.ServerProperties
beanName:webServerFactoryCustomizerBeanPostProcessor
beanName:errorPageRegistrarBeanPostProcessor
beanName:org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration$DispatcherServletConfiguration
beanName:dispatcherServlet
beanName:spring.mvc-org.springframework.boot.autoconfigure.web.servlet.WebMvcProperties
beanName:org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration$DispatcherServletRegistrationConfiguration
beanName:dispatcherServletRegistration
beanName:org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration
beanName:org.springframework.boot.autoconfigure.task.TaskExecutionAutoConfiguration
beanName:taskExecutorBuilder
beanName:applicationTaskExecutor
beanName:spring.task.execution-org.springframework.boot.autoconfigure.task.TaskExecutionProperties
beanName:org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration$WhitelabelErrorViewConfiguration
beanName:error
beanName:beanNameViewResolver
beanName:org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration$DefaultErrorViewResolverConfiguration
beanName:conventionErrorViewResolver
beanName:spring.web-org.springframework.boot.autoconfigure.web.WebProperties
beanName:org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration
beanName:errorAttributes
beanName:basicErrorController
beanName:errorPageCustomizer
beanName:preserveErrorControllerTargetClassPostProcessor
beanName:org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration$EnableWebMvcConfiguration
beanName:requestMappingHandlerAdapter
beanName:welcomePageHandlerMapping
beanName:welcomePageNotAcceptableHandlerMapping
beanName:localeResolver
beanName:themeResolver
beanName:flashMapManager
beanName:mvcConversionService
beanName:mvcValidator
beanName:mvcContentNegotiationManager
beanName:requestMappingHandlerMapping
beanName:mvcPatternParser
beanName:mvcUrlPathHelper
beanName:mvcPathMatcher
beanName:viewControllerHandlerMapping
beanName:beanNameHandlerMapping
beanName:routerFunctionMapping
beanName:resourceHandlerMapping
beanName:mvcResourceUrlProvider
beanName:defaultServletHandlerMapping
beanName:handlerFunctionAdapter
beanName:mvcUriComponentsContributor
beanName:httpRequestHandlerAdapter
beanName:simpleControllerHandlerAdapter
beanName:handlerExceptionResolver
beanName:mvcViewResolver
beanName:mvcHandlerMappingIntrospector
beanName:viewNameTranslator
beanName:org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter
beanName:defaultViewResolver
beanName:viewResolver
beanName:requestContextFilter
beanName:org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration
beanName:formContentFilter
beanName:org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Generic
beanName:dataSource
beanName:org.springframework.boot.autoconfigure.jdbc.DataSourceJmxConfiguration$Hikari
beanName:org.springframework.boot.autoconfigure.jdbc.DataSourceJmxConfiguration
beanName:org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$PooledDataSourceConfiguration
beanName:jdbcConnectionDetails
beanName:org.springframework.boot.autoconfigure.jdbc.metadata.DataSourcePoolMetadataProvidersConfiguration$HikariPoolDataSourceMetadataProviderConfiguration
beanName:hikariPoolDataSourceMetadataProvider
beanName:org.springframework.boot.autoconfigure.jdbc.metadata.DataSourcePoolMetadataProvidersConfiguration
beanName:org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
beanName:spring.datasource-org.springframework.boot.autoconfigure.jdbc.DataSourceProperties
beanName:org.mybatis.spring.boot.autoconfigure.MybatisLanguageDriverAutoConfiguration
beanName:org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration
beanName:sqlSessionFactory
beanName:sqlSessionTemplate
beanName:mybatis-org.mybatis.spring.boot.autoconfigure.MybatisProperties
beanName:org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration
beanName:mbeanExporter
beanName:objectNamingStrategy
beanName:mbeanServer
beanName:spring.jmx-org.springframework.boot.autoconfigure.jmx.JmxProperties
beanName:org.springframework.boot.autoconfigure.admin.SpringApplicationAdminJmxAutoConfiguration
beanName:springApplicationAdminRegistrar
beanName:org.springframework.boot.autoconfigure.aop.AopAutoConfiguration$ClassProxyingConfiguration
beanName:forceAutoProxyCreatorToUseClassProxying
beanName:org.springframework.boot.autoconfigure.aop.AopAutoConfiguration
beanName:org.springframework.boot.autoconfigure.availability.ApplicationAvailabilityAutoConfiguration
beanName:applicationAvailability
beanName:org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$Jackson2ObjectMapperBuilderCustomizerConfiguration
beanName:standardJacksonObjectMapperBuilderCustomizer
beanName:spring.jackson-org.springframework.boot.autoconfigure.jackson.JacksonProperties
beanName:org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$JacksonObjectMapperBuilderConfiguration
beanName:jacksonObjectMapperBuilder
beanName:org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$ParameterNamesModuleConfiguration
beanName:parameterNamesModule
beanName:org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$JacksonObjectMapperConfiguration
beanName:jacksonObjectMapper
beanName:org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$JacksonMixinConfiguration
beanName:jsonMixinModuleEntries
beanName:jsonMixinModule
beanName:org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration
beanName:jsonComponentModule
beanName:org.springframework.boot.autoconfigure.context.ConfigurationPropertiesAutoConfiguration
beanName:org.springframework.boot.autoconfigure.context.LifecycleAutoConfiguration
beanName:lifecycleProcessor
beanName:spring.lifecycle-org.springframework.boot.autoconfigure.context.LifecycleProperties
beanName:org.springframework.boot.autoconfigure.dao.PersistenceExceptionTranslationAutoConfiguration
beanName:persistenceExceptionTranslationPostProcessor
beanName:org.springframework.boot.autoconfigure.jdbc.JdbcTemplateConfiguration
beanName:jdbcTemplate
beanName:org.springframework.boot.autoconfigure.jdbc.NamedParameterJdbcTemplateConfiguration
beanName:namedParameterJdbcTemplate
beanName:org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration
beanName:spring.jdbc-org.springframework.boot.autoconfigure.jdbc.JdbcProperties
beanName:org.springframework.boot.sql.init.dependency.DatabaseInitializationDependencyConfigurer$DependsOnDatabaseInitializationPostProcessor
beanName:org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration$JdbcTransactionManagerConfiguration
beanName:transactionManager
beanName:org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration
beanName:org.springframework.boot.autoconfigure.data.jdbc.JdbcRepositoriesAutoConfiguration$SpringBootJdbcConfiguration
beanName:jdbcManagedTypes
beanName:jdbcMappingContext
beanName:jdbcConverter
beanName:jdbcCustomConversions
beanName:jdbcAggregateTemplate
beanName:dataAccessStrategyBean
beanName:jdbcDialect
beanName:org.springframework.boot.autoconfigure.data.jdbc.JdbcRepositoriesAutoConfiguration$JdbcRepositoriesConfiguration
beanName:data-jdbc.repository-aot-processor#0
beanName:org.springframework.boot.autoconfigure.data.jdbc.JdbcRepositoriesAutoConfiguration
beanName:org.springframework.boot.autoconfigure.http.HttpMessageConvertersAutoConfiguration$StringHttpMessageConverterConfiguration
beanName:stringHttpMessageConverter
beanName:org.springframework.boot.autoconfigure.http.JacksonHttpMessageConvertersConfiguration$MappingJackson2HttpMessageConverterConfiguration
beanName:mappingJackson2HttpMessageConverter
beanName:org.springframework.boot.autoconfigure.http.JacksonHttpMessageConvertersConfiguration
beanName:org.springframework.boot.autoconfigure.http.HttpMessageConvertersAutoConfiguration
beanName:messageConverters
beanName:org.springframework.data.web.config.ProjectingArgumentResolverRegistrar
beanName:projectingArgumentResolverBeanPostProcessor
beanName:org.springframework.data.web.config.SpringDataWebConfiguration
beanName:pageableResolver
beanName:sortResolver
beanName:org.springframework.data.web.config.SpringDataJacksonConfiguration
beanName:jacksonGeoModule
beanName:org.springframework.boot.autoconfigure.data.web.SpringDataWebAutoConfiguration
beanName:pageableCustomizer
beanName:sortCustomizer
beanName:spring.data.web-org.springframework.boot.autoconfigure.data.web.SpringDataWebProperties
beanName:org.springframework.boot.autoconfigure.info.ProjectInfoAutoConfiguration
beanName:spring.info-org.springframework.boot.autoconfigure.info.ProjectInfoProperties
beanName:org.springframework.boot.autoconfigure.sql.init.DataSourceInitializationConfiguration
beanName:dataSourceScriptDatabaseInitializer
beanName:org.springframework.boot.autoconfigure.sql.init.SqlInitializationAutoConfiguration
beanName:spring.sql.init-org.springframework.boot.autoconfigure.sql.init.SqlInitializationProperties
beanName:org.springframework.boot.autoconfigure.task.TaskSchedulingAutoConfiguration
beanName:taskSchedulerBuilder
beanName:spring.task.scheduling-org.springframework.boot.autoconfigure.task.TaskSchedulingProperties
beanName:org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration$ThymeleafWebMvcConfiguration$ThymeleafViewResolverConfiguration
beanName:thymeleafViewResolver
beanName:org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration$ThymeleafWebMvcConfiguration
beanName:org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration$DefaultTemplateResolverConfiguration
beanName:defaultTemplateResolver
beanName:org.springframework.boot.autoconfigure.thymeleaf.TemplateEngineConfigurations$DefaultTemplateEngineConfiguration
beanName:templateEngine
beanName:org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration
beanName:spring.thymeleaf-org.springframework.boot.autoconfigure.thymeleaf.ThymeleafProperties
beanName:org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration
beanName:org.springframework.transaction.config.internalTransactionAdvisor
beanName:transactionAttributeSource
beanName:transactionInterceptor
beanName:org.springframework.transaction.config.internalTransactionalEventListenerFactory
beanName:org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration$EnableTransactionManagementConfiguration$CglibAutoProxyConfiguration
beanName:org.springframework.aop.config.internalAutoProxyCreator
beanName:org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration$EnableTransactionManagementConfiguration
beanName:org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration$TransactionTemplateConfiguration
beanName:transactionTemplate
beanName:org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration
beanName:platformTransactionManagerCustomizers
beanName:spring.transaction-org.springframework.boot.autoconfigure.transaction.TransactionProperties
beanName:org.springframework.boot.autoconfigure.web.client.RestTemplateAutoConfiguration
beanName:restTemplateBuilderConfigurer
beanName:restTemplateBuilder
beanName:org.springframework.boot.autoconfigure.web.embedded.EmbeddedWebServerFactoryCustomizerAutoConfiguration$TomcatWebServerFactoryCustomizerConfiguration
beanName:tomcatWebServerFactoryCustomizer
beanName:org.springframework.boot.autoconfigure.web.embedded.EmbeddedWebServerFactoryCustomizerAutoConfiguration
beanName:org.springframework.boot.autoconfigure.web.servlet.HttpEncodingAutoConfiguration
beanName:characterEncodingFilter
beanName:localeCharsetMappingsCustomizer
beanName:org.springframework.boot.autoconfigure.web.servlet.MultipartAutoConfiguration
beanName:multipartConfigElement
beanName:multipartResolver
beanName:spring.servlet.multipart-org.springframework.boot.autoconfigure.web.servlet.MultipartProperties
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

继春

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值