gpt4 book ai didi

spring - org.springframework.aop.framework.Cglib2AopProxy WARN - 无法代理方法

转载 作者:行者123 更新时间:2023-11-28 22:01:13 31 4
gpt4 key购买 nike

我的web项目部署在tomcat上,在final方法上spring和hibernate proxy出现一些警告,请问是什么原因导致的?

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.

最佳答案

看这里。 Spring boot - Unable to proxy interface-implementing method - WARN message

造成这种情况的一个常见原因是在类级别而不是接口(interface)使用 Springs @Transactional 注释。

关于spring - org.springframework.aop.framework.Cglib2AopProxy WARN - 无法代理方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46111715/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com