Let's create a simple project using Spring Boot with JPA, as well as Hibernate and MySQL. We will build a RESTful CRUD API of a user list.
To create a project, go to this link: https://start.spring.io and create a Kotlin-based project.
Let's create a simple project using Spring Boot with JPA, as well as Hibernate and MySQL. We will build a RESTful CRUD API of a user list.
To create a project, go to this link: https://start.spring.io and create a Kotlin-based project.
If you go to the pom.xml file, you can see the dependencies for the JDBC there. We are using MySQL for the database:
-----
-----
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency...