问一个关于properties文件的路径的问题
public static Connection getConnection() throws SQLException, IOException {
Properties props = new Properties();
String fileName = "GetDb.properties";
FileInputStream in = new FileInputStream(fileName);
props.load(in);
请问各位大侠,ViewDB.properties这个文件应该放在哪个路径下面呢?我试了放在SRC下面不行,总是
提示该文件无法找到,谢谢了。