• 周六. 4月 20th, 2024

5G编程聚合网

5G时代下一个聚合的编程学习网

热门标签

JDBC读取配置文件

admin

11月 28, 2021
Properties prop = new Properties();

prop.load(this.class.getClassLoader().getResourceAsStream("path"));

             url = prop.getProperty("jdbc_url");
             name = prop.getProperty("className");
             user = prop.getProperty("jdbc_username");
             password = prop.getProperty("jdbc_password"); 

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注