Skip to content

MarkGao11520/spring-boot-security-restful

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README.md

  • 使用IDE工具导入项目后,直接SpringBootSecurityRestfulApplication.java启动

  • 访问auth/register接口进行注册,参数为```username,password````

  • 访问auth接口进行登录,参数与注册一样,登录成功后会返回token串,失败会返回提示信息

  • 登录成功后访问users接口(需添加Authorization认证头,值为Bearer +登录返回的token串)可访问用户信息username为参数名,只有使用当前登录的用户名才能查询到自己的信息,否则会返回权限错误信息

About

springboot结合springsecurity打造restful风格权限验证

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published