关于@Transactional注解 @Transactional这个事务注解对父类继承过来的方法无效 只对当前类和子类有效,如果想要使其对父类方法有效,则可以将@Transactional写在父类上。