Commit ecf42189 authored by liqin's avatar liqin 💬

bug fixed

parent 77a4c715
......@@ -114,6 +114,7 @@ public class MyShiroRealm extends AuthorizingRealm {
if (hasToken == null || !hasToken) {
throw new AuthenticationException("token invalid!");
}
String employeeId = JwtTokenUtil.getEmployeeId(employee.getJwtToken());
SimpleAuthorizationInfo info = new SimpleAuthorizationInfo();
......
......@@ -183,7 +183,7 @@ public class ShiroConfig {
@Bean
public RedisManager redisManager() {
RedisManager redisManager = new RedisManager();
redisManager.setHost(host);
redisManager.setHost(host + ":" + port);
redisManager.setTimeout(timeout);
redisManager.setPassword(password);
JedisPoolConfig jedisPoolConfig = new JedisPoolConfig();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment