SpringBoot基础教程(十一)——与自定义Runner的结合

自定义Runner是spring boot特有的一个扩展点。他可以再spring boot启动的末期,处理一些收尾的工作。因为执行到runner的时候,spring的容器已经起来了,Bean也都实例好了,我们可以”为所欲为“了。runner有两种:ApplicationRunner和CommandLineRunner,他们没有啥本质的区别,如果希望获得程序启动时的原生的参数数组就使用CommandLineRunner,ApplicationRunner把参数封装成了ApplicationArguments,本质上都是相同的。所以这两个挑一个自己喜欢的使用就行。
这个功能不需要特定的jar支持,所以就不展示pom了。我们现在实现个功能:在容器启动后,打印所有Bean的名称。我们可以这么搞

package com.shuqi.runner;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeansException;
import org.springframework.boot.CommandLineRunner;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component;

import java.util.stream.Stream;


/**
 * 打印Bean的名称
 */
@Component
@Slf4j
public class PrintBeanNameCommandLineRunner implements CommandLineRunner, ApplicationContextAware {

    private ApplicationContext applicationContext;

    @Override
    public void run(String... args) throws Exception {
        String[] beanNamesForType = this.applicationContext.getBeanNamesForType(Object.class);
        Stream.of(beanNamesForType).forEach(t -> log.info("bean name:{}", t));
    }

    @Override
    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
        this.applicationContext = applicationContext;
    }
}

看下启动的日志

/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/bin/java "-javaagent:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar=63626:/Applications/IntelliJ IDEA.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath /Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre/lib/ext/jaccess.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre/lib/ext/jfxrt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre/lib/ext/nashorn.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre/lib/ext/sunec.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre/lib/ext/sunjce_provider.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre/lib/ext/sunpkcs11.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre/lib/ext/zipfs.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre/lib/javaws.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre/lib/jfxswt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre/lib/management-agent.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre/lib/plugin.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/lib/packager.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/lib/tools.jar:/Users/olifer/github/spring-boot-test/spring-boot-runner-start/target/classes:/Users/olifer/.m2/repository/org/springframework/boot/spring-boot-starter/1.3.5.RELEASE/spring-boot-starter-1.3.5.RELEASE.jar:/Users/olifer/.m2/repository/org/springframework/boot/spring-boot/1.3.5.RELEASE/spring-boot-1.3.5.RELEASE.jar:/Users/olifer/.m2/repository/org/springframework/spring-context/4.2.6.RELEASE/spring-context-4.2.6.RELEASE.jar:/Users/olifer/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/1.3.5.RELEASE/spring-boot-autoconfigure-1.3.5.RELEASE.jar:/Users/olifer/.m2/repository/org/springframework/boot/spring-boot-starter-logging/1.3.5.RELEASE/spring-boot-starter-logging-1.3.5.RELEASE.jar:/Users/olifer/.m2/repository/ch/qos/logback/logback-classic/1.1.7/logback-classic-1.1.7.jar:/Users/olifer/.m2/repository/ch/qos/logback/logback-core/1.1.7/logback-core-1.1.7.jar:/Users/olifer/.m2/repository/org/slf4j/slf4j-api/1.7.21/slf4j-api-1.7.21.jar:/Users/olifer/.m2/repository/org/slf4j/jcl-over-slf4j/1.7.21/jcl-over-slf4j-1.7.21.jar:/Users/olifer/.m2/repository/org/slf4j/jul-to-slf4j/1.7.21/jul-to-slf4j-1.7.21.jar:/Users/olifer/.m2/repository/org/slf4j/log4j-over-slf4j/1.7.21/log4j-over-slf4j-1.7.21.jar:/Users/olifer/.m2/repository/org/springframework/spring-core/4.2.6.RELEASE/spring-core-4.2.6.RELEASE.jar:/Users/olifer/.m2/repository/org/yaml/snakeyaml/1.16/snakeyaml-1.16.jar:/Users/olifer/.m2/repository/org/springframework/boot/spring-boot-starter-web/1.3.5.RELEASE/spring-boot-starter-web-1.3.5.RELEASE.jar:/Users/olifer/.m2/repository/org/springframework/boot/spring-boot-starter-tomcat/1.3.5.RELEASE/spring-boot-starter-tomcat-1.3.5.RELEASE.jar:/Users/olifer/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/8.0.33/tomcat-embed-core-8.0.33.jar:/Users/olifer/.m2/repository/org/apache/tomcat/embed/tomcat-embed-el/8.0.33/tomcat-embed-el-8.0.33.jar:/Users/olifer/.m2/repository/org/apache/tomcat/embed/tomcat-embed-logging-juli/8.0.33/tomcat-embed-logging-juli-8.0.33.jar:/Users/olifer/.m2/repository/org/apache/tomcat/embed/tomcat-embed-websocket/8.0.33/tomcat-embed-websocket-8.0.33.jar:/Users/olifer/.m2/repository/org/springframework/boot/spring-boot-starter-validation/1.3.5.RELEASE/spring-boot-starter-validation-1.3.5.RELEASE.jar:/Users/olifer/.m2/repository/org/hibernate/hibernate-validator/5.2.4.Final/hibernate-validator-5.2.4.Final.jar:/Users/olifer/.m2/repository/javax/validation/validation-api/1.1.0.Final/validation-api-1.1.0.Final.jar:/Users/olifer/.m2/repository/org/jboss/logging/jboss-logging/3.3.0.Final/jboss-logging-3.3.0.Final.jar:/Users/olifer/.m2/repository/com/fasterxml/classmate/1.1.0/classmate-1.1.0.jar:/Users/olifer/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.6.6/jackson-databind-2.6.6.jar:/Users/olifer/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.6.6/jackson-annotations-2.6.6.jar:/Users/olifer/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.6.6/jackson-core-2.6.6.jar:/Users/olifer/.m2/repository/org/springframework/spring-web/4.2.6.RELEASE/spring-web-4.2.6.RELEASE.jar:/Users/olifer/.m2/repository/org/springframework/spring-aop/4.2.6.RELEASE/spring-aop-4.2.6.RELEASE.jar:/Users/olifer/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar:/Users/olifer/.m2/repository/org/springframework/spring-beans/4.2.6.RELEASE/spring-beans-4.2.6.RELEASE.jar:/Users/olifer/.m2/repository/org/springframework/spring-webmvc/4.2.6.RELEASE/spring-webmvc-4.2.6.RELEASE.jar:/Users/olifer/.m2/repository/org/springframework/spring-expression/4.2.6.RELEASE/spring-expression-4.2.6.RELEASE.jar:/Users/olifer/.m2/repository/org/projectlombok/lombok/1.14.8/lombok-1.14.8.jar com.shuqi.ApplicationMain
objc[3590]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v1.3.5.RELEASE)

2018-03-25 14:58:39.198  INFO 3590 --- [           main] com.shuqi.ApplicationMain                : Starting ApplicationMain on oliferdeMacBook-Pro.local with PID 3590 (/Users/olifer/github/spring-boot-test/spring-boot-runner-start/target/classes started by olifer in /Users/olifer/github/spring-boot-test)
2018-03-25 14:58:39.210  INFO 3590 --- [           main] com.shuqi.ApplicationMain                : No active profile set, falling back to default profiles: default
2018-03-25 14:58:39.436  INFO 3590 --- [           main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@51b279c9: startup date [Sun Mar 25 14:58:39 CST 2018]; root of context hierarchy
2018-03-25 14:58:41.399  INFO 3590 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8080 (http)
2018-03-25 14:58:41.416  INFO 3590 --- [           main] o.apache.catalina.core.StandardService   : Starting service Tomcat
2018-03-25 14:58:41.417  INFO 3590 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet Engine: Apache Tomcat/8.0.33
2018-03-25 14:58:41.533  INFO 3590 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2018-03-25 14:58:41.534  INFO 3590 --- [ost-startStop-1] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 2106 ms
2018-03-25 14:58:41.786  INFO 3590 --- [ost-startStop-1] o.s.b.c.e.ServletRegistrationBean        : Mapping servlet: 'dispatcherServlet' to [/]
2018-03-25 14:58:41.792  INFO 3590 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean  : Mapping filter: 'characterEncodingFilter' to: [/*]
2018-03-25 14:58:41.793  INFO 3590 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean  : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2018-03-25 14:58:41.793  INFO 3590 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean  : Mapping filter: 'httpPutFormContentFilter' to: [/*]
2018-03-25 14:58:41.793  INFO 3590 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean  : Mapping filter: 'requestContextFilter' to: [/*]
2018-03-25 14:58:42.108  INFO 3590 --- [           main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@51b279c9: startup date [Sun Mar 25 14:58:39 CST 2018]; root of context hierarchy
2018-03-25 14:58:42.175  INFO 3590 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2018-03-25 14:58:42.175  INFO 3590 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
2018-03-25 14:58:42.210  INFO 3590 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-03-25 14:58:42.210  INFO 3590 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-03-25 14:58:42.249  INFO 3590 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-03-25 14:58:42.379  INFO 3590 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX exposure on startup
2018-03-25 14:58:42.474  INFO 3590 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8080 (http)
2018-03-25 14:58:42.481  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.context.annotation.internalConfigurationAnnotationProcessor
2018-03-25 14:58:42.483  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.context.annotation.internalAutowiredAnnotationProcessor
2018-03-25 14:58:42.483  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.context.annotation.internalRequiredAnnotationProcessor
2018-03-25 14:58:42.483  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.context.annotation.internalCommonAnnotationProcessor
2018-03-25 14:58:42.483  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.context.event.internalEventListenerProcessor
2018-03-25 14:58:42.483  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.context.event.internalEventListenerFactory
2018-03-25 14:58:42.483  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:applicationMain
2018-03-25 14:58:42.483  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor
2018-03-25 14:58:42.483  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.context.annotation.ConfigurationClassPostProcessor.enhancedConfigurationProcessor
2018-03-25 14:58:42.483  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:printBeanName2CommandLineRunner
2018-03-25 14:58:42.483  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:printBeanNameCommandLineRunner
2018-03-25 14:58:42.483  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.boot.autoconfigure.AutoConfigurationPackages
2018-03-25 14:58:42.483  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.boot.autoconfigure.PropertyPlaceholderAutoConfiguration
2018-03-25 14:58:42.483  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.boot.autoconfigure.condition.BeanTypeRegistry
2018-03-25 14:58:42.483  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:propertySourcesPlaceholderConfigurer
2018-03-25 14:58:42.484  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.boot.autoconfigure.websocket.WebSocketAutoConfiguration$TomcatWebSocketConfiguration
2018-03-25 14:58:42.484  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:websocketContainerCustomizer
2018-03-25 14:58:42.484  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.boot.autoconfigure.websocket.WebSocketAutoConfiguration
2018-03-25 14:58:42.484  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat
2018-03-25 14:58:42.484  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:tomcatEmbeddedServletContainerFactory
2018-03-25 14:58:42.484  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration
2018-03-25 14:58:42.484  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:embeddedServletContainerCustomizerBeanPostProcessor
2018-03-25 14:58:42.484  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.boot.autoconfigure.web.DispatcherServletAutoConfiguration$DispatcherServletConfiguration
2018-03-25 14:58:42.484  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:dispatcherServlet
2018-03-25 14:58:42.484  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:dispatcherServletRegistration
2018-03-25 14:58:42.484  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:spring.mvc.CONFIGURATION_PROPERTIES
2018-03-25 14:58:42.484  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor
2018-03-25 14:58:42.484  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.store
2018-03-25 14:58:42.484  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.boot.autoconfigure.web.DispatcherServletAutoConfiguration
2018-03-25 14:58:42.484  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration$WhitelabelErrorViewConfiguration
2018-03-25 14:58:42.484  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:error
2018-03-25 14:58:42.485  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:beanNameViewResolver
2018-03-25 14:58:42.485  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration
2018-03-25 14:58:42.485  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:errorAttributes
2018-03-25 14:58:42.485  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:basicErrorController
2018-03-25 14:58:42.485  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:errorPageCustomizer
2018-03-25 14:58:42.485  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:preserveErrorControllerTargetClassPostProcessor
2018-03-25 14:58:42.485  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration$EnableWebMvcConfiguration
2018-03-25 14:58:42.485  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:requestMappingHandlerAdapter
2018-03-25 14:58:42.485  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:requestMappingHandlerMapping
2018-03-25 14:58:42.487  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:mvcContentNegotiationManager
2018-03-25 14:58:42.487  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:viewControllerHandlerMapping
2018-03-25 14:58:42.487  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:beanNameHandlerMapping
2018-03-25 14:58:42.487  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:resourceHandlerMapping
2018-03-25 14:58:42.487  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:mvcResourceUrlProvider
2018-03-25 14:58:42.487  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:defaultServletHandlerMapping
2018-03-25 14:58:42.487  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:mvcConversionService
2018-03-25 14:58:42.488  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:mvcValidator
2018-03-25 14:58:42.488  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:mvcPathMatcher
2018-03-25 14:58:42.488  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:mvcUrlPathHelper
2018-03-25 14:58:42.488  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:mvcUriComponentsContributor
2018-03-25 14:58:42.488  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:httpRequestHandlerAdapter
2018-03-25 14:58:42.488  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:simpleControllerHandlerAdapter
2018-03-25 14:58:42.488  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:handlerExceptionResolver
2018-03-25 14:58:42.488  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:mvcViewResolver
2018-03-25 14:58:42.488  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter$FaviconConfiguration
2018-03-25 14:58:42.488  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:faviconHandlerMapping
2018-03-25 14:58:42.488  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:faviconRequestHandler
2018-03-25 14:58:42.488  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter
2018-03-25 14:58:42.488  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:defaultViewResolver
2018-03-25 14:58:42.489  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:requestContextFilter
2018-03-25 14:58:42.490  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:viewResolver
2018-03-25 14:58:42.490  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:spring.resources.CONFIGURATION_PROPERTIES
2018-03-25 14:58:42.490  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration
2018-03-25 14:58:42.490  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:hiddenHttpMethodFilter
2018-03-25 14:58:42.490  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:httpPutFormContentFilter
2018-03-25 14:58:42.490  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration
2018-03-25 14:58:42.490  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:mbeanExporter
2018-03-25 14:58:42.490  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:objectNamingStrategy
2018-03-25 14:58:42.492  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:mbeanServer
2018-03-25 14:58:42.492  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.boot.autoconfigure.context.ConfigurationPropertiesAutoConfiguration
2018-03-25 14:58:42.493  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$JacksonObjectMapperBuilderConfiguration
2018-03-25 14:58:42.493  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:jacksonObjectMapperBuilder
2018-03-25 14:58:42.493  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:spring.jackson.CONFIGURATION_PROPERTIES
2018-03-25 14:58:42.494  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$JacksonObjectMapperConfiguration
2018-03-25 14:58:42.494  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:jacksonObjectMapper
2018-03-25 14:58:42.495  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration
2018-03-25 14:58:42.495  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.boot.autoconfigure.web.HttpMessageConvertersAutoConfiguration$StringHttpMessageConverterConfiguration
2018-03-25 14:58:42.495  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:stringHttpMessageConverter
2018-03-25 14:58:42.495  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:spring.http.encoding.CONFIGURATION_PROPERTIES
2018-03-25 14:58:42.495  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.boot.autoconfigure.web.JacksonHttpMessageConvertersConfiguration$MappingJackson2HttpMessageConverterConfiguration
2018-03-25 14:58:42.495  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:mappingJackson2HttpMessageConverter
2018-03-25 14:58:42.495  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.boot.autoconfigure.web.JacksonHttpMessageConvertersConfiguration
2018-03-25 14:58:42.495  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.boot.autoconfigure.web.HttpMessageConvertersAutoConfiguration
2018-03-25 14:58:42.495  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:messageConverters
2018-03-25 14:58:42.496  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.boot.autoconfigure.web.HttpEncodingAutoConfiguration
2018-03-25 14:58:42.496  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:characterEncodingFilter
2018-03-25 14:58:42.496  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.boot.autoconfigure.web.MultipartAutoConfiguration
2018-03-25 14:58:42.496  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:multipartConfigElement
2018-03-25 14:58:42.496  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:multipartResolver
2018-03-25 14:58:42.496  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:multipart.CONFIGURATION_PROPERTIES
2018-03-25 14:58:42.496  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.boot.autoconfigure.web.ServerPropertiesAutoConfiguration
2018-03-25 14:58:42.496  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:serverProperties
2018-03-25 14:58:42.496  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:duplicateServerPropertiesDetector
2018-03-25 14:58:42.496  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:autoConfigurationReport
2018-03-25 14:58:42.497  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:applicationEventMulticaster
2018-03-25 14:58:42.497  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:springApplicationArguments
2018-03-25 14:58:42.497  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:springBootLoggingSystem
2018-03-25 14:58:42.497  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:environment
2018-03-25 14:58:42.497  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:systemProperties
2018-03-25 14:58:42.497  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:systemEnvironment
2018-03-25 14:58:42.497  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:org.springframework.context.annotation.ConfigurationClassPostProcessor.importRegistry
2018-03-25 14:58:42.498  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:messageSource
2018-03-25 14:58:42.498  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:servletContext
2018-03-25 14:58:42.498  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:contextParameters
2018-03-25 14:58:42.499  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:contextAttributes
2018-03-25 14:58:42.499  INFO 3590 --- [           main] c.s.r.PrintBeanName2CommandLineRunner    : bean name:lifecycleProcessor
2018-03-25 14:58:42.499  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.context.annotation.internalConfigurationAnnotationProcessor
2018-03-25 14:58:42.499  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.context.annotation.internalAutowiredAnnotationProcessor
2018-03-25 14:58:42.499  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.context.annotation.internalRequiredAnnotationProcessor
2018-03-25 14:58:42.499  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.context.annotation.internalCommonAnnotationProcessor
2018-03-25 14:58:42.499  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.context.event.internalEventListenerProcessor
2018-03-25 14:58:42.499  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.context.event.internalEventListenerFactory
2018-03-25 14:58:42.499  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:applicationMain
2018-03-25 14:58:42.499  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor
2018-03-25 14:58:42.499  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.context.annotation.ConfigurationClassPostProcessor.enhancedConfigurationProcessor
2018-03-25 14:58:42.499  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:printBeanName2CommandLineRunner
2018-03-25 14:58:42.499  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:printBeanNameCommandLineRunner
2018-03-25 14:58:42.499  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.boot.autoconfigure.AutoConfigurationPackages
2018-03-25 14:58:42.499  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.boot.autoconfigure.PropertyPlaceholderAutoConfiguration
2018-03-25 14:58:42.500  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.boot.autoconfigure.condition.BeanTypeRegistry
2018-03-25 14:58:42.500  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:propertySourcesPlaceholderConfigurer
2018-03-25 14:58:42.500  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.boot.autoconfigure.websocket.WebSocketAutoConfiguration$TomcatWebSocketConfiguration
2018-03-25 14:58:42.500  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:websocketContainerCustomizer
2018-03-25 14:58:42.500  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.boot.autoconfigure.websocket.WebSocketAutoConfiguration
2018-03-25 14:58:42.500  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat
2018-03-25 14:58:42.500  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:tomcatEmbeddedServletContainerFactory
2018-03-25 14:58:42.500  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration
2018-03-25 14:58:42.500  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:embeddedServletContainerCustomizerBeanPostProcessor
2018-03-25 14:58:42.500  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.boot.autoconfigure.web.DispatcherServletAutoConfiguration$DispatcherServletConfiguration
2018-03-25 14:58:42.501  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:dispatcherServlet
2018-03-25 14:58:42.504  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:dispatcherServletRegistration
2018-03-25 14:58:42.504  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:spring.mvc.CONFIGURATION_PROPERTIES
2018-03-25 14:58:42.504  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor
2018-03-25 14:58:42.504  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.store
2018-03-25 14:58:42.504  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.boot.autoconfigure.web.DispatcherServletAutoConfiguration
2018-03-25 14:58:42.504  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration$WhitelabelErrorViewConfiguration
2018-03-25 14:58:42.504  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:error
2018-03-25 14:58:42.505  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:beanNameViewResolver
2018-03-25 14:58:42.505  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration
2018-03-25 14:58:42.505  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:errorAttributes
2018-03-25 14:58:42.505  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:basicErrorController
2018-03-25 14:58:42.505  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:errorPageCustomizer
2018-03-25 14:58:42.505  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:preserveErrorControllerTargetClassPostProcessor
2018-03-25 14:58:42.505  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration$EnableWebMvcConfiguration
2018-03-25 14:58:42.505  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:requestMappingHandlerAdapter
2018-03-25 14:58:42.505  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:requestMappingHandlerMapping
2018-03-25 14:58:42.505  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:mvcContentNegotiationManager
2018-03-25 14:58:42.505  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:viewControllerHandlerMapping
2018-03-25 14:58:42.505  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:beanNameHandlerMapping
2018-03-25 14:58:42.505  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:resourceHandlerMapping
2018-03-25 14:58:42.505  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:mvcResourceUrlProvider
2018-03-25 14:58:42.505  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:defaultServletHandlerMapping
2018-03-25 14:58:42.505  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:mvcConversionService
2018-03-25 14:58:42.505  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:mvcValidator
2018-03-25 14:58:42.505  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:mvcPathMatcher
2018-03-25 14:58:42.505  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:mvcUrlPathHelper
2018-03-25 14:58:42.505  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:mvcUriComponentsContributor
2018-03-25 14:58:42.505  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:httpRequestHandlerAdapter
2018-03-25 14:58:42.505  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:simpleControllerHandlerAdapter
2018-03-25 14:58:42.505  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:handlerExceptionResolver
2018-03-25 14:58:42.505  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:mvcViewResolver
2018-03-25 14:58:42.506  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter$FaviconConfiguration
2018-03-25 14:58:42.506  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:faviconHandlerMapping
2018-03-25 14:58:42.506  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:faviconRequestHandler
2018-03-25 14:58:42.506  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter
2018-03-25 14:58:42.506  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:defaultViewResolver
2018-03-25 14:58:42.506  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:requestContextFilter
2018-03-25 14:58:42.506  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:viewResolver
2018-03-25 14:58:42.506  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:spring.resources.CONFIGURATION_PROPERTIES
2018-03-25 14:58:42.506  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration
2018-03-25 14:58:42.506  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:hiddenHttpMethodFilter
2018-03-25 14:58:42.506  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:httpPutFormContentFilter
2018-03-25 14:58:42.506  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration
2018-03-25 14:58:42.507  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:mbeanExporter
2018-03-25 14:58:42.507  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:objectNamingStrategy
2018-03-25 14:58:42.507  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:mbeanServer
2018-03-25 14:58:42.507  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.boot.autoconfigure.context.ConfigurationPropertiesAutoConfiguration
2018-03-25 14:58:42.507  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$JacksonObjectMapperBuilderConfiguration
2018-03-25 14:58:42.507  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:jacksonObjectMapperBuilder
2018-03-25 14:58:42.507  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:spring.jackson.CONFIGURATION_PROPERTIES
2018-03-25 14:58:42.507  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$JacksonObjectMapperConfiguration
2018-03-25 14:58:42.507  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:jacksonObjectMapper
2018-03-25 14:58:42.507  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration
2018-03-25 14:58:42.507  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.boot.autoconfigure.web.HttpMessageConvertersAutoConfiguration$StringHttpMessageConverterConfiguration
2018-03-25 14:58:42.507  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:stringHttpMessageConverter
2018-03-25 14:58:42.507  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:spring.http.encoding.CONFIGURATION_PROPERTIES
2018-03-25 14:58:42.507  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.boot.autoconfigure.web.JacksonHttpMessageConvertersConfiguration$MappingJackson2HttpMessageConverterConfiguration
2018-03-25 14:58:42.507  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:mappingJackson2HttpMessageConverter
2018-03-25 14:58:42.507  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.boot.autoconfigure.web.JacksonHttpMessageConvertersConfiguration
2018-03-25 14:58:42.507  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.boot.autoconfigure.web.HttpMessageConvertersAutoConfiguration
2018-03-25 14:58:42.507  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:messageConverters
2018-03-25 14:58:42.508  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.boot.autoconfigure.web.HttpEncodingAutoConfiguration
2018-03-25 14:58:42.508  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:characterEncodingFilter
2018-03-25 14:58:42.508  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.boot.autoconfigure.web.MultipartAutoConfiguration
2018-03-25 14:58:42.508  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:multipartConfigElement
2018-03-25 14:58:42.508  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:multipartResolver
2018-03-25 14:58:42.508  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:multipart.CONFIGURATION_PROPERTIES
2018-03-25 14:58:42.508  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.boot.autoconfigure.web.ServerPropertiesAutoConfiguration
2018-03-25 14:58:42.508  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:serverProperties
2018-03-25 14:58:42.508  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:duplicateServerPropertiesDetector
2018-03-25 14:58:42.508  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:autoConfigurationReport
2018-03-25 14:58:42.508  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:applicationEventMulticaster
2018-03-25 14:58:42.508  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:springApplicationArguments
2018-03-25 14:58:42.508  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:springBootLoggingSystem
2018-03-25 14:58:42.508  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:environment
2018-03-25 14:58:42.508  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:systemProperties
2018-03-25 14:58:42.508  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:systemEnvironment
2018-03-25 14:58:42.508  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:org.springframework.context.annotation.ConfigurationClassPostProcessor.importRegistry
2018-03-25 14:58:42.508  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:messageSource
2018-03-25 14:58:42.508  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:servletContext
2018-03-25 14:58:42.508  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:contextParameters
2018-03-25 14:58:42.508  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:contextAttributes
2018-03-25 14:58:42.508  INFO 3590 --- [           main] c.s.r.PrintBeanNameCommandLineRunner     : bean name:lifecycleProcessor
2018-03-25 14:58:42.513  INFO 3590 --- [           main] com.shuqi.ApplicationMain                : Started ApplicationMain in 4.094 seconds (JVM running for 4.709)
[2018-03-25 14:58:42] server started!

可以看到在日志的下半部分都是Bean的名称。

下节将的内容是:SpringBoot基础教程(十二)——与EventListener的结合

本节项目源码

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 213,186评论 6 492
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 90,858评论 3 387
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 158,620评论 0 348
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 56,888评论 1 285
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 66,009评论 6 385
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 50,149评论 1 291
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 39,204评论 3 412
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 37,956评论 0 268
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 44,385评论 1 303
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 36,698评论 2 327
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 38,863评论 1 341
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 34,544评论 4 335
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 40,185评论 3 317
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 30,899评论 0 21
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,141评论 1 267
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 46,684评论 2 362
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 43,750评论 2 351

推荐阅读更多精彩内容