Error starting ApplicationContext. To display the conditions report re-run y
1、加conponent注解
今天在启动springboot项目的时候出现了这个问题,那么该怎么解决呢,因为我在controller层下的这个类用的是rescontroller注解,然后没有加conponent注解,然后我就加上去试了一下,发现完美解决,程序正常启动
希望对你们有所帮助,加上注解重启就能解决。
2、如果用idea软件的小伙伴,解决方法:管理员身份打开idea
用以上两种方法error starting applicationcontext. to display the conditions report re-run y完美解决咯。