![]() ![]() Now that you got your repository setup, its time to create a controllers package and with a class called EmployeeController. The interface extends the Jpa repository so that we can have all methods that are provided by the JpaRepository which allows us to query our database. repositoriesĬreate a repositories package with an interface called EmployeeRepository. ![]() Lombok - Java annotation library which helps reduce boilierplate codeĬreate the REST API service for the backend application which will be able to perform basic CRUD (Create, Read, Update ,Delete) functionality.MySQL- Provides Relational database Management System.WEB - Build web, including RESTful, applications using Spring MVC.Spring Dev Tools - Module can be included in any project to provide additional development-time features.JPA - Data persistence in SQL stores with Java Persistence API.You also need to add a couple of dependencies which are its essentially a tool for your project management, just like package.json for those who are familiar with node js. Once you get there in this case i’m using Maven, and that’s my personal preference over Gradle since it gives a nice xml layout for your setup, in terms of installing dependency, plugins etc. To start off with you can use Spring Initializer to get the Spring Boot project structure for you, and this can be found here
0 Comments
Leave a Reply. |