Confused about java properties file location

前端 未结 4 2100
走了就别回头了
走了就别回头了 2020-12-29 22:14

I have simple java project with structure:

package com.abc: a.java b.java c.properties

I have database configuration parameters conf

4条回答
  •  萌比男神i
    2020-12-29 23:01

    Why not pass the location of the properties file as a command line argument (following a flag)? if it's not present, then use the default one in the jar file.

提交回复
热议问题