damingerdai/security-jwt-app

Spring Boot and Spring Security with JWT App

★ 1Forks 0JavaGitHub ↗Compare
jwt-tokenspringspring-bootspring-security

README

Spring Boot and Spring Security with JWT App

database migration

update db connection in pom.xml with yourself db info:

mvn flyway:migrate

setup

update db connection in application.yml with yourself db info:

mvn spring-boot:run

test

login

curl --location --request GET 'http://127.0.0.1:8080/login' \
--header 'username: admin' \
--header 'password: 12345'

test api

curl --location --request GET 'http://127.0.0.1:8080/test/list' \
--header 'Authorization: Bearer ${token_from_last_step'

reference

  1. Spring-security与JWT前后端分离
  2. 秒懂SpringBoot之全网最易懂的Spring Security教程
  3. 最新版 Spring Security5.x 教程合集(顺序已经整理好)

Contributors

renovate[bot]damingerdai

Issues