build.gradleに以下を追記
https://qiita.com/kojisaiki/items/be5805bba172aab188c3
compile 'org.mybatis.spring.boot:mybatis-spring-boot-starter:1.3.2'
compile 'org.postgresql:postgresql'
spring:
datasource:
url: jdbc:postgresql://localhost:5432/<DB名>
username: <ユーザ名>
password: <パスワード>
driver-class-name: org.postgresql.Driver