/*     */   public static final Properties loadProperties(String propertyFileRelativePath)
/*     */   {
/*  67 */     Properties properties = null;
/*     */     try {
/*  69 */       InputStream inputStream = getResourceAsStream(propertyFileRelativePath);
/*  70 */       if (inputStream != null) {
/*  71 */         properties = new Properties();
/*  72 */         properties.load(inputStream);
/*  73 */         inputStream.close();
/*     */       }
/*     */     }
/*     */     catch (IOException e) {}
/*     */     
/*     */ 
/*  79 */     return properties;
/*     */   }
            Properties property = FileUtility.loadProperties("xx.properties");
            String casFlag = property.getProperty("xx");

 

相关文章:

  • 2022-12-23
  • 2021-12-20
  • 2022-01-11
  • 2021-04-22
  • 2021-04-19
猜你喜欢
  • 2021-10-12
  • 2021-10-17
  • 2021-11-11
  • 2021-12-04
  • 2021-08-17
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案