首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >启动一个springcloud项目提示: WebMvcConfigurer.class找不到?

启动一个springcloud项目提示: WebMvcConfigurer.class找不到?

提问于 2022-03-17 17:17:48
回答 1关注 0查看 2K

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.]

[2022-03-17 16:59:46 632] [INFO] [main] [systemout] [2022-03-17 16:59:46.632 ERROR 61528 --- [ main] o.s.boot.SpringApplication : Application run failed

org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [cn.com.highlander.hscp.video.structure.server.HscpVideoStructureServerApplication]; nested exception is java.io.FileNotFoundException: class path resource [org/springframework/web/servlet/config/annotation/WebMvcConfigurer.class] cannot be opened because it does not exist

at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:609)

at org.springframework.context.annotation.ConfigurationClassParser.access$800(ConfigurationClassParser.java:110)

at org.springframework.context.annotation.ConfigurationClassParser$DeferredImportSelectorGroupingHandler.lambda$processGroupImports$1(ConfigurationClassParser.java:811)

at java.util.ArrayList.forEach(ArrayList.java:1257)

at org.springframework.context.annotation.ConfigurationClassParser$DeferredImportSelectorGroupingHandler.processGroupImports(ConfigurationClassParser.java:808)

at org.springframework.context.annotation.ConfigurationClassParser$DeferredImportSelectorHandler.process(ConfigurationClassParser.java:779)

at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:192)

at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:319)

at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:236)

at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:275)

at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:95)

at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:706)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:532)

at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)

at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747)

at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)

at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)

at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:152)

at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:132)

at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:92)

at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:172)

at com.tongweb.catalina.core.StandardContext.startInternal(StandardContext.java:5273)

at com.tongweb.catalina.core.ThanosStandardContext.startInternal(ThanosStandardContext.java:157)

at com.tongweb.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

at com.tongweb.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:734)

at com.tongweb.catalina.core.ContainerBase.addChild(ContainerBase.java:710)

at com.tongweb.catalina.core.StandardHost.addChild(StandardHost.java:721)

at com.tongweb.catalina.core.ThanosStandardHost.addChild(ThanosStandardHost.java:630)

at com.tongweb.web.thanos.startup.ThanosHostConfig.deployWar(ThanosHostConfig.java:230)

at com.tongweb.tw.thanos.ThanosWebtierWebAppBuilder.fireTomcatProcess(ThanosWebtierWebAppBuilder.java:434)

at com.tongweb.tw.thanos.ThanosWebtierWebAppBuilder.deployApplication(ThanosWebtierWebAppBuilder.java:381)

at com.tongweb.deploy.TongWebDeployer.deploy0(TongWebDeployer.java:323)

at com.tongweb.deploy.TongWebDeployer.deploy(TongWebDeployer.java:283)

at com.tongweb.tw.thanos.TongwebLoader.deployOneThread(TongwebLoader.java:507)

at com.tongweb.tw.thanos.TongwebLoader.initDeploy(TongwebLoader.java:456)

at com.tongweb.tw.thanos.TongwebLoader.event(TongwebLoader.java:207)

at com.tongweb.catalina.startup.ThanosCatalina.start(Unknown Source)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at com.tongweb.catalina.startup.Bootstrap.start(Bootstrap.java:378)

at com.tongweb.catalina.startup.Bootstrap.main(Bootstrap.java:530)

相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档