4.0.0com.lghsample0.0.1-SNAPSHOTwarsampleDemo project for Spring Bootorg.springframework.bootspring-boot-starter-parent2.0.2.RELEASEUTF-8UTF-81.8org.springframework.bootspring-boot-starter-webjavax.servletjstlorg.springframework.bootspring-boot-starter-tomcatorg.apache.tomcat.embedtomcat-embed-jasperorg.springframework.bootspring-boot-starter-testtestorg.springframework.bootspring-boot-devtoolsruntimeorg.springframework.bootspring-boot-maven-pluginorg.apache.maven.pluginsmaven-surefire-pluginfalse
4.0.0com.lghclient0.0.1-SNAPSHOTwarclientDemo project for Spring Bootorg.springframework.bootspring-boot-starter-parent2.0.2.RELEASEUTF-8UTF-81.8org.springframework.bootspring-boot-starter-weborg.springframework.bootspring-boot-starter-tomcatjavax.servletjstljavax.servletjavax.servlet-api3.1.0providedorg.springframework.bootspring-boot-starter-testtestorg.springframework.bootspring-boot-devtoolsruntimeorg.springframework.bootspring-boot-maven-plugintrueorg.apache.maven.pluginsmaven-surefire-pluginfalsemaven-compiler-plugin1.81.8
4.0.0com.lghsample0.0.1-SNAPSHOTwarsampleDemo project for Spring Bootorg.springframework.bootspring-boot-starter-parent2.0.2.RELEASEUTF-8UTF-81.8org.springframework.bootspring-boot-starter-weborg.springframework.bootspring-boot-devtoolsruntimeorg.springframework.bootspring-boot-starter-tomcatprovidedorg.springframework.bootspring-boot-starter-testtestorg.springframework.bootspring-boot-maven-plugin
此时执行main方法启动应用,报错如下 org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.lgh.client.ClientApplication]; nested exception is java.lang.IllegalStateException: Failed to introspect annotated methods on class org.springframework.boot.web.servlet.support.SpringBootServletInitializer
摘要:如下页面模版的配置启动简单流程当我们运行的方法时调用静态方法首先是实例化初始化的时候主要做主要做三件事根据下是否存在判断是否要启动一个。将配置环境加入到监听器对象中。方法将等重要组件与上下文对象关联。自此的简单流程到此结束。
正文
说springboot的启动流程当然少不了springboot启动入口类
@SpringBootApplication
public class Sprin...