摘要:
1.Spring管理事务配置案例: 方式1:编码式(了解): 1.将核心事务管理器配置到spring容器,在applicationContext中配置如下代码: <!-- 事务核心管理器,封装了所有事务操作. 依赖于连接池 --> <bean name="transactionManager" cl 阅读全文
posted @ 2019-07-18 11:57
威兰达
阅读(1318)
评论(1)
推荐(0)
摘要:
Controller方法返回值 返回ModelAndView controller方法中定义ModelAndView对象并返回,对象中可添加model数据、指定view。 返回void 在Controller方法形参上可以定义request和response,使用request或response指定 阅读全文
posted @ 2019-07-18 09:49
威兰达
阅读(3274)
评论(0)
推荐(0)

浙公网安备 33010602011771号