A Spring Boot 2.3.4 REST controller and Spring Security basic authentication (default behavior, just adding the dependency).
Spring Boot 2.3.4
Spring Security
@CrossO