In the last video, we have seen how easy bank application looks on on a high level, we understand
what is a functional requirement of the application, but the application to work and to enhance it
further, we have to think about its backend associated with the database.
So as we have seen, there are particular pages which users should be able to navigate without any credentials
associated with it, like contact us or not.
So for the pages, we have to build associated back and services like contacts, national positions
where they will accept requests from the UI and accordingly provide a response either from the database
or taking the data from the U.S. and into the database.
And at the same time, we also saw Dashboard Page, where it has four sections of operations and logged
in user can perform like he can check his account details, balance details and loans and card details
for those four operations we have to build associated with services and we have to make sure those services
are protected so that someone from you why are you back in AIPA can't call them without any proper authentication
dictums forwarded it.
So these are the services that we are going to build in the backend.
So let's go and first create a single security project like we have created in the previous videos.
Let's try to create one more time the same way so that you get to use or to create a simple security
project.
And later on we can add all the services to the same project.
So like we discussed, we had to first create a simple, good based project for that, we just have
to go to start ups, being able to select all these values, project based project language, Java and
Springboard, whatever version, and you'll feel comfortable next, followed by a group autographed.
This time I just mentioned Spring Security Section two as a project me and followed by packaging should
be John Salvacion should be eight and I will be adding and then please start a project like Spring Security
and one more time that I need is spring.
So now I click 200, which will download Culliton project.
Now I have to go to that location and extract the words that come to eclipse and click on import projects,
select existing Mavin projects, roads to the location where we have extracted that newly downloaded
project, which is spring security detection to clicking on finish.
We create the project in your workspace.
And since you have all those Marin dependencies, if you are doing this first time, it will download
all the independents.
So this is how all American dependence dependencies downloaded, all the gas needed are going to the
same class security section to application and job application.
This is the first time that we're running inside.
The project is trying to take some time to build.
And as you see, the project started successfully at the port AT&T and like we are discussing the previous
election, by default, bring security provides a password which is displayed in the console.
We have the default security password that is provided by the spring framework here in the console.
But if we can recollect from the previous sections that we discussed, we can always change the default
behavior of the security by going through the application of properties and providing a couple of properties
related username and password where you can define your username and password configurations.
It could be we use these credentials to authenticate any request that is coming to the back.
And the next thing that we have to do here is to build a rest controllers and the services associated
for all the services that we are going to call from that you want.
If you can recall from the previous video of the all the services that we are going to invoke from the
UI to make this an application, we will have it back and the database interaction.
So now to make it quick, I already created the controls for all the services associated to them.
Let me walk you through all those controls before I already created a package called Kondrat Easy by
the state controller in that I have created a controller for each and every service associate in the
UK, for example, for notices where we are trying to get the notices from the database from UI.
We have a part called Notices and the Method Name and Associated Matter implementation.
So here we know we always return the static response for all the controllers, but in future we're going
to implement the actual business logic where we interact with the database.
The final is how it looks for all the controller.
Similarly, if you go and see for the contact controller, so it will save contact in quite a detail,
detailed the database.
I know here we should not supposed to use mapping because we are actually saving data into the database,
but not reading the data from the database.
So ideally in this scenario we have to use post mapping.
But for now, since the responses are always static, no, we're not saving anything to database.
I just keep it as kept mapping.
But in future, when we are doing actual database interaction, we can always change it to post maximally.
We have no account controller with the parties my account and it will return the static response followed
by balance controller with my balance and Gotz controller where we display the court's details using
the my cards, followed by a launch controller, the path launch with a static response.
Now we have all the control as defined in the back and the they're going to use and the response that
they're going to let us try and test in the next will do all the services.
What's happening with the default.
Thank you to you in the next by.