Your ApplicationContext is unlikely tostart due to a @ComponentScan of the defau

一、错误提示:

Your ApplicationContext is unlikely tostart due to a @ComponentScan of the default package... 

Destroy method on bean with name
'org.springframework.boot.autoconfigure.internalCachingMetadataReaderFactory' threw an exception

二、原因:

  是因为Application.java 文件不能直接放在main/java文件夹下,必须要建一个包把他放进去

原文地址:https://www.cnblogs.com/zxguan/p/8383638.html