原本能运行的源码莫名其妙出错,先是vue里面出现“npm-cache_logs\2023-07-10T07_50_23_666Z-debug-0.log”,删除node_modle文件重新下载解决后,springboot后端又报错
2023-07-10 21:07:35.806 ERROR 21608 --- [ main] o.s.boot.SpringApplication : Application run failed
Caused by: org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'webConfig' for bean class [com.example.springboot.common.WebConfig] conflicts with existing, non-compatible bean definition of same name and class [com.example.springboot.WebConfig]
这是冲突两个webConfig
你把新增的那个webconfig删掉试试呢,这儿报错信息就是提示你定义了两个webconfig,然后你还注入了bean,导致在启动应用的的时候不知道该用那个bean;或者改一下你新增webconfig这个类名