Hibernate3.3.2版本中getSession().connection()已被弃用,hibernate4中官方推荐使用Session doWork()方法进行jdbc操作 首先看看Work接口类的定义 public interface Work { //Execute the discrete work encapsulated by this work instance using the supplied connection. //@param connection The co
Spring 通过Controller 向 View 传值的方法有以下四种 HttpServletRequest ModelAndView Map<String, Object> map Model model 第一种 需要参数HttpServletRequest 返回值是jsp页面 @RequestMapping("/query1.do") public String queryUser1(HttpServletRequest request){ String name