Every day card, write a program is very laborious, not card here is card there, days of not caller, week 6th fee time is on this above.
Problem: Hessian can be transferred, is unable to manipulate the database, Userdao can not inject, is null, at the beginning of the period thought is the entity class assignment problem, engaged in a half-day is not;
How to solve it? The problem is on Web. xml:
<!--spring configuration file Start--><context-param><param-name>contextconfiglocation</param-name>< Param-value>classpath:spring-*.xml </param-value></context-param>
The above is the correct configuration:
This is wrong:
<!--spring configuration file Start--><context-param><param-name>contextconfiglocation</param-name>< param-value>classpath:spring-config.xml</param-value></context-param><!-- Configure the location of the spring-hessian.xml you just wrote here- <context-param> <param-name>contextConfigLocation< /param-name> <param-value> classpath:spring-hessian.xml </param-value> </ Context-param>
Cannot have two such <context-param> configuration at the same time, but the program does not error.
Hessian cannot inject DAO's problem solving