标签: java spring spring-boot spring-mvc
当事务注解被添加到方法时。 带有 Mockito.doNothing() 的测试用例进入方法并抛出空指针异常。如果我删除 @Transactional 注释,效果很好。