处理异常:Consider defining a bean of type 'xxx' in your config

SpringBoot项目启动时遇到配置错误,提示缺少类型为'xxx'的bean定义。解决方案是检查并确保在配置中正确扫描到了service层。
摘要由CSDN通过智能技术生成

springboot项目启动报了如下异常信息:


  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v1.5.8.RELEASE)

2017-11-22 15:15:21.907  INFO 7728 --- [           main] org.aodous.mall.order.OrderApplication   : Starting OrderApplication on DESKTOP-RL2ND7B with PID 7728 (D:\XYYX\order\target\classes started by yhy in D:\XYYX)
2017-11-22 15:15:21.907  INFO 7728 --- [           main] org.aodous.mall.order.OrderApplication   : No active profile set, falling back to default profiles: default
2017-11-22 15:15:21.954  INFO 7728 --- [           main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@16267862: startup date [Wed Nov 22 15:15:21 CST 2017]; root of context hierarchy
2017-11-22 15:15:23.204  INFO 7728 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8081 (http)
2017-11-22 15:15:23.204  INFO 7728 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2017-11-22 15:15:23.204  INFO 7728 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet Engine: Apache Tomcat/8.5.23
2017-11-22 15:15:23.298  INFO 7728 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2017-11-22 15:15:23.298  INFO 7728 --- [ost-startStop-1] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 1360 ms
2017-11-22 15:15:23.407  INFO 7728 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean  : Mapping servlet: 'dispatcherServlet' to [/]
2017-11-22 15:15:23.407  INFO 7728 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'characterEncodingFilter' to: [/*]
2017-11-22 15:15:23.407  INFO 7728 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2017-11-22 15:15:23.407  INFO 7728 --- [ost-startStop-1] o
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值