摘要:        
使用 Properties 文件配置简单的数据格式,操作起来非常的方便,Properties 文件存储最简单的键值对。如建立一个jdbc.properties 文件,内容如下:jdbcUrl = jdbc:mysql//testdriverClass = driver.mysql.testuserName = abcpassWord =123使用方法也比较简单public UserDaoImpl() {String resources = "jdbc.properties";// 将配置文件加载单独写成一个函数,将异常处理进行封装,使代码整洁Properties prope    阅读全文
posted @ 2013-05-30 12:42
oftenlin
阅读(8648)
评论(1)
推荐(0)
        
                    
                
浙公网安备 33010602011771号