把前几天说的那个annotation 给大家交代一个我个人认为annotation 在spring aop中还有点用但在hibernate里就没有大用了不过现在都在这么用就给大家做了两个例子.一个是sprng aop,一个hibernate的. 写的不好. 睡觉去了