SSH框架的简单介绍

SSH框架的简单介绍其中:

// 如果web层没有使用Struts2,获取业务层的类就必须如下进行编写:
/WebApplicationContext applicationContext = WebApplicationContextUtils
.getWebApplicationContext(ServletActionContext.getServletContext());
CustomerService customerService = (CustomerService) applicationContext.getBean(“customerService”);
/