springboot結合flyway自動建立數據庫及表格

編寫DataSource ,在程序啓動的時候判斷數據庫是否存在,若是存在不作任何操做,若是不存在則建立數據庫 import com.alibaba.druid.pool.DruidDataSource; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.
相關文章
相關標籤/搜索