cas默认是读取cas-server-webapp下的cas.properties文件中的
accept.authn.users=casuser::Mellon
作为登录的用户名和密码的
下面我们修改使cas从数据库中获取用户名和密码
1.cas-server-webapp下的cas.properties
添加
# == Basic database connection pool configuration ==
database.driverClass=com.mysql.jdbc.Driver
database.url=jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&characterEncoding=utf8
database.user=root
database.password=root
database.pool.minSize=6
database.pool.maxSize=18
# Maximum amount of time to wait in ms for a connection to become
# available when the pool is exhausted
database.pool.maxWait=10000
# Amount of time in seconds after which idle connections
# in excess of minimum size are pruned.
database.pool.maxIdleTime=120
# Number of connections to obtain on pool