摘要: 写在controller与写在service中的区别。船舶租用信息的确认,不要放controller,要放service。在service中执行的是事务,(插入、更新、删除)出现错误可以回滚。只有查询可以放在controller,不过最好也放在service。 不带@ResponseBody的 返回 阅读全文
posted @ 2017-07-03 16:57 Legolas_4 阅读(1410) 评论(0) 推荐(0) 编辑