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&
Check this blog post for a very good solution: Delay startup of your Spring Boot application until your DB is up.