Getting Started
dependency>
com.codingapi.security
springboot-starter-security-jwt
${last.version}
framework features
- support springboot security & JWT
- support controller exception local message handler
local message
login.error = 登陆失败
token.expire = TOKEN过期
api.error = 这是一个错误提示信息
application.properties
security.jwt.properties.jwt-secret-key=YWRmc2Rhc2Rkc3h4eDEyM3NkZnNkZkFTQVNEc2RGQCMkIyRRQVNEYXNkQVNBU0RBU0RTQUZTREZTREZBU0Rkc2Rm
#15分钟有效期 1000*60*15=900000
security.jwt.properties.jwt-time=900000
#10分钟后更换令牌 1000*60*10=600000
security.jwt.properties.jwt-rest-time=600000
Reference Documentation
For further reference, please consider the following sections: