SQLite Connection with Java Springboot - Get/Put/Post/Delete
How to integrate SQLite Database with Spring Boot? Spring Boot doesn’t provide a straightforward way to integrate SQLite database compared to other databases such as MySQL , MongoDB etc. SQLite is the most used database engine in the world as SQLite website claims. And yet it is a surprise Spring Boot doesn’t treat it the same way as it treats other databases. To integrate SQLite into your spring boot application you need to do one major step which you don’t have to do for other databases. That is , to add an SQL Dialect. Let’s see step by step , how to integrate SQLite database with Spring Boot starting from scratch. STEP 1: Let’s create a base project using Spring Initializr. Go to https://start.spring.io/ and generate a project template. Add Spring Web and Spring Data JPA dependencies as shown below: STEP 2: Add sqlite jdbc driver dependency to your pom.xml: <dependency> <groupId>org.xerial</groupId> <artifac...