首页 新闻 赞助 找找看

eclipse中使用spring aop时xml文件读取不到的问题

0
[待解决问题]

在使用基于配置文件的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" />

肥猫桂子的主页 肥猫桂子 | 初学一级 | 园豆:119
提问于:2018-12-25 17:51
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册