日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean 解决方案

發布時間:2025/3/8 编程问答 15 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean 解决方案 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

SpringBoot啟動時的異常信息

"C:\Program Files\Java\jdk1.8.0_161\bin\java" ......... com.fangxing.javalearning.annotationlearning.ComponentScanApp hello world. ____ _ __ _ _/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \\\/ ___)| |_)| | | | | || (_| | ) ) ) )' |____| .__|_| |_|_| |_\__, | / / / /=========|_|==============|___/=/_/_/_/:: Spring Boot :: (v2.0.0.RELEASE)2018-04-03 22:25:07.232 INFO 4976 --- [ main] c.f.j.a.ComponentScanApp : Starting ComponentScanApp on DESKTOP-BHGM3HS with PID 4976 (started by hasee in D:\test\projects\java-learning) 2018-04-03 22:25:07.237 INFO 4976 --- [ main] c.f.j.a.ComponentScanApp : No active profile set, falling back to default profiles: default 2018-04-03 22:25:07.321 INFO 4976 --- [ main] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@45f45fa1: startup date [Tue Apr 03 22:25:07 CST 2018]; root of context hierarchy 2018-04-03 22:25:07.664 WARN 4976 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.2018-04-03 22:25:08.238 ERROR 4976 --- [ main] o.s.boot.SpringApplication : Application run failedorg.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:155) ~[spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE]at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543) ~[spring-context-5.0.4.RELEASE.jar:5.0.4.RELEASE]at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140) ~[spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE]at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:752) [spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE]at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:388) [spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE]at org.springframework.boot.SpringApplication.run(SpringApplication.java:327) [spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE]at org.springframework.boot.SpringApplication.run(SpringApplication.java:1246) [spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE]at org.springframework.boot.SpringApplication.run(SpringApplication.java:1234) [spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE]at com.fangxing.javalearning.annotationlearning.ComponentScanApp.main(ComponentScanApp.java:15) [classes/:na] Caused by: org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getWebServerFactory(ServletWebServerApplicationContext.java:204) ~[spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE]at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:178) ~[spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE]at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:152) ~[spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE]... 8 common frames omittedProcess finished with exit code 1 錯誤的產生是:未能加載嵌入的供web應用加載的空間,是因為缺少ServletWebServerFactory bean

解決方案: 添加@EnableAutoConfiguration注解

總結

以上是生活随笔為你收集整理的Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean 解决方案的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 久久精品国产亚洲AV高清综合 | 波多野结衣一区二区三区高清 | 免费看国产曰批40分钟 | 日日夜夜2017 | 三级视频网站在线观看 | 人人插插| 男人日女人免费视频 | 国产成人8x视频一区二区 | 女人扒开腿让男人捅爽 | 久久伊人成人网 | 日韩中文字幕观看 | 欧美二区在线 | 日韩欧美亚洲在线 | 91国内产香蕉 | 日本国产在线 | 黄色一级在线视频 | 日韩欧美小视频 | 国产二页| 中文字幕国产一区 | 欧洲国产视频 | 国产成人免费在线 | 国产欧美一区二区在线 | 国产盗摄一区二区三区在线 | 人妻一区二区视频 | 精品欧美乱码久久久久久 | 深夜福利av| 轻轻草在线视频 | 久操不卡| 天堂影院一区二区 | 欧美成一区二区三区 | 欧美男女视频 | av无码久久久久久不卡网站 | 国产又粗又猛又黄又爽 | 精品人妻一区二区三区含羞草 | 男男巨肉啪啪动漫3d | 91成年人视频 | 久久亚洲精少妇毛片午夜无码 | 国产精品久久久久久无人区 | 久久午夜无码鲁丝片 | 精品国产亚洲一区二区麻豆 | 中文永久免费观看 | 国产丝袜一区二区 | 91黄色短视频 | 中文字幕一区二区不卡 | 国内精品国产成人国产三级 | 91黄色短视频 | 拍真实国产伦偷精品 | 3p在线播放 | 天天色影网 | 欧美激情videos | 国产一区二区视频免费 | 国产靠逼视频 | 伊人在线视频 | 色七七桃花综合影院 | 男生插女生的视频 | 亚洲精品乱码久久久久久日本蜜臀 | 日韩在线观看视频网站 | 午夜美女福利 | 国产尻逼 | 农村脱精光一级 | 91人妻一区二区三区蜜臀 | 国产15页 | 国产精品久久久久久久久久久免费看 | 亚洲一区二区三区色 | 最新中文在线视频 | 免费av福利 | 天堂va蜜桃一区 | 亚洲视频欧洲视频 | 伊人国产在线观看 | 狠狠操91| 别揉我奶头一区二区三区 | 又黄又爽视频在线观看 | 又爽又黄又无遮挡 | 国产经典三级在线 | 中文字幕免费高清在线观看 | 波多野结衣一区二区三区高清av | 性xxxx18 | 日本中文字幕在线观看视频 | 亚洲产国偷v产偷v自拍涩爱 | 久久精品国产精品 | 欧美xxxx网站| 91成人黄色 | 久久国产精品无码一区二区 | 韩国三级国产 | 精品中文在线 | 男人和女人插插 | 久久激情五月 | 一起操在线观看 | 四虎永久在线精品免费网址 | 91精品网站 | 国产三级国产精品国产专区50 | 国产一区二区播放 | 欧美日韩国产大片 | 另类少妇人与禽zozz0性伦 | 欧美在线观看免费高清 | 玖玖五月 | 撒尿free性hd | 亚洲综合中文字幕在线 | 白浆影院 |