How to add a Java Properties file to my Java Project in Eclipse

前端 未结 8 905
[愿得一人]
[愿得一人] 2020-12-15 20:22

I was using Unix before to compile and edit my Java. In that I have used property files right inside my current working directory where the class file exists. Now i have swi

8条回答
  •  心在旅途
    2020-12-15 20:52

    To create a property class please select your package where you wants to create your property file.

    Right click on the package and select other. Now select File and type your file name with (.properties) suffix. For example: db.properties. Than click finish. Now you can write your code inside this property file.

提交回复
热议问题