Error creating bean with name 'XX.XX.XX'
程序员文章站
2022-05-22 10:40:51
...
1、无法创建Bean
2、无法被springboot进行扫描,导致获取不到实例化
3、重点:只要是springBoot运行的项目都需要将入口程序(相当于我们main方法所在的类)放在首个目录,
其他子目录在该类存在的目录下创建
入口类(运行类相当于main方法作用):
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class XX {
public static void main(String[] args) {
SpringApplication.run(XX.class, args);
}
}
上一篇: GIS二次开发学习专题(一)C#入门
下一篇: Flyway简介
推荐阅读
-
Error creating bean with name 'entityManagerFactory' defined in class path resource解决方案
-
Error creating bean with name ‘eduChapterController‘: Unsatisfied dependency expressed through field
-
UnsatisfiedDependencyException: Error creating bean with name ‘xxxx‘:
-
springMVC常见错误-解决org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.spring
-
Error creating bean with name
-
Error creating bean with name 'eurekaAutoServiceRegistration'
-
Error creating bean with name报错
-
Error creating bean with name dfdatasource
-
Error creating bean with name ‘sqlSessionFactory‘
-
BeanCreationException: Error creating bean with name ‘requestMappingHandlerAdapter‘