普通java工程中路径的写法

普通java工程中,根路径是工程目录,例如:

这里根路径就是JDBCTest1

要获取mysql.properties配置文件,可以写:

String propPath = "src/mysql.properties";

也可以写:

String propPath = "resources/mysql.properties";

猜你喜欢

转载自blog.csdn.net/qq_22339269/article/details/83473046
今日推荐