jhipster应用程序运行失败:不支持的major.minor版本52.0



我创建了一个jhipster应用程序,并在inteljidea上运行它,我得到这个错误:

org.springframework.beans.factory.BeanDefinitionStoreException:读取候选组件类URL失败[jar:file:/Users/retina/.m2/repository/io/springfox/springfox-swaker2/2.0.3/springfox-swaker2-2.0.3.jar!/springfox/documentation/swagger2/mappers/LicenseMapper$License.class];嵌套异常为java.lang.UnsupportedClassVersionError:org/mapstruct/QQualifier:不支持的major.minor版本52.0位于org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponent(ClassPathScan宁CandidatecomponentProvider.java:303)~[spring-context-4.1.7.RELEASE.jar:4.1.7.RELEASE]位于org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan(ClassPathBeanDefinitionScanner.java:248)~[spring-context-4.1.7.RELEASE.jar:4.1.7.RELEASE]位于org.springframework.context.annotation.ComponentScanAnnotationParser.parse(ComponentScanAnnorationParser.java:140)~[spring-context-4.1.7.RELEASE.jar:4.1.7.RELEASE]位于org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:266)~[spring-context-4.1.7.RELEASE.jar:4.1.7.RELEASE]位于org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:230)~[spring-context-4.1.7.RELEASE.jar:4.1.7.RELEASE]位于org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:486)~[spring-context-4.1.7.RELEASE.jar:4.1.7.RELEASE]位于org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:276)~[spring-context-4.1.7.RELEASE.jar:4.1.7.RELEASE]位于org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:230)~[spring-context-4.1.7.RELEASE.jar:4.1.7.RELEASE]位于org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:189)~[spring-context-4.1.7.RELEASE.jar:4.1.7.RELEASE]位于org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:270)~[spring-context-4.1.7.RELEASE.jar:4.1.7.RELEASE]位于org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:230)~[spring-context-4.1.7.RELEASE.jar:4.1.7.RELEASE]位于org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:197)~[spring-context-4.1.7.RELEASE.jar:4.1.7.RELEASE]位于org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:166)~[spring-context-4.1.7.RELEASE.jar:4.1.7.RELEASE]位于org.springframework.context.annotation.ConfigurationClassPostProcessor.productConfigBeanDefinitions(ConfigurationClassPostProcessProcessor.java:306)~[spring-context-4.1.7.RELEASE.jar:4.1.7.RELEASE]位于org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcess.java:239)~[spring-context-4.1.7.RELEASE.jar:4.1.7.RELEASE]位于org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistration\Delegate.java:254)~[spring-context-4.1.7.RELEASE.jar:4.1.7.RELEASE]位于org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistration\Delegate.java:94)~[spring-context-4.1.7.RELEASE.jar:4.1.7.RELEASE]位于org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:606)~[spring-context-4.1.7.RELEASE.jar:4.1.7.RELEASE]网址:org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:462)~[spring-context-4.1.7.RELEASE.jar:4.1.7.RELEASE]网址:org.springframework.boot.context.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)[spring-boot-1.2.5.RELEASE.jar:1.2.5.RELEASE]网址:org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686)[spring-boot-1.2.5.RELEASE.jar:1.2.5.RELEASE]网址:org.springframework.boot.SpringApplication.run(SpringApplication.java:320)[spring-boot-1.2.5.RELEASE.jar:1.2.5.RELEASE]网址:org.springframework.boot.test.SpringApplicationContextLoader.loadContext(SpringApplicationContextLoader.java:103)[spring-boot-1.2.5.RELEASE.jar:1.2.5.RELEASE]位于org.springframework.test.context.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContext LoaderDelege.java:68)[spring-test-4.1.7.RELEASE.jar:4.1.7.RELEASE]位于org.springframework.test.context.DefaultCacheAwareContextLoaderDelegate.loadContext位于org.springframework.test.context.DefaultTestContext.getApplicationContext(DefaultTestContext.java:72)[spring-test-4.1.7.RELEASE.jar:4.1.7.RELEASE]位于org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInractionTestExecution.Listener.java:117)[spring-test-4.1.7.RELEASE.jar:4.1.7.RELEASE]位于org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInractionTestExecution.Listener.java:83)[spring-test-4.1.7.RELEASE.jar:4.1.7.RELEASE]位于org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:212)[spring-test-4.1.7.RELEASE.jar:4.1.7.RELEASE]网址:org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:200)[spring-test-4.1.7.RELEASE.jar:4.1.7.RELEASE]网址:org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:259)[spring-test-4.1.7.RELEASE.jar:4.1.7.RELEASE]网址:org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)[junit-4.12.jar:4.12]位于org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:261)[spring-test-4.1.7.RELEASE.jar:4.1.7.RELEASE]位于org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:219)[spring-test-4.1.7.RELEASE.jar:4.1.7.RELEASE]位于org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:83)[spring-test-4.1.7.RELEASE.jar:4.1.7.RELEASE]网址:org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)[junit-4.12.jar:4.12]网址:org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)[junit-4.12.jar:4.12]网址:org.junit.runners.ParentRunner.runChildren(ParentRunner:java:288)[junit-4.12.jar:4.12]网址:org.junit.runners.ParentRunner.access$000(ParentRunner:java:58)[junit-4.12.jar:4.12]网址:org.junit.runners.ParentRunner$2.eevaluate(ParentRunner.java:268)[junit-4.12.jar:4.12]位于org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)[spring-test-4.1.7.RELEASE.jar:4.1.7.RELEASE]位于org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:68)[spring-test-4.1.7.RELEASE.jar:4.1.7.RELEASE]网址:org.junit.runners.ParentRunner.run(ParentRunner.java:363)[junit-4.12.jar:4.12]网址:org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:163)[spring-test-4.1.7.RELEASE.jar:4.1.7.RELEASE]网址:org.junit.runners.Suite.runChild(Suite.java:128)[junit-4.12.jar:4.12]网址:org.junit.runners.Suite.runChild(Suite.java:27)[junit-4.12.jar:4.12]网址:org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)[junit-4.12.jar:4.12]网址:org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)[junit-4.12.jar:4.12]网址:org.junit.runners.ParentRunner.runChildren(ParentRunner:java:288)[junit-4.12.jar:4.12]网址:org.junit.runners.ParentRunner.access$000(ParentRunner:java:58)[junit-4.12.jar:4.12]网址:org.junit.runners.ParentRunner$2.eevaluate(ParentRunner.java:268)[junit-4.12.jar:4.12]网址:org.junit.runners.ParentRunner.run(ParentRunner.java:363)[junit-4.12.jar:4.12]网址:org.junit.runner.JUnitCore.run(JUnitCores.java:137)[junit-4.12.jar:4.12]网址:com.intellij.junit4.JUnit4DeaTestRunner.startRunnerWithArgs(JUnit4DieTestRunner.java:78)[junit-rt.jar:na]网址:com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter:java:212)[junit-rt.jar:na]网址:com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter:java:68)[junit-rt.jar:na]在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)~[na:1.7.0_75]在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)~[na:1.7.0_75]在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)~[na:1.7.0_75]位于java.lang.reflect.Method.ioke(Method.java:606)~[na:1.7.0_75]网址:com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)[idea_rt.jar:na]C

https://github.com/jhipster/generator-jhipster/issues/1722

尝试删除:

<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-jdk8</artifactId>
<version>${mapstruct.version}</version>
</dependency>

在您的pom.xml 中

相关内容

最新更新