jwt-security-example:使用JWT和Spring Security进行Spring Boot

时间:2021-01-30 02:45:49
【文件属性】:
文件名称:jwt-security-example:使用JWT和Spring Security进行Spring Boot
文件大小:60KB
文件格式:ZIP
更新时间:2021-01-30 02:45:49
jwt spring-boot spring-security SpringBootJava 在Spring Boot中使用JWT(Json Web令牌)的Spring Security 该项目使用JWT来保护REST端点。 以下是示例中可用的REST端点。 /token token-根据发送的JSON生成JWT令牌。 它是POST方法,需要JSON: { "username": "name", "id": 123, "role": "admin"} /rest/hello value - "Token "需要带有标题key - "Authorisation"的JWT令牌key - "Authorisation"和value - "Token "
【文件预览】:
jwt-security-example-master
----.gitignore(249B)
----.mvn()
--------wrapper()
----src()
--------main()
--------test()
----mvnw(6KB)
----pom.xml(2KB)
----mvnw.cmd(5KB)
----README.md(442B)

网友评论