事务管理控制台不输出提示

作者: wanzixin创建于 2020年9月11日更新于 2020年9月11日

在事务管理入门一节中,我使用了@Max(50) 和@Transactional 注解,表中没有插入数据,应该是事务起作用了,但控制台没有提示说年龄大于50![](https://user-images.githubusercontent.com/43515397/92847612-ec103180-f41b-11ea-8383-fc203923f339.png)

内容来源: dyc87112/SpringBoot-Learning