By Marone: October 2019 | last update: December 2019

Secure Spring boot with basic authentication

Goal

in this article we are going to protect a spring boot rest api in a simple way using Spring securitywith basic authentication . This is part 1 of a series of articles on spring security topic

Used technologies

JDK 1.8
Maven 3.2 (Spring boot 2.x and Spring security 5.x)

Maven

Rest api

Configuration


Let's test



References