Test my Spring Boot endpoints with curl
I'm learning Spring Boot and I want to test my endpoints using curl, but I have a problem: I can't because returns me 401 code, possibly I need a basic authentication (curl username and password). How can set it up in curl and in my Spring Boot project?