美文网首页SpringBoot精选程序员Spring Boot
SpringBoot基础教程(十一)——与自定义Runner的结

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

作者: 数齐 | 来源:发表于2018-03-24 13:01 被阅读60次

    自定义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的结合

    本节项目源码

    相关文章

      网友评论

        本文标题:SpringBoot基础教程(十一)——与自定义Runner的结

        本文链接:https://www.haomeiwen.com/subject/wasqcftx.html