How do I reference resources
directory (Or a directory relative to my source files) as my local git uri for the config server (On Windows)?
I've tried file:///resources
and file:///full/path/to/resources
, all seem to fail.
As requested, here's some code:
ConfigServiceApplication.java
@EnableConfigServer
@SpringBootApplication
public class ConfigServiceApplication {
public static void main(String[] args) {
SpringApplication.run(ConfigServiceApplication.class, args);
}
}
application.properties
spring.cloud.config.server.git.uri=file:///full/path/to/resources
spring.application.name=config-service
server.port=8888
I'm embarrassed to write this but intellij wouldn't clean the build. I ran the gradle task and it all worked out.