@RequestMapping("/GrpAdd")
@ResponseBody
public String GrpAdd(HttpServletRequest request, Model model) throws IOException{
ApplicationContext ac = WebApplicationContextUtils.getRequiredWebApplicationContext(request.getServletContext());
ConfigurableApplicationContext context = (ConfigurableApplicationContext) ac;
//Bean的实例工厂
DefaultListableBeanFactory dbf = (DefaultListableBeanFactory) context.getBeanFactory();
//Bean构建 BeanService.class 要创建的Bean的Class对象
CommonChk commonChk_tmp = (CommonChk)dbf.getBean("commonChk");
commonChk_tmp.test();
}