【发布时间】:2015-09-16 12:26:21
【问题描述】:
我正在经历将我的 Mule 项目转换为 Spring Boot 应用程序的过程,但遇到了一个我似乎无法弄清楚的问题。
我对 Spring Boot 还很陌生,所以我不确定我的问题是出在它上,还是出在我做 mule 的方式上。
这是我一直在尝试转换的示例项目:https://github.com/JustinBell/mule-webapp-example
当我将它部署到 tomcat 实例时,它运行良好,但当我尝试将它作为 Spring Boot 应用程序运行时,我遇到了这个异常:
ApplicationContextException: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean.
作为说明,我正在从 mule 3.6.1 迁移到 3.7.0-M1,因为这是使用 Spring Boot 所必需的(根据我的理解)。
我已尝试四处寻找有关此问题的支持,这似乎很常见,但我发现的任何建议都没有解决该问题。
感谢您对这些问题的任何帮助!
【问题讨论】:
-
我注意到
servlet:inbound-endpoint中的github.com/JustinBell/mule-webapp-example/blob/master/src/main/… :您将使用什么Servlet 容器? Spring boot 是否将web.xml加载到 Servlet 容器中? -
我的理解是,将使用带有 Spring Boot 的嵌入式 tomcat 实例,但你的问题让我再次思考,所以我正在研究嵌入式实例如何工作以确保它是做我所期望的。
标签: java spring-boot mule