spring自动重载
1.运行类
public String reload() { WebApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(request.getSession() .getServletContext()); if (context.getParent() != null) { ((AbstractRefreshableApplicationContext) context.getParent()).refresh(); } ((AbstractRefreshableApplicationContext) context).refresh(); System.out.println("--------Spring Context Reload----------------"); return null; }