Once we've completed our code, it's time to see the output. Run your basic authentication Spring project and then run your app. Here's the output of your app, where we can see the user details:
In the following screenshot, the left side is the server API, where we have the user details, and on the right we have the client output of the Android application:
We've created a client application that will fetch the data of a basic authentication Spring-Security-based REST API.