How about PropertiesLoaderUtils?
Resource resource = new ClassPathResource("/my.properties");
Properties props = PropertiesLoaderUtils.loadProperties(resource);
More Related Contents:
- Spring @Value annotation in @Controller class not evaluating to value inside properties file
- Spring boot how to read properties file outside jar
- Programmatic access to properties created by property-placeholder
- Spring Boot not serving static content
- BeanFactory vs ApplicationContext
- Why can’t we autowire static fields in spring?
- How to add a hook to the application context initialization event?
- Scope ‘session’ is not active for the current thread; IllegalStateException: No thread-bound request found
- Spring @Transactional read-only propagation
- Disable all Database related auto configuration in Spring Boot
- How to set active spring 3.1 environment profile via a properites file and not via an env variable or system property
- How to use OAuth2RestTemplate?
- When use ResponseEntity and @RestController for Spring RESTful applications
- Spring DI – Autowired property is null in a REST service
- Send datas from html to controller in Thymeleaf?
- SpringServletContainerInitializer cannot be cast to javax.servlet.ServletContainerInitializer
- Using RestTemplate in Spring. Exception- Not enough variables available to expand
- spring-core 3.2.9 + java 8
- spring autowiring not working from a non-spring managed class
- Java 8 Spring compatibility
- Escaping a dot in a Map key in Yaml in Spring Boot
- Spring batch scope issue while using spring boot
- Weblogic 10.3.5 Overriding Spring Version
- How to mock Spring WebFlux WebClient?
- Configure Multiple MongoDB repositories with Spring Data Mongo
- File inside jar is not visible for spring
- Exclude subpackages from Spring autowiring?
- reading a dynamic property list into a spring managed bean
- Spring HandlerMethodArgumentResolver not executing
- Spring Boot JSF Integration