使用Idea的maven项目,如果报以下错误
1.warring:没有使用@compentScan
2.Destroy method on bean with name ‘org.springframework.boot.autoconfigure.internalCachingMetadataReaderFactory’ threw an exception
3.ApplicationEventMulticaster not initialized
试试这个解决方法:不要直接在java目录下写测试类,把测试类放在一个package里面运行。