在使用基于配置文件的spring aop时出现了xml文件读取不到的问题,如下:
十二月 25, 2018 5:47:52 下午 org.springframework.context.support.ClassPathXmlApplicationContext prepareRefresh
信息: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@1376c05c: startup date [Tue Dec 25 17:47:52 CST 2018]; root of context hierarchy
十二月 25, 2018 5:47:52 下午 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
信息: Loading XML bean definitions from class path resource [aop.xml]
还请各位大神帮帮忙。
最近又出现了新的异常
十二月 26, 2018 4:04:31 下午 org.springframework.context.support.AbstractApplicationContext prepareRefresh
信息: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@41cf53f9: display name [org.springframework.context.support.ClassPathXmlApplicationContext@41cf53f9]; startup date [Wed Dec 26 16:04:31 CST 2018]; root of context hierarchy
十二月 26, 2018 4:04:31 下午 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
信息: Loading XML bean definitions from class path resource [applicationContext.xml]
十二月 26, 2018 4:04:31 下午 org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
信息: Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext@41cf53f9]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1fbc7afb
十二月 26, 2018 4:04:31 下午 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
信息: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1fbc7afb: defining beans [helloWordImpl1,helloWordImpl2,timeHandler,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.aop.aspectj.AspectJPointcutAdvisor#0,org.springframework.aop.aspectj.AspectJPointcutAdvisor#1,addAllMethod]; root of factory hierarchy
还想问一下基于配置文件的spring aop是不是不用在配置文件中加入这个<aop:aspectj-autoproxy proxy-target-class="true" />