java.lang.IllegalStateException: Failed to load ApplicationContext
java.lang.IllegalStateException: Failed to load ApplicationContext
at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext
............................
...........................
Caused by: java.lang.IllegalStateException: No bean class specified on bean definition
##图片
出错前的配置文件,其实问题很简单,通过下列提示可以发现
Caused by: java.lang.IllegalStateException: No bean class specified on bean definition
在bean定义上没有指定bean类,去查看bean的配置
在配置的时候属性class写成了name,粗心,继续学习