[英]org.springframework.aop.framework.Cglib2AopProxy WARN - Unable to proxy method
My web project deployed in tomcat and appears some warnings what about spring and hibernate proxy on final method, what has caused this problem? 我的Web项目部署在tomcat中,并显示一些警告,有关最终方法上的spring和hibernate代理,这是什么引起的?
2017-09-08 16:01:32,548 org.springframework.aop.framework.Cglib2AopProxy WARN - 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.
2017-09-08 16:01:32,548 org.springframework.aop.framework.Cglib2AopProxy WARN - Unable to proxy method [public final void org.springframework.orm.hibernate3.support.HibernateDaoSupport.setSessionFactory(org.hibernate.SessionFactory)] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
2017-09-08 16:01:32,548 org.springframework.aop.framework.Cglib2AopProxy WARN - Unable to proxy method [public final org.springframework.orm.hibernate3.HibernateTemplate org.springframework.orm.hibernate3.support.HibernateDaoSupport.getHibernateTemplate()] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
2017-09-08 16:01:32,548 org.springframework.aop.framework.Cglib2AopProxy WARN - Unable to proxy method [public final void org.springframework.orm.hibernate3.support.HibernateDaoSupport.setHibernateTemplate(org.springframework.orm.hibernate3.HibernateTemplate)] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
2017-09-08 16:01:32,548 org.springframework.aop.framework.Cglib2AopProxy WARN - Unable to proxy method [public final void org.springframework.dao.support.DaoSupport.afterPropertiesSet() throws java.lang.IllegalArgumentException,org.springframework.beans.factory.BeanInitializationException] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
2017-09-08 16:01:32,995 org.springframework.aop.framework.Cglib2AopProxy WARN - 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.
2017-09-08 16:01:32,995 org.springframework.aop.framework.Cglib2AopProxy WARN - Unable to proxy method [public final void org.springframework.orm.hibernate3.support.HibernateDaoSupport.setSessionFactory(org.hibernate.SessionFactory)] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
2017-09-08 16:01:32,995 org.springframework.aop.framework.Cglib2AopProxy WARN - Unable to proxy method [public final org.springframework.orm.hibernate3.HibernateTemplate org.springframework.orm.hibernate3.support.HibernateDaoSupport.getHibernateTemplate()] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
2017-09-08 16:01:32,995 org.springframework.aop.framework.Cglib2AopProxy WARN - Unable to proxy method [public final void org.springframework.orm.hibernate3.support.HibernateDaoSupport.setHibernateTemplate(org.springframework.orm.hibernate3.HibernateTemplate)] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
2017-09-08 16:01:32,995 org.springframework.aop.framework.Cglib2AopProxy WARN - Unable to proxy method [public final void org.springframework.dao.support.DaoSupport.afterPropertiesSet() throws java.lang.IllegalArgumentException,org.springframework.beans.factory.BeanInitializationException] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
2017-09-08 16:01:33,049 org.springframework.aop.framework.Cglib2AopProxy WARN - 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.
2017-09-08 16:01:33,049 org.springframework.aop.framework.Cglib2AopProxy WARN - Unable to proxy method [public final void org.springframework.orm.hibernate3.support.HibernateDaoSupport.setSessionFactory(org.hibernate.SessionFactory)] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
2017-09-08 16:01:33,049 org.springframework.aop.framework.Cglib2AopProxy WARN - Unable to proxy method [public final org.springframework.orm.hibernate3.HibernateTemplate org.springframework.orm.hibernate3.support.HibernateDaoSupport.getHibernateTemplate()] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
2017-09-08 16:01:33,049 org.springframework.aop.framework.Cglib2AopProxy WARN - Unable to proxy method [public final void org.springframework.orm.hibernate3.support.HibernateDaoSupport.setHibernateTemplate(org.springframework.orm.hibernate3.HibernateTemplate)] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
2017-09-08 16:01:33,049 org.springframework.aop.framework.Cglib2AopProxy WARN - Unable to proxy method [public final void org.springframework.dao.support.DaoSupport.afterPropertiesSet() throws java.lang.IllegalArgumentException,org.springframework.beans.factory.BeanInitializationException] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
2017-09-08 16:01:33,112 org.springframework.aop.framework.Cglib2AopProxy WARN - 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.
2017-09-08 16:01:33,112 org.springframework.aop.framework.Cglib2AopProxy WARN - Unable to proxy method [public final void org.springframework.orm.hibernate3.support.HibernateDaoSupport.setSessionFactory(org.hibernate.SessionFactory)] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
2017-09-08 16:01:33,112 org.springframework.aop.framework.Cglib2AopProxy WARN - Unable to proxy method [public final org.springframework.orm.hibernate3.HibernateTemplate org.springframework.orm.hibernate3.support.HibernateDaoSupport.getHibernateTemplate()] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
2017-09-08 16:01:33,113 org.springframework.aop.framework.Cglib2AopProxy WARN - Unable to proxy method [public final void org.springframework.orm.hibernate3.support.HibernateDaoSupport.setHibernateTemplate(org.springframework.orm.hibernate3.HibernateTemplate)] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
2017-09-08 16:01:33,113 org.springframework.aop.framework.Cglib2AopProxy WARN - Unable to proxy method [public final void org.springframework.dao.support.DaoSupport.afterPropertiesSet() throws java.lang.IllegalArgumentException,org.springframework.beans.factory.BeanInitializationException] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
2017-09-08 16:01:35,073 org.springframework.aop.framework.Cglib2AopProxy WARN - 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.
2017-09-08 16:01:35,073 org.springframework.aop.framework.Cglib2AopProxy WARN - Unable to proxy method [public final void org.springframework.orm.hibernate3.support.HibernateDaoSupport.setSessionFactory(org.hibernate.SessionFactory)] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
2017-09-08 16:01:35,073 org.springframework.aop.framework.Cglib2AopProxy WARN - Unable to proxy method [public final org.springframework.orm.hibernate3.HibernateTemplate org.springframework.orm.hibernate3.support.HibernateDaoSupport.getHibernateTemplate()] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
2017-09-08 16:01:35,073 org.springframework.aop.framework.Cglib2AopProxy WARN - Unable to proxy method [public final void org.springframework.orm.hibernate3.support.HibernateDaoSupport.setHibernateTemplate(org.springframework.orm.hibernate3.HibernateTemplate)] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
2017-09-08 16:01:35,073 org.springframework.aop.framework.Cglib2AopProxy WARN - Unable to proxy method [public final void org.springframework.dao.support.DaoSupport.afterPropertiesSet() throws java.lang.IllegalArgumentException,org.springframework.beans.factory.BeanInitializationException] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
2017-09-08 16:01:35,678 org.springframework.aop.framework.Cglib2AopProxy WARN - 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.
2017-09-08 16:01:35,678 org.springframework.aop.framework.Cglib2AopProxy WARN - Unable to proxy method [public final void org.springframework.orm.hibernate3.support.HibernateDaoSupport.setSessionFactory(org.hibernate.SessionFactory)] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
2017-09-08 16:01:35,678 org.springframework.aop.framework.Cglib2AopProxy WARN - Unable to proxy method [public final org.springframework.orm.hibernate3.HibernateTemplate org.springframework.orm.hibernate3.support.HibernateDaoSupport.getHibernateTemplate()] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
2017-09-08 16:01:35,679 org.springframework.aop.framework.Cglib2AopProxy WARN - Unable to proxy method [public final void org.springframework.orm.hibernate3.support.HibernateDaoSupport.setHibernateTemplate(org.springframework.orm.hibernate3.HibernateTemplate)] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
2017-09-08 16:01:35,679 org.springframework.aop.framework.Cglib2AopProxy WARN - Unable to proxy method [public final void org.springframework.dao.support.DaoSupport.afterPropertiesSet() throws java.lang.IllegalArgumentException,org.springframework.beans.factory.BeanInitializationException] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
2017-09-08 16:01:35,700 org.springframework.aop.framework.Cglib2AopProxy WARN - 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.
2017-09-08 16:01:35,700 org.springframework.aop.framework.Cglib2AopProxy WARN - Unable to proxy method [public final void org.springframework.orm.hibernate3.support.HibernateDaoSupport.setSessionFactory(org.hibernate.SessionFactory)] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
2017-09-08 16:01:35,700 org.springframework.aop.framework.Cglib2AopProxy WARN - Unable to proxy method [public final org.springframework.orm.hibernate3.HibernateTemplate org.springframework.orm.hibernate3.support.HibernateDaoSupport.getHibernateTemplate()] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
2017-09-08 16:01:35,700 org.springframework.aop.framework.Cglib2AopProxy WARN - Unable to proxy method [public final void org.springframework.orm.hibernate3.support.HibernateDaoSupport.setHibernateTemplate(org.springframework.orm.hibernate3.HibernateTemplate)] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
2017-09-08 16:01:35,700 org.springframework.aop.framework.Cglib2AopProxy WARN - Unable to proxy method [public final void org.springframework.dao.support.DaoSupport.afterPropertiesSet() throws java.lang.IllegalArgumentException,org.springframework.beans.factory.BeanInitializationException] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
See here. 看这里。 Spring boot - Unable to proxy interface-implementing method - WARN message
Spring Boot-无法代理接口实现方法-WARN消息
One of the common causes of this is using Springs @Transactional annotation at the class level rather than the interface. 造成这种情况的常见原因之一是在类级别而不是接口上使用Springs @Transactional批注。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.