spring.jpa.open-in.view: false springboot 2.x以后这个参数默认是true ,遇到多线程dml db的话 要把这个改成false 不然 springboot jpa 就查 缓存了每次都一样 ,