Load Properties from resources folder within JAR

后端 未结 1 728
臣服心动
臣服心动 2020-12-20 03:26

I have a JAR file Movie Library.jar, its contents are depicted below:

\"enter

相关标签:
1条回答
  • 2020-12-20 03:36

    If the property file is inside jar file, it is no longer a physical file

    props.load(LazyProperties.class.getResourceAsStream("/properties/movie_libraryproperties"));
    
    0 讨论(0)
提交回复
热议问题