나는 Hibernate없이 Spring Boot 애플리케이션을 설정하고 대신 JDBI를 사용하려고한다. 이제는 패키지 관리로 maven을 사용하지만 어떻게해야 할 지 잘 모르겠습니다. 여기에서 pom.xml
의 일부를 볼 수 있습니다. 내가 gradle과 함께 몇 가지 정보를 찾았지만 누군가가 JBDI가 어떻게 maven 패키지 관리와 통합 될 수 있는지 보여 줄 수 있습니까? 동시에 SQLite db에 연결하는 방법에 대한 예제가 있습니다.스프링 부트 애플리케이션에 JDBI를 어떻게 추가합니까?
<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>
작동하지 않는 기능은 무엇입니까? 클래스를 사용할 수 있도록 종속성을 추가했습니다. –