在 application.properties 中加入以下配置 spring.jpa.show-sql=true 转载于:https://www.cnblogs.com/parasis/p/6618207.html