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
此時執(zhí)行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
摘要:如下頁面模版的配置啟動簡單流程當我們運行的方法時調用靜態(tài)方法首先是實例化初始化的時候主要做主要做三件事根據(jù)下是否存在判斷是否要啟動一個。將配置環(huán)境加入到監(jiān)聽器對象中。方法將等重要組件與上下文對象關聯(lián)。自此的簡單流程到此結束。
正文
說springboot的啟動流程當然少不了springboot啟動入口類
@SpringBootApplication
public class Sprin...