SpringBootとDomaの連携をGitHubにあるサンプルを参考に作ってみました。 ビルドはGradleを使っています。 環境 Java 1.7 Gradle 2.0 SpringBoot 1.1.5.RELEASE Doma 1.37.0 ディレクトリ構成 SpringBoot標準の構成を使用します。 src/main/java demo ConfigAutowireable.java DataSourceConfiguration.java demo.dao TestDao.java src/main/resources application.properties build.gradle 作成・編集するファイル build.gradle DBライブラリの依存関係を追加します。 JDBCドライバーはローカルまたはMavenリポジトリから取得し、ビルド後のjarファイルに含めるよ