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文件夹下,必须要建一个包把他放进去

posted @ 2018-01-30 09:45  ^梦幻星空^  阅读(288)  评论(0编辑  收藏  举报