title: How to load Properties only once in java?
body: <p>I have loaded property file in java.</p>
  
  <pre><code>public String getproperties(String property)
      InputStream inputStream = new ClassPathResource("test.properties").getInputStream();
              Properties testProperties = new Properties();
              testProperties.load(inputStream);
              inputStream.close();
              return testProperties.getProperty(propertyType);
  
  }
  </code></pre>
  
  <p>Its loaded successfully.The problem is every time property file loaded instead of loading only once.
  How to achieve this?</p>