Could not instantiate bean : Constructor threw exception; nested exception is java.lang.NullPointerException

后端 未结 3 1414
自闭症患者
自闭症患者 2021-02-19 23:08
package baseDao;

public interface BaseDao {

    public void create(Object obj);
    public void delete(Object obj);
    public void update(Object obj);
    public void         


        
3条回答
  •  清酒与你
    2021-02-20 00:03

    Move the session initialization to below method

    @PostConstruct
    public void init(){
          session = usermanagementSessionFactory.getCurrentSession();
    }
    

提交回复
热议问题