在application.properties 文件中添加配置:spring.datasource.sql-script-encoding=GBK (与你的project encoding一致,我的工程编码是GBK)