摘要: 转载: http://www.importnew.com/19489.html 一、使用场景举例 在了解@Transactional怎么用之前我们必须要先知道@Transactional有什么用。下面举个栗子:比如一个部门里面有很多成员,这两者分别保存在部门表和成员表里面,在删除某个部门的时候,假设 阅读全文
posted @ 2017-07-20 16:53 大树程序员 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 建第一个注解 package com.tmser.annotation; /** 类,方法,字段使用annotation,可以通过反射获取。 Class getAnnotation(Class<T> annotationClass) Method getAnnotation(Class<T> ann 阅读全文
posted @ 2017-07-20 15:41 大树程序员 阅读(200) 评论(0) 推荐(0) 编辑