启动Springboot有个警告关于open-in-view

WARN 9560 --- [  restartedMain] aWebConfiguration$JpaWebMvcConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning

启动Springboot有个警告关于open-in-view

解决方法:

在jpa里面加上open-in-view: false属性,再次启动,即可成功

启动Springboot有个警告关于open-in-view