2022-01-07 21:53:43.279 INFO 1168 [main] c.k.s.SpringbootDemo1Application : Starting SpringbootDemo1Application using Java 1.8.0_111 on JinFeng with PID 1168 (D:\program\springboot_demo1\target\classes started by ASUS in D:\program\springboot_demo1)
2022-01-07 21:53:43.281 INFO 1168 [main] c.k.s.SpringbootDemo1Application : No active profile set, falling back to default profiles: default
2022-01-07 21:53:43.811 WARN 1168 [main] o.m.s.mapper.ClassPathMapperScanner : No MyBatis mapper was found in '[com.kl.springboot_demo1.dao.UserDao]' package. Please check your configuration.
2022-01-07 21:53:44.062 INFO 1168 [main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2022-01-07 21:53:44.070 INFO 1168 [main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2022-01-07 21:53:44.070 INFO 1168 [main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.56]
2022-01-07 21:53:44.139 INFO 1168 [main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2022-01-07 21:53:44.139 INFO 1168 [main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 805 ms
2022-01-07 21:53:44.175 WARN 1168[main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userServiceImpl': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.kl.springboot_demo1.dao.UserDao' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@javax.annotation.Resource(shareable=true, lookup=, name=, description=, authenticationType=CONTAINER, type=class java.lang.Object, mappedName=)}
2022-01-07 21:53:44.177 INFO 1168 [main] o.apache.catalina.core.StandardService :** Stopping service [Tomcat]**
2022-01-07 21:53:44.190 INFO 1168[main] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2022-01-07 21:53:44.206 ERROR 1168 --- [main] o.s.b.d.LoggingFailureAnalysisReporter :
APPLICATION FAILED TO START
Description:
**
A component required a bean of type 'com.kl.springboot_demo1.dao.UserDao' that could not be found.**
Action:
Consider defining a bean of type 'com.kl.springboot_demo1.dao.UserDao' in your configuration.