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

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

本文介绍了解决spring.jpa.open-in-view默认启用的问题,该设置可能导致在视图渲染期间执行数据库查询。通过在JPA配置中添加open-in-view:false属性,可以避免此警告并优化应用程序性能。
852





