config.proporties文件在fourinone-zju目录下
项目相对路径是从fourinone-zju开始的,因此读取config.proporties文件的时候只需要读取”config.properties”即可。
如果要读取config.xml文件,该文件在fourinone-zjusrccomzjufourinone目录下,需要” .\src\com\zju\fourinone\config.xml”这样子读取,其中\是转义字符。

config.proporties文件在fourinone-zju目录下
项目相对路径是从fourinone-zju开始的,因此读取config.proporties文件的时候只需要读取”config.properties”即可。
如果要读取config.xml文件,该文件在fourinone-zjusrccomzjufourinone目录下,需要” .\src\com\zju\fourinone\config.xml”这样子读取,其中\是转义字符。