java ee 项目中的自定配置文件到底放在哪里才能找到??

2025-05-01 00:09:17
推荐回答(1个)
回答1:

你的inputFile加上路径
FileInputStream inputFile = new FileInputStream("main/resources/constants.properties");