问题
15:42:02.206 ERROR
dev33.satoken.exception.NotLoginException:未能读取到有效Tokeneting/mapper/MeetUserMapper.java (best guess)
### Error updating database
The error may exist ir
在
Themay involvemapper.MeetUserMapper.inserterrorcomsunbascThe erronoccurredwhileexecutincCause: cn.dev33.satoken.exception.NotLoginException;未能读取到有效Toke
##
服务内部异常:nested exception is org.apache.ibatis.exceptions.PersistenceException
明明已经进到service 了,他又给我效验token,就很蒙
原因:
版本太低!!
本来用的版本是1.30.0
现在更新到了1.34.0,建议给位更新到最新的版本!
<!-- Sa-Token 权限认证,在线文档:https://sa-token.cc -->
<dependency>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-spring-boot-starter</artifactId>
<version>1.33.0</version>
</dependency>
<!-- Sa-Token 整合 Redis (使用jackson序列化方式) -->
<dependency>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-dao-redis-jackson</artifactId>
<version>1.33.0</version>
</dependency>
然后再用一个注解
@SaIgnore