没有set方法的是应为没有extends JdbcRealm类, 看我的 public class JdbcRealmTest extends org.apache.shiro.realm.jdbc.JdbcRealm
2018-06-03
使用spring初始化JedisPool时需要指定结构方法参数,否则会出现InvalidURIException: Cannot open Redis connection due invalid URI
如果constructor-arg 未指定type 初始化的时候JedisPool有两个相同参数个数的构造方法会选择错误,造成类似于这样的错误。
JedisPool(GenericObjectPoolConfig, String, int)
JedisPool(GenericObjectPoolConfig, URI, int)
如果constructor-arg 未指定type 初始化的时候JedisPool有两个相同参数个数的构造方法会选择错误,造成类似于这样的错误。
JedisPool(GenericObjectPoolConfig, String, int)
JedisPool(GenericObjectPoolConfig, URI, int)
2018-06-02