3311
public class BaseAction extends ActionSupport implements RequestAware,SessionAware, ApplicationAware, ParameterAware, ServletContextAware,
ServletRequestAware, ServletResponseAware {
@Autowired
private HouseEntityManager houseEntityManager;
protected Map<String, Object> requestMap;
protected Map<String, Object> sessionMap;
protected Map<String, Object> applicationMap;
protected Map<String, String[]> parametersMap;
protected HttpServletRequest request;
protected HttpServletResponse response;
protected ServletContext application;
/**
* 导出数据库全部信息
*/
public void allToExcel() {
houseEntityManager.allToExcel(response);
}
public void setRequest(Map<String, Object> arg0) {
this.requestMap = arg0;
}
public void setSession(Map<String, Object> arg0) {
this.sessionMap = arg0;
}
public void setApplication(Map<String, Object> arg0) {
this.applicationMap = arg0;
}
public void setParameters(Map<String, String[]> arg0) {
this.parametersMap = arg0;
}
public void setServletContext(ServletContext arg0) {
this.application = arg0;
}
public void setServletRequest(HttpServletRequest arg0) {
this.request = arg0;
}
public void setServletResponse(HttpServletResponse arg0) {
this.response = arg0;
}
}
页:
[1]