gpt4 book ai didi

spring - org/springframework/core/NativeDetector java.lang.NoClassDefFoundError : org/springframework/core/NativeDetector issue is comming

转载 作者:行者123 更新时间:2023-12-04 17:19:51 27 4
gpt4 key购买 nike

这些是我正在使用的版本和依赖项
我怀疑版本需要更改但更改为什么,我不确定

        springCore          : '5.3.3',
springjdbc : '5.3.3',
springContext : '5.3.3',
springTest : '5.3.3',
springWeb : '5.3.3',
springWebmvc : '5.3.3',
springDataJpa : '2.3.3.RELEASE',
springBootdataJpa : '2.3.3.RELEASE',
bootStarterTomcat : '2.3.3.RELEASE',
bootStarterTest : '2.3.3.RELEASE',
springBoot : '2.3.3.RELEASE',
springBootWeb : '2.3.3.RELEASE',


bootStarterTest : "org.springframework.boot:spring-boot-starter-test:$versions.bootStarterTest",
springWebmvc : "org.springframework:spring-webmvc:$versions.springWebmvc",
springContext : "org.springframework:spring-context:$versions.springContext",
springTest : "org.springframework:spring-test:$versions.springTest",
bootStarterTomcat : "org.springframework.boot:spring-boot-starter-tomcat:$versions.bootStarterTomcat",
springWeb : "org.springframework:spring-web:$versions.springWeb",
springDataJpa : "org.springframework.data:spring-data-jpa:$versions.springDataJpa",
springBootdataJpa : "org.springframework.boot:spring-boot-starter-data-jpa:$versions.springBootdataJpa",
springCore : "org.springframework:spring-core:$versions.springCore",
springjdbc : "org.springframework:spring-jdbc:$versions.springjdbc",
springBoot : "org.springframework.boot:spring-boot-starter-web:$versions.springBoot",
springBootWeb : "org.springframework.boot:spring-boot-starter-web:$versions.springBootWeb",
我已经尝试过 java.lang.NoClassDefFoundError: org/springframework/core/NativeDetector 中的解决方案但仍然得到同样的错误。
还尝试了 Spring Boot ClassNotFoundException org.springframework.core.metrics.ApplicationStartup 中的解决方案.
仍然没有运气
添加错误权益跟踪

org/springframework/core/NativeDetectorjava.lang.NoClassDefFoundError:org/springframework/core/NativeDetector atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.(AbstractAutowireCapableBeanFactory.java:180)atorg.springframework.beans.factory.support.DefaultListableBeanFactory.(DefaultListableBeanFactory.java:193)atorg.springframework.context.support.GenericApplicationContext.(GenericApplicationContext.java:113)atorg.springframework.test.context.support.AbstractGenericContextLoader.createContext(AbstractGenericContextLoader.java:210)atorg.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:113)atorg.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:60)atorg.springframework.test.context.support.AbstractDelegatingSmartContextLoader.delegateLoading(AbstractDelegatingSmartContextLoader.java:275)atorg.springframework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext(AbstractDelegatingSmartContextLoader.java:251)atorg.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:99)atorg.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:124)atorg.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:124)atorg.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:118)atorg.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:83)atorg.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:244)atorg.springframework.test.context.testng.AbstractTestNGSpringContextTests.springTestContextPrepareTestInstance(AbstractTestNGSpringContextTests.java:149)atjava.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod) atjava.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)atjava.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.base/java.lang.reflect.Method.invoke(Method.java:566) atorg.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:134)atorg.testng.internal.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:63)atorg.testng.internal.ConfigInvoker.invokeConfigurationMethod(ConfigInvoker.java:348)atorg.testng.internal.ConfigInvoker.invokeConfigurations(ConfigInvoker.java:302)atorg.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:176)atorg.testng.internal.TestMethodWorker.run(TestMethodWorker.java:122)at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) atorg.testng.TestRunner.privateRun(TestRunner.java:766) atorg.testng.TestRunner.run(TestRunner.java:587) atorg.testng.SuiteRunner.runTest(SuiteRunner.java:384) atorg.testng.SuiteRunner.runSequentially(SuiteRunner.java:378) atorg.testng.SuiteRunner.privateRun(SuiteRunner.java:337) atorg.testng.SuiteRunner.run(SuiteRunner.java:286) atorg.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53) atorg.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96) atorg.testng.TestNG.runSuitesSequentially(TestNG.java:1187) atorg.testng.TestNG.runSuitesLocally(TestNG.java:1109) atorg.testng.TestNG.runSuites(TestNG.java:1039) atorg.testng.TestNG.run(TestNG.java:1007) atorg.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.runTests(TestNGTestClassProcessor.java:141)atorg.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.stop(TestNGTestClassProcessor.java:90)atorg.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:61)atjava.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod) atjava.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)atjava.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.base/java.lang.reflect.Method.invoke(Method.java:566) atorg.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)atorg.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)atorg.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)atorg.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)at com.sun.proxy.$Proxy5.stop(Unknown Source) atorg.gradle.api.internal.tasks.testing.worker.TestWorker.stop(TestWorker.java:133)atjava.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod) atjava.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)atjava.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.base/java.lang.reflect.Method.invoke(Method.java:566) atorg.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)atorg.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)atorg.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:182)atorg.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:164)atorg.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:414)atorg.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)atorg.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)atjava.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)atjava.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)atorg.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)at java.base/java.lang.Thread.run(Thread.java:834) Caused by:java.lang.ClassNotFoundException:org.springframework.core.NativeDetector atjava.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)atjava.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)... 66 more


有什么建议。

最佳答案

我认为您使用了错误的版本,因此请尝试使用 spring v - 5.3.4 作为类 -> org/springframework/core/NativeDetector 存在于该版本的 spring 框架中。

关于spring - org/springframework/core/NativeDetector java.lang.NoClassDefFoundError : org/springframework/core/NativeDetector issue is comming,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66885166/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com