mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-07-16 16:50:47 +08:00
解决不必要的黄线警告
This commit is contained in:
parent
0c0b08c6c3
commit
b62e2dae24
@ -18,6 +18,7 @@ import java.util.List;
|
||||
* sa 缓存处理
|
||||
*/
|
||||
@JbootSpi("sacache")
|
||||
@SuppressWarnings({"deprecation", "unchecked", "rawtypes"})
|
||||
public class SaRedisCache implements JbootCache {
|
||||
protected JbootRedisConfig config;
|
||||
protected JedisPool jedisPool;
|
||||
|
@ -19,6 +19,7 @@ import java.util.concurrent.ConcurrentHashMap;
|
||||
/**
|
||||
* 使用Jboot的缓存方法存取Token数据
|
||||
*/
|
||||
@SuppressWarnings({"deprecation", "unchecked", "rawtypes"})
|
||||
public class SaTokenCacheDao implements SaTokenDao {
|
||||
|
||||
protected SaRedisCache saRedisCache;
|
||||
|
@ -35,6 +35,7 @@ public class AppRun extends JbootController {
|
||||
renderText("超级管理员方法!");
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public void token(String token) {
|
||||
Object t = Jboot.getRedis().get("xxxxx"); //默认redis库
|
||||
SaSession saSession = StpUtil.getSessionByLoginId(StpUtil.getLoginIdByToken(token), false); //satoken redis库
|
||||
|
@ -27,6 +27,7 @@ import com.pj.test.util.SoMap;
|
||||
*/
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(classes = StartUpApplication.class)
|
||||
@SuppressWarnings("deprecation")
|
||||
public class LoginControllerTest {
|
||||
|
||||
@Autowired
|
||||
|
Loading…
Reference in New Issue
Block a user