I saw many questions about this but can't seem to make it work: it either can't find properties file or throws Could not resolve placeholder .
@Slf4j @SpringBootApplication @ComponentScan(basePackages = "com.company") @PropertySource(value=) public class ConsumingRestApplication implements ApplicationRunner < @Autowired private ApplicationContext appContext; @Value("$") private String origin; @Value("$") private String destination; .
I tried different paths, including absolute path for PropertySource and also ran without it at all. My pom.xml includes resource and I tried without it also. Java is 11.0.7. Any hints appreciated.
4.0.0 com.company armstrong jar 1.0-SNAPSHOT armstrong http://maven.apache.org org.springframework.boot spring-boot-starter-parent 2.3.2.RELEASE com.google.code.gson gson 2.8.6 com.konghq unirest-java 3.7.04 org.springframework.boot spring-boot-starter-web org.springframework spring-web org.springframework.boot spring-boot-starter-test test org.springframework spring-core org.springframework spring-context org.projectlombok lombok 1.18.12 provided org.springframework.boot spring-boot-starter-log4j2 org.slf4j slf4j-api 1.7.30 org.slf4j slf4j-log4j12 1.7.30 test--> 1.11 1.11 org.springframework.boot spring-boot-maven-plugin src/main/resources true **/*.properties