Spring boot Zuul服务器快照会被破坏吗?

Spring boot Zuul服务器快照会被破坏吗?,spring-boot,spring-cloud,netflix-zuul,Spring Boot,Spring Cloud,Netflix Zuul,我正在构建一个在使用SpringCloudSnapshotBuild之前工作的项目。除了Zuul服务器,其他一切似乎都正常。我得到以下异常: Caused by: javax.validation.ValidationException: Unable to instantiate Configuration. at javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:279) at

我正在构建一个在使用SpringCloudSnapshotBuild之前工作的项目。除了Zuul服务器,其他一切似乎都正常。我得到以下异常:

Caused by: javax.validation.ValidationException: Unable to instantiate Configuration.
    at javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:279)
    at org.springframework.validation.beanvalidation.LocalValidatorFactoryBean.afterPropertiesSet(LocalValidatorFactoryBean.java:223)
    at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor$Jsr303ValidatorFactory.run(ConfigurationPropertiesBindingPostProcessor.java:361)
    at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.afterPropertiesSet(ConfigurationPropertiesBindingPostProcessor.java:174)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1625)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1562)
    ... 28 more
Caused by: javax.validation.ValidationException: HV000183: Unable to load 'javax.el.ExpressionFactory'. Check that you have the EL dependencies on the classpath
    at org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator.<init>(ResourceBundleMessageInterpolator.java:172)
    at org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator.<init>(ResourceBundleMessageInterpolator.java:118)
    at org.hibernate.validator.internal.engine.ConfigurationImpl.<init>(ConfigurationImpl.java:110)
    at org.hibernate.validator.internal.engine.ConfigurationImpl.<init>(ConfigurationImpl.java:86)
    at org.hibernate.validator.HibernateValidator.createGenericConfiguration(HibernateValidator.java:41)
    at javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:276)
   Caused by: java.lang.NoClassDefFoundError: org/springframework/web/client/RestTemplate
在这一点上,我放弃了修补我的POM。然后我在GIT上克隆了Zuul项目。不幸的是,我也遇到了同样的问题



想法?

这只是依赖结构的变化。我甚至不知道为什么需要EL实现,但tomcat嵌入式EL可能是最好的实现。另一个类来自SpringWeb。

它只是依赖结构中的一个变化。我甚至不知道为什么需要EL实现,但tomcat嵌入式EL可能是最好的实现。另一个类来自SpringWeb。

它只是依赖结构中的一个变化。我甚至不知道为什么需要EL实现,但tomcat嵌入式EL可能是最好的实现。另一个类来自SpringWeb。

它只是依赖结构中的一个变化。我甚至不知道为什么需要EL实现,但tomcat嵌入式EL可能是最好的实现。另一个类来自SpringWeb。

与zuul服务器的SpringCloud示例版本有相同的问题。在我添加spring boot starter web和执行器之后,它就消失了。

与zuul服务器的spring cloud示例版本有相同的问题。在我添加spring boot starter web和执行器之后,它就消失了。

与zuul服务器的spring cloud示例版本有相同的问题。在我添加spring boot starter web和执行器之后,它就消失了。

与zuul服务器的spring cloud示例版本有相同的问题。在我添加了spring boot starter web和执行器之后,它就消失了。

谢谢Dave。将tomcat embed el添加到java.lang.NoClassDefFoundError:org/springframework/web/client/RestTemplate中仍然会产生结果。这就是我说您需要spring-web的原因。这个类中的大多数应用程序都已经在使用spring boot starter web,其中包含了所有内容(这就是为什么还没有一个示例提出这个问题).我尝试了添加SpringWeb、SpringBootStarterWeb和TomcatEmbeddel的组合。我始终得到:java.lang.NoClassDefFoundError:org/springframework/boot/actuate/endpoint/mvc/MvcEndpoint。我正在使用Github Zuul服务器项目进行此测试。非常感谢。以下两个依赖项修复了该问题:spring boot starter web、spring boot actuator。请考虑将它们添加到Github中的Spring云示例中。谢谢戴夫。将tomcat embed el添加到java.lang.NoClassDefFoundError:org/springframework/web/client/RestTemplate中仍然会产生结果。这就是我说您需要spring-web的原因。这个类中的大多数应用程序都已经在使用spring boot starter web,其中包含了所有内容(这就是为什么还没有一个示例提出这个问题).我尝试了添加SpringWeb、SpringBootStarterWeb和TomcatEmbeddel的组合。我始终得到:java.lang.NoClassDefFoundError:org/springframework/boot/actuate/endpoint/mvc/MvcEndpoint。我正在使用Github Zuul服务器项目进行此测试。非常感谢。以下两个依赖项修复了该问题:spring boot starter web、spring boot actuator。请考虑将它们添加到Github中的Spring云示例中。谢谢戴夫。将tomcat embed el添加到java.lang.NoClassDefFoundError:org/springframework/web/client/RestTemplate中仍然会产生结果。这就是我说您需要spring-web的原因。这个类中的大多数应用程序都已经在使用spring boot starter web,其中包含了所有内容(这就是为什么还没有一个示例提出这个问题).我尝试了添加SpringWeb、SpringBootStarterWeb和TomcatEmbeddel的组合。我始终得到:java.lang.NoClassDefFoundError:org/springframework/boot/actuate/endpoint/mvc/MvcEndpoint。我正在使用Github Zuul服务器项目进行此测试。非常感谢。以下两个依赖项修复了该问题:spring boot starter web、spring boot actuator。请考虑将它们添加到Github中的Spring云示例中。谢谢戴夫。将tomcat embed el添加到java.lang.NoClassDefFoundError:org/springframework/web/client/RestTemplate中仍然会产生结果。这就是我说您需要spring-web的原因。这个类中的大多数应用程序都已经在使用spring boot starter web,其中包含了所有内容(这就是为什么还没有一个示例提出这个问题).我尝试了添加SpringWeb、SpringBootStarterWeb和TomcatEmbeddel的组合。我始终得到:java.lang.NoClassDefFoundError:org/springframework/boot/actuate/endpoint/mvc/MvcEndpoint。我正在使用Github Zuul服务器项目进行此测试。非常感谢。以下两个依赖项修复了该问题:spring boot starter web、spring boot actuator。请考虑将它们添加到Github中的Spring云示例中。
   Caused by: java.lang.NoClassDefFoundError: org/springframework/web/client/RestTemplate