[Logo]
Forums Register Login
Problems with simple Java-AOP-Programm via Spring-Framework
Hi community!

I have a problem with my simple Java-Programm.

Here are my classes and the xml-file:








<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.0.xsd">

<aop:config>
<aop:aspect ref="myAspectBean">
        <aop:pointcut id="myPointCut"
             expression="execution(public void aopDemo.HalloObject.sayHelloWorld())" />
<aop:after pointcut-ref="myPointCut" method="sayGoodbye" />
</aop:aspect>
</aop:config>
<bean id="halloObject" class="aopDemo.HalloObject" />
<bean id="myAspectBean" class=" aopDemo.AspectGabbleBetween" />
</beans>  




And the Error:




I dont know how to fix the error. I hope you could help me.


Thanks a lot.
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards


This thread has been viewed 68 times.

All times above are in ranch (not your local) time.
The current ranch time is
Feb 24, 2018 03:23:31.