How to make Spring server to start even if database is down?

后端 未结 4 978
余生分开走
余生分开走 2021-02-07 00:49

I\'m using a Spring Boot(1.4.7) & MyBatis.

spring.main1.datasource.url=jdbc:mariadb://192.168.0.11:3306/testdb?useUnicode=true&characterEncoding=utf8&         


        
4条回答
  •  天涯浪人
    2021-02-07 01:06

    You need to add

    spring.jpa.database-platform=org.hibernate.dialect.MySQL5Dialect
    

    in order to make it works

提交回复
热议问题