In this video, learn the different database options you have with Spring such as mongo, JPA, and others.
- [Instructor] When we set up Spring, we set it up with JPA and also SQL Database, or you can pretty much use whatever database you feel comfortable with. So go to spring.io/projects/spring-data and you can see some of the different options available for SQL or NoSQL on this link. And if you prefer down the road to set your project with a different database, if you scroll down, you'll see what are the different options available. So if you look at the list here, you have, for example, MongoDB, Redis and a bunch more. Then if you want to select a database with a guide in Spring's documentation, you can look into this link here which is spring.io/guides which is basically this section here and once you get to this section, you can actually find any guide based on something. So for example, if we do MongoDB, we'll have sections based on MongoDB, or you can simply do data like so. So what is exactly JPA? JPA stands for Java Persistence API and it's basically the database implementation that defines what object needs to be persistent in a database of your choosing. In this case, we used a SQL-based database. Spring's implementation is simplified to make the use of JPA a lot more developer-friendly. Okay, so now that we've got a better idea of our options, let's move on to code our initial model.
- Reviewing the platforms
- Initializing the project
- Defining the first model class
- Setting up the JPA repository
- Building the endpoints for the HTTP class controller
- Creating the front-end components
- Styling components
- Connecting component to the server
- Adding server controllers