服务器启动出现以下警告:
WARN [org.springframework.aop.framework.Cglib2AopProxy] - <Unable to proxy method [
public final org.hibernate.SessionFactory org.springframework.orm.hibernate3.support.
HibernateDaoSupport.getSessionFactory()] because it is
final: All calls to this method via a proxy will be routed directly to the proxy.>
你aop:pointcut声明包含了无法代理的method
原因是你将声明式事务放到了DAO层,而hibernateDAOSupport里那些final method不能够被代理.