I am trying to implement this tutorial about Declarative Transaction in Spring Framework application but don\'t work because when I try to execute the MainApp c
You should use the interface type in aop pointcut expression i.e in following line:-
expression="execution(* org.andrea.myexample.myDeclarativeTransactionSpring.StudentJDBCTemplate.create(..))" />
use the below code:-
expression="execution(* org.andrea.myexample.myDeclarativeTransactionSpring.StudentDAO.create(..))" />
Spring supports AOP via proxying which is of two type Interface based (Proxy implements all the interfaces implemented by target class) and Class based ( achieved by subclassing the target class).