Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

A simple demo for using spring security, use BCryptPasswordEncoder as PasswordEncoder.

Test and run

  • Start the project

    mvn spring-boot:run
  • Test the '/hello2'

    curl -H "Authorization:Basic dXNlcjphZG1pbjEyMzQ1" -X GET localhost:18889/hello2/yumingtao2

    test result:

    Hello, yumingtao2
  • Test the '/hello'

    curl -H "Authorization:Basic dXNlcjphZG1pbjEyMzQ1" -d name=yumingtao -X POST localhost:18889/hello

    test result:

    Hello, yumingtao 

References

About

Spring Security example application.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages