Error calling method through OGNL method: [add] args: [[]] java.lang.NullPointerException
原因是因为在调用dao执行方法的时候,用的是this.hibernateTemplate而不是this.gethibernatetemplate,结果一直报空指针异常
本文详细解析了在使用HibernateTemplate执行DAO方法时遇到的空指针异常问题。问题源于调用方法时使用了this.hibernateTemplate而非this.gethibernatetemplate,导致异常发生。文章提供了正确的解决方案。
Error calling method through OGNL method: [add] args: [[]] java.lang.NullPointerException
原因是因为在调用dao执行方法的时候,用的是this.hibernateTemplate而不是this.gethibernatetemplate,结果一直报空指针异常
1万+

被折叠的 条评论
为什么被折叠?