SpringBoot2.x spring.datatsource的schema配置
问题配置了schema属性却没有自动创建表 schema: - classpath:sql/department.sql - classpath:sql/employee.sql解决方案添加initialization-mode属性,配置初始化数据源的模式initialization-mode: always参考文档:https://docs.spring.io/spring-boot/docs/2.3.1.RELEASE/reference/html/how
复制链接