只需要再application.properties 文件中 加入 一行代码 spring.datasource.initialize=false 重新运行 就ojbk 了 转载于:https://www.cnblogs.com/feathe/p/9358179.html