![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring
请保持优秀。
大智若愚,勤能补拙。
展开
-
Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to XXX
十一月 06, 2018 5:44:57 下午 org.springframework.context.support.AbstractApplicationContext refresh警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframewor...原创 2018-11-06 17:50:39 · 64456 阅读 · 15 评论 -
spring继承父类注入失败,报错空指针的一个解决办法
众所周知,抽象出来一个BaseDao的好处是巨大的,可以减少很多后续的DAO的工程量,只需让其他的dao继承这个baseDAO即可,然额问题来了,这个baseDAO,我们要用到HibernateTemplate。我们把HibernateTemplate注入后,像寻常一样运行,子类像寻常一样调用父类,然后gg,报错空指针,查了半天最终发现,是hibernate没注进去,为啥呢,父类被调用了啊?...原创 2018-12-05 23:12:45 · 12561 阅读 · 0 评论