Skip to content

eastseven/demo-springboot-security-jwt-rbac-restful

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

建库脚本

use rbac
db.createUser({
  user: "rbac",
  pwd: "rbac123",
  roles: [ { role: "readWrite", db: "rbac" } ]
})
db.auth('rbac','rbac123')

调整步骤

    1. .env.development
VUE_APP_BASE_API = 'http://localhost:8080'
    1. src/api/user.js
url: '/user/login'

改为

url: '/auth'
    1. src/utils/request.js
config.headers['X-Token'] = getToken()

改为

config.headers['Authorization'] = 'Bearer ' + getToken()

About

demo-springboot-security-jwt-rbac-restful

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages