[英]Library jar to read .properties file from client CLASSPATH
I made a maven library jar which detect date formats based on configured formats mapping. 我制作了一个maven库jar,它基于配置的格式映射来检测日期格式。 Currently I hard-coded the formats mapping but I want to isolate the formats mapping into a .properties files as below: 当前,我对格式映射进行了硬编码,但我想将格式映射隔离为.properties文件,如下所示:
Reading the internal .properties file from library CLASSPATH is easy by but how to let the library read the external .properties file from client CLASSPATH? 从库CLASSPATH读取内部.properties文件很容易,但是如何让该库从客户端CLASSPATH读取外部.properties文件呢?
Number of options are available to you: 可用的选项数量:
Each method has its pluses and minuses and it depends upon your needs... 每种方法都有其优缺点,取决于您的需要...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.