struts、spring、hibernate的整合步骤
struts、spring、hibernate的整合步骤:
?
1.导入struts、spring、hibernate所必须的包
?
2.在web.xml中配置
?? <context-param>
?? <param-name>contextConfigLocation</param-name>
?? <param-value>/WEB-INF/applicationContext.xml</param-value>
?? </context-param>
?? <listener>
<listener-class>org.springframework.web.context.ContextLoaderListener< stener-class>
?? < stener>
??
3.在struts-config.xml中配置
? <controller???????? processorstyle="margin: 0cm 0cm 0pt;">? </controller>