Spring 下bean的注入,注解注入时运行测试类出错javax.annotation.ManagedBean' found and supported for component scanning

十一月 21, 2019 1:46:01 下午 org.springframework.context.support.ClassPathXmlApplicationContext prepareRefresh
信息: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@5679c6c6: startup date [Thu Nov 21 13:46:01 CST 2019]; root of context hierarchy
十一月 21, 2019 1:46:01 下午 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
信息: Loading XML bean definitions from class path resource [com/sun/annotation/applicationContext.xml]
十一月 21, 2019 1:46:01 下午 org.springframework.context.annotation.ClassPathBeanDefinitionScanner registerDefaultFilters
信息: JSR-250 'javax.annotation.ManagedBean' found and supported for component scanning

继续往下面报错的数据看下去,javax.annotation.ManagedBean',可能下面还有,这个是诸如数据的时候出错了,你看下你这个引用的类在哪,是否已经引入,如果下面还有报错就一直看下去,报这个错的根本原因就是没有这个引入的依赖,或者没有这个类

found and supported for component scanning,scanning是不是没有加注解。错误信息一般是在cause 后面,最好是把cause那部分截取出来分析错误