Relative Content

Tag Archive for javaspringcloud-foundryspring-cloud-config-serverconfigserver

How to read csv file that is present in Spring config server bitbucket repository?

I want to externalize one csv file so I’m keeping this file in config server repositiory. Now I want to access this csv file in my main springboot application repository.
This Spring boot application is deployed on Cloud foundry which needs to connect to a config server Bitbucket repository to get data from an external Yaml file present in the repository. Currently, I’m using Spring Cloud Config Server and configured bitbucket repository via SSH key in application.yaml.

spring:
cloud:
config:
server:
git:
uri: ssh://[email protected]/in/myrepo.git
cloneOnStart: true
default-label: my-feature-branch
privateKey: “”
searchPaths: file:/config-server-repo-parent-folder where csv is placed