ERROR DefaultDispatcherErrorHandler:42 - Exception occurred during processing request: null

刚刚开始学ssh遇到了空指针异常,后来发现自己是在配置文件中action没和service关联。导致了执行dao层的时候就不执行了,提示在

List<Employee>list=(List<Employee>) this.getHibernateTemplate().find(hql,employee.getUsername(),employee.getPassword());

报错,如果遇到此类问题,大家可以去检查一下applicationContext.xml文件中的配置

<!-- 配置Action的类 -->
<bean id="employeeAction" class="com.hncj.employee.action.EmployeeAction" scope="prototype">
    <property name="employeeService" ref="employeeService">
    </property>

</bean>

我错在了这里。忘记加中间的了~~
---------------------
作者:qq_36856047
来源:CSDN
原文:https://blog.csdn.net/qq_36856047/article/details/80299144
版权声明:本文为博主原创文章,转载请附上博文链接!

posted @ 2019-05-21 11:21  愿世界对你温柔相待  Views(175)  Comments(0)    收藏  举报