1、若为resources目录下的文件,需要在首部加“/”–>”/pro.properties”

2、若要从根目录开始读,则“system.getproperty(“user.dir”)+src+main+resources+….”。注意分隔符是否一致