沒有set方法的是應(yīng)為沒有extends JdbcRealm類, 看我的 public class JdbcRealmTest extends org.apache.shiro.realm.jdbc.JdbcRealm
2018-06-03
使用spring初始化JedisPool時(shí)需要指定結(jié)構(gòu)方法參數(shù),否則會(huì)出現(xiàn)InvalidURIException: Cannot open Redis connection due invalid URI
如果constructor-arg 未指定type 初始化的時(shí)候JedisPool有兩個(gè)相同參數(shù)個(gè)數(shù)的構(gòu)造方法會(huì)選擇錯(cuò)誤,造成類似于這樣的錯(cuò)誤。
JedisPool(GenericObjectPoolConfig, String, int)
JedisPool(GenericObjectPoolConfig, URI, int)
如果constructor-arg 未指定type 初始化的時(shí)候JedisPool有兩個(gè)相同參數(shù)個(gè)數(shù)的構(gòu)造方法會(huì)選擇錯(cuò)誤,造成類似于這樣的錯(cuò)誤。
JedisPool(GenericObjectPoolConfig, String, int)
JedisPool(GenericObjectPoolConfig, URI, int)
2018-06-02