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