java - Servlet external config file requires full path -
i've looked @ number of related cases here on stackoverflow related this, deal situation of deciding put external files , access them, quite clear.
in situation, have java ee application needs use third party library reads external config file determine location of file. using eclipse , tomcat.
the external config file has line reads like: filename=[path]
, path expected full path name file.
i have no way of knowing how access file, save specifying /web-inf/classes/file
or file
not work, library can't find it. when put full name /users/.../file
on local machine, can find it.
as intended deployed on production server in cloud, solution put needed file in cloud storage, set config file point absolute location ?
Comments
Post a Comment