From the course: Building Full-Stack Apps with React and Spring

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Finalize base server

Finalize base server

From the course: Building Full-Stack Apps with React and Spring

Start my 1-month free trial

Finalize base server

- [Narrator] We need to finalize our API endpoints as we'll need to use it for both the front end and the back end. So let's change this and our main function to run our REST API. So the first thing we're going to do is create a new file. And we're going to do this in the model folder again. So basically click on the model folder, and then click new file. And we're going to call this one react and spring data rest application dot java. And again in this file we'll also copy the line package. So let's go ahead and do it. Basically the same line that we've had in every single one of our files here, so we can connect all these packages together. And then we'll import a couple files. So let's go ahead and copy from org spring framework. Then we'll go to boot dot spring application. And select this one. Okay now let's copy line three, and paste it again. And then from boot, we'll change it to…

Contents