Merge remote-tracking branch 'origin/dev_1.0.0' into dev_1.0.0
commit
19b1e27d19
@ -0,0 +1,18 @@
|
||||
package com.supervision.knowsub.controller;
|
||||
|
||||
import com.supervision.knowsub.domain.UserInfo;
|
||||
import com.supervision.knowsub.util.UserUtil;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("test")
|
||||
public class TestController {
|
||||
|
||||
@GetMapping("testToken")
|
||||
public void testToken(){
|
||||
UserInfo user = UserUtil.getUser();
|
||||
|
||||
}
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
/*
|
||||
* 文 件 名: ThreadCache
|
||||
* 版 权:
|
||||
* 描 述: <描述>
|
||||
* 修 改 人: RedName
|
||||
* 修改时间: 2023/9/4
|
||||
* 跟踪单号: <跟踪单号>
|
||||
* 修改单号: <修改单号>
|
||||
* 修改内容: <修改内容>
|
||||
*/
|
||||
package com.supervision.knowsub.config;
|
||||
|
||||
|
||||
/**
|
||||
* <功能详细描述>
|
||||
*
|
||||
* @author ljt
|
||||
* @version [版本号, 2023/9/4]
|
||||
* @see [相关类/方法]
|
||||
* @since [产品/模块版本]
|
||||
*/
|
||||
public class ThreadCache {
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
public static final ThreadLocal<String> USER = new ThreadLocal<>();
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue