Skip to content

jdev-org/spring-boot-basic-authent-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

/spring-boot-basic-authent-template

This is a template to start with Spring Boot security basic authent.

Prerequisites

  • Java 17
  • maven
  • Spring 3.2.4

Install & start service

  1. clone & install
git clone https://github.com/jdev-org/spring-boot-basic-authent-template.git
cd spring-boot-basic-authent-template
mvn clean install -DskipTests
  1. Start service :
java -jar ./target/basic-authent-template-0.0.1-SNAPSHOT.jar

Service works by default on localhost:8094 with user user and password password. Change these values from application.properties file.

Use it

Try request from CURL command or Postman Client :

  • GET - localhost:8094/hello

  • POST - localhost:8094/foo

With Postman, add basic authent informations in Authorization tab :

image

About

A template to use basic authent with Spring Boot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages