刚开始学习 Java 为了 登陆安全 有个二次登陆 经过 一段时间的理解 我自己的认为如下 请大家给予完善 为了 登陆数据库的 安全
我 写这样的配置文件
#--------------------------DataBase config---------------------------#
DBDriver =oracle.jdbc.driver.OracleDriver
DBUrl =jdbc:oracle:thin:@127.0.0.1:1521:orcl
DBuser =aa
FEUSER =login
FEUSER_PWD =加密处理
#------------------------DataSource Pool--------------------------#
acquireIncrement=3
acquireRetryAttempts=30
acquireRetryDelay=1000
initialPoolSize=0
MinPoolSize=3
maxPoolSize=15
maxIdleTime=60
autoCommitOnClose=false
maxStatements=10
maxStatementsPerConnection=10
preferredTestQuery=select count(*) from table where 1<>1
propertyCycle=300
在数据里有aa的用户名和密码 首先登录连接的时候 我们先给 login用户 给予 select 权限
grant select on dbuserinfo to login
那么 我在 登陆界面 输入dbuserinfo表的 用户名和密码的时候 就进行了 上述的连接