java 我正在获取org.springframework.beans.工厂,创建名为“welcomePageHandlerMapping”的Bean时出错

lb3vh1jj  于 2023-02-07  发布在  Java
关注(0)|答案(1)|浏览(437)

我不知道为什么它给我一个bean创建错误。我不知道该怎么做

2023-02-04T12:40:31.690-08:00  INFO 15588 --- [main]
  com.kagukar.backend.BackendApplication   : Starting BackendApplication using Java 17.0.2 with PID 15588 (C:\Users\USER\Documents\backend\target\classes started by USER in C:\Users\USER\Documents\backend)
2023-02-04T12:40:31.713-08:00  INFO 15588 --- [main]
  com.kagukar.backend.BackendApplication   : No active profile set, falling back to 1 default profile: "default"
2023-02-04T12:40:34.583-08:00  INFO 15588 --- [main]
  o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)
2023-02-04T12:40:34.604-08:00  INFO 15588 --- [main]
  o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2023-02-04T12:40:34.604-08:00  INFO 15588 --- [main]
  o.apache.catalina.core.StandardEngine    : Starting Servlet engine: [Apache Tomcat/10.1.5]
2023-02-04T12:40:34.909-08:00  INFO 15588 --- [main]
  o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2023-02-04T12:40:34.922-08:00  INFO 15588 --- [main]
  w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 3029 ms
2023-02-04T12:40:35.641-08:00  WARN 15588 --- [main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt:
  org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'welcomePageHandlerMapping' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Post-processing of merged bean definition failed
2023-02-04T12:40:35.649-08:00  INFO 15588 --- [main]
  o.apache.catalina.core.StandardService   : Stopping service [Tomcat]
46qrfjad

46qrfjad1#

实际上我已经解决了这个问题。我只是刷新了一些依赖项,然后重新启动了我的IDE。

相关问题