jsp调用spring bean

            ApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(request.getSession().getServletContext());
            TProvinceDAO cs = (TProvinceDAO) ctx.getBean("TProvinceDAO");
            List list =cs.findAll();

你可能感兴趣的:(spring,bean,jsp)