加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

Java 1.8u20无法以spring boot和groovy 2.3.7开始

发布时间:2020-12-15 01:35:19 所属栏目:大数据 来源:网络整理
导读:我刚刚将java更新到1.8u20现在我得到了这个例外,当我使用Java 1.8u05时我没有得到 我使用最新的春季靴子1.18和groovy 2.3.7 indy. 有人知道这是java,spring还是groovy问题? org.springframework.beans.factory.BeanCreationException: Error creating bean

我刚刚将java更新到1.8u20现在我得到了这个例外,当我使用Java 1.8u05时我没有得到
我使用最新的春季靴子1.18和groovy 2.3.7 indy.

有人知道这是java,spring还是groovy问题?

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'validationController': Injection of autowired dependencies failed; 
nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private java.lang.Object io.demo.online.service.ValidationController.MappingJackson2JsonView; 
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'viewResolver' defined in class path resource [org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter.class]: Initialization of bean failed; 
nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'groovyTemplateViewResolver' defined in class path resource [org/springframework/boot/autoconfigure/groovy/template/GroovyTemplateAutoConfiguration$GroovyWebConfiguration.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [groovy.text.TemplateEngine]: : Error creating bean with name 'groovyTemplateEngine' defined in class path resource [org/springframework/boot/autoconfigure/groovy/template/GroovyTemplateAutoConfiguration$GroovyMarkupConfiguration.class]: Instantiation of bean failed; 
nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public groovy.text.TemplateEngine org.springframework.boot.autoconfigure.groovy.template.GroovyTemplateAutoConfiguration$GroovyMarkupConfiguration.groovyTemplateEngine() throws java.lang.Exception] threw exception; nested exception is java.lang.VerifyError: Bad 

这是所有依赖项的列表

runtime - Runtime classpath for source set 'main'.
+--- org.codehaus.groovy:groovy-all:2.3.7
+--- org.springframework.boot:spring-boot-starter-actuator:1.1.8.RELEASE
|    +--- org.springframework.boot:spring-boot-starter:1.1.8.RELEASE
|    |    +--- org.springframework.boot:spring-boot:1.1.8.RELEASE
|    |    |    +--- org.springframework:spring-core:4.0.7.RELEASE
|    |    |    --- org.springframework:spring-context:4.0.7.RELEASE
|    |    |         +--- org.springframework:spring-aop:4.0.7.RELEASE
|    |    |         |    +--- aopalliance:aopalliance:1.0
|    |    |         |    +--- org.springframework:spring-beans:4.0.7.RELEASE
|    |    |         |    |    --- org.springframework:spring-core:4.0.7.RELEASE
|    |    |         |    --- org.springframework:spring-core:4.0.7.RELEASE
|    |    |         +--- org.springframework:spring-beans:4.0.7.RELEASE (*)
|    |    |         +--- org.springframework:spring-core:4.0.7.RELEASE
|    |    |         --- org.springframework:spring-expression:4.0.7.RELEASE
|    |    |              --- org.springframework:spring-core:4.0.7.RELEASE
|    |    +--- org.springframework.boot:spring-boot-autoconfigure:1.1.8.RELEASE
|    |    |    --- org.springframework.boot:spring-boot:1.1.8.RELEASE (*)
|    |    +--- org.springframework.boot:spring-boot-starter-logging:1.1.8.RELEASE
|    |    |    +--- org.slf4j:jcl-over-slf4j:1.7.7
|    |    |    |    --- org.slf4j:slf4j-api:1.7.7
|    |    |    +--- org.slf4j:jul-to-slf4j:1.7.7
|    |    |    |    --- org.slf4j:slf4j-api:1.7.7
|    |    |    +--- org.slf4j:log4j-over-slf4j:1.7.7
|    |    |    |    --- org.slf4j:slf4j-api:1.7.7
|    |    |    --- ch.qos.logback:logback-classic:1.1.2
|    |    |         +--- ch.qos.logback:logback-core:1.1.2
|    |    |         --- org.slf4j:slf4j-api:1.7.6 -> 1.7.7
|    |    +--- org.springframework:spring-core:4.0.7.RELEASE
|    |    --- org.yaml:snakeyaml:1.13
|    +--- org.springframework.boot:spring-boot-actuator:1.1.8.RELEASE
|    |    +--- org.springframework.boot:spring-boot:1.1.8.RELEASE (*)
|    |    +--- org.springframework.boot:spring-boot-autoconfigure:1.1.8.RELEASE (*)
|    |    +--- com.fasterxml.jackson.core:jackson-databind:2.3.4
|    |    |    +--- com.fasterxml.jackson.core:jackson-annotations:2.3.0
|    |    |    --- com.fasterxml.jackson.core:jackson-core:2.3.4
|    |    +--- org.springframework:spring-core:4.0.7.RELEASE
|    |    --- org.springframework:spring-context:4.0.7.RELEASE (*)
|    --- org.springframework:spring-core:4.0.7.RELEASE
+--- org.springframework.boot:spring-boot-starter-web:1.1.8.RELEASE
|    +--- org.springframework.boot:spring-boot-starter:1.1.8.RELEASE (*)
|    +--- com.fasterxml.jackson.core:jackson-databind:2.3.4 (*)
|    +--- org.hibernate:hibernate-validator:5.0.3.Final -> 5.1.2.Final
|    |    +--- javax.validation:validation-api:1.1.0.Final
|    |    +--- org.jboss.logging:jboss-logging:3.1.3.GA
|    |    --- com.fasterxml:classmate:1.0.0
|    +--- org.springframework:spring-core:4.0.7.RELEASE
|    +--- org.springframework:spring-web:4.0.7.RELEASE
|    |    +--- org.springframework:spring-aop:4.0.7.RELEASE (*)
|    |    +--- org.springframework:spring-beans:4.0.7.RELEASE (*)
|    |    +--- org.springframework:spring-context:4.0.7.RELEASE (*)
|    |    --- org.springframework:spring-core:4.0.7.RELEASE
|    --- org.springframework:spring-webmvc:4.0.7.RELEASE
|         +--- org.springframework:spring-beans:4.0.7.RELEASE (*)
|         +--- org.springframework:spring-context:4.0.7.RELEASE (*)
|         +--- org.springframework:spring-core:4.0.7.RELEASE
|         +--- org.springframework:spring-expression:4.0.7.RELEASE (*)
|         --- org.springframework:spring-web:4.0.7.RELEASE (*)
+--- org.eclipse.jetty:jetty-webapp:9.2.0.v20140526
|    +--- org.eclipse.jetty:jetty-xml:9.2.0.v20140526
|    |    --- org.eclipse.jetty:jetty-util:9.2.0.v20140526
|    --- org.eclipse.jetty:jetty-servlet:9.2.0.v20140526
|         --- org.eclipse.jetty:jetty-security:9.2.0.v20140526
|              --- org.eclipse.jetty:jetty-server:9.2.0.v20140526
|                   +--- javax.servlet:javax.servlet-api:3.1.0
|                   +--- org.eclipse.jetty:jetty-http:9.2.0.v20140526
|                   |    --- org.eclipse.jetty:jetty-util:9.2.0.v20140526
|                   --- org.eclipse.jetty:jetty-io:9.2.0.v20140526
|                        --- org.eclipse.jetty:jetty-util:9.2.0.v20140526
+--- org.eclipse.jetty:jetty-jsp:9.2.0.v20140526
|    +--- org.eclipse.jetty.toolchain:jetty-schemas:3.1.M0
|    +--- javax.servlet:javax.servlet-api:3.1.0
|    +--- javax.servlet.jsp:javax.servlet.jsp-api:2.3.1
|    +--- org.glassfish.web:javax.servlet.jsp:2.3.2
|    |    +--- org.glassfish:javax.el:[3.0.0,) -> 3.0.1-b05
|    |    --- javax.servlet.jsp:javax.servlet.jsp-api:2.3.1
|    +--- org.eclipse.jetty.orbit:javax.servlet.jsp.jstl:1.2.0.v201105211821
|    +--- org.glassfish.web:javax.servlet.jsp.jstl:1.2.2
|    +--- org.glassfish:javax.el:3.0.0 -> 3.0.1-b05
|    --- org.eclipse.jetty.orbit:org.eclipse.jdt.core:3.8.2.v20130121
+--- org.eclipse.jetty:jetty-servlets:9.2.0.v20140526
|    +--- org.eclipse.jetty:jetty-continuation:9.2.0.v20140526
|    +--- org.eclipse.jetty:jetty-http:9.2.0.v20140526 (*)
|    +--- org.eclipse.jetty:jetty-util:9.2.0.v20140526
|    --- org.eclipse.jetty:jetty-io:9.2.0.v20140526 (*)
+--- org.springframework:spring-aspects:4.0.7.RELEASE
|    --- org.aspectj:aspectjweaver:1.8.2
+--- javax.inject:javax.inject:1
+--- commons-io:commons-io:2.4
+--- xmlunit:xmlunit:1.5
+--- com.google.guava:guava:18.0
--- org.hibernate:hibernate-validator:5.1.2.Final (*)

我可以在linux和macos上重现这个错误.

最佳答案
不幸的是,JDK 1.8u20有几个验证错误,这使得它与groovy不兼容.您应该尝试使用1.8u5或最新的8u40 EAP.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读