In the previous video, we have built all the services that need needed for our application.
So now let's try to test them with the default configurations provided by this.
In the previous section, we tested the welcome service, which is the only service that is available.
But right now we have six services available inside our application, as we can expect by default.
Security will secure all the services so that users can't access it without authentication and authorization
before testing these services.
Let's try to update our Springboard Application Strategy class with the component scan annotation.
The reason that we have to do this is it's our controller classes and the springboard starting application
are in two different packages.
We have to do this configuration so that our spring board application, while it is voting, it will
know what all the other packages it has to scan.
So now we have done the configuration.
Let's try that application using them as our application.
So as soon as the console shows that the server started at eight zero eight zero successfully and you
can see there is no password displayed in the console.
The reason is that we have provided our own credentials in the application that properties.
Now let's try to go to the oarsman application and test all the services that we have built as of now.
For service that I will try to test is contact service, so I have not added any authorization.
So the basic expectation right now that we have is by default, spring security will secure all the
services that we have configured inside our application.
So since this is our Get Mantega select target and given the end point to warrant, I'm clicking on
the sign.
You can see it's unauthorized.
That means I have not provided any credentials.
That means in this scenario, the survey's giving responds with the four zero.
Similarly, let's try to get the other services like Natixis, which I'll get the same response by my
account in response four zero one and my balance again, the same response followed by my loan.
You can expect the same rate for 01.
Finally for Kautz, also with the party's minecart response is for zero.
That means by default, spring security will always try to secure all the services associated with the
application.
But our requirement is different.
Our requirement is we want to make sure that notices and contact services should be open for everyone
and they should not be any security associated for it.
Let's try to configure that in the next section by.