@Transactional
public ModelAndView updateFunction(HttpServletRequest request, HttpServletResponse response) throws IOException{
....................// Collect info for form1
Service.saveForm1(Form1);
....................// Collect info for form2
Service.saveForm2(Form2);
....................
}在你的xml里添加如下
<!-- 使用annotation定义事务 -->
<tx:annotation-driven transaction-manager="transactionManager" />