SpringBoot2.x运行schema.sql脚本

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_41473874/article/details/82184462

    在SpringBoot1.x中, 运行schema.sql不需要配置便可之间运行,但是在SpringBoot2.x中,我们需要在配置文件中配置一下:

            spring.datasource.initialization-mode: always

   配置好了之后,便可通过.

猜你喜欢

转载自blog.csdn.net/qq_41473874/article/details/82184462