mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-10-21 19:17:25 +08:00
feat: api 参数签名模块允许多实例配置。 Closes #IAK2BI, #I9SPI1, #IAC0P9
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.pj.test;
|
||||
|
||||
import cn.dev33.satoken.annotation.SaCheckHttpDigest;
|
||||
import cn.dev33.satoken.annotation.SaCheckSign;
|
||||
import cn.dev33.satoken.context.SaHolder;
|
||||
import cn.dev33.satoken.spring.SpringMVCUtil;
|
||||
import cn.dev33.satoken.stp.SaLoginParameter;
|
||||
@@ -40,6 +41,7 @@ public class TestController {
|
||||
|
||||
// 测试 浏览器访问: http://localhost:8081/test/test
|
||||
@RequestMapping("test")
|
||||
@SaCheckSign(appid = "#{appid}", verifyParams = {"name", "age"})
|
||||
public SaResult test() {
|
||||
System.out.println("------------进来了 " + SaFoxUtil.formatDate(new Date()));
|
||||
// StpUtil.getLoginId();
|
||||
|
@@ -21,6 +21,9 @@ sa-token:
|
||||
sign:
|
||||
# token签名密钥
|
||||
secret-key: abc123
|
||||
sign-many:
|
||||
10001:
|
||||
secret-key: 123456
|
||||
|
||||
spring:
|
||||
# redis配置
|
||||
|
Reference in New Issue
Block a user