0
私は、HibernateなしでSpringブートアプリケーションをセットアップし、代わりにJDBIを使用しようとしています。今私はパッケージ管理としてmavenを使用していますが、これをどうやって行うのか分かりません。ここではpom.xml
の部分が見えます。私はgradleに関するいくつかの情報を見つけましたが、誰かがJBDIをmavenパッケージ管理とどのように統合できるか教えてください。同時に、SQLite dbに接続を追加する方法の例があります。JDBIをSpringブートアプリケーションに追加するにはどうすればよいですか?
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jetty</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.jayway.jsonpath</groupId>
<artifactId>json-path</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jdbi</groupId>
<artifactId>jdbi</artifactId>
<version>2.78</version>
</dependency>
</dependencies>
何が問題なのですか?クラスが利用できるように依存関係を追加しました。 –