警告
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
原因
spring.jpa.open-in-view
属性被默认启用,需要手动配置该属性,去掉这个警告。
open-in-view 是指延时加载的一些属性数据,可以在页面展现的时候,保持session不关闭,从而保证能在页面进行延时加载。
在配置文件暂时启用这个配置项。
解决方案
修改配置文件:spring.jpa.open-in-view=false