---
title: "Spring Boot: Unable to start EmbeddedWebApplicationContext due to missing Embedd"
author: "wangyanlong0107"
date: "2017-03-22T08:51:13Z"
tags: []
categories: ["开源软件"]
slug: "spring-boot-unable-to-start-embeddedwebapplicationcontext-due-to-missing-embedd"
draft: false
lastmod: "2017-03-22T08:47:11Z"
id: 2364644
url: "https://bigdragon.iteye.com/blog/2364644"
---

spring boot启动时报错：

# [Spring Boot: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean](http://stackoverflow.com/questions/21783391/spring-boot-unable-to-start-embeddedwebapplicationcontext-due-to-missing-embedd)

但是用命令mvn clean package spring-boot:run -Plocal 可以启动。

则需要配置程序启动参数，如图所示。