{"id":19827361,"url":"https://github.com/sandysanthosh/spring-cloud-config","last_synced_at":"2026-06-10T12:31:17.928Z","repository":{"id":107709149,"uuid":"114665023","full_name":"sandysanthosh/Spring-Cloud-Config","owner":"sandysanthosh","description":"Spring Boot application with Cloud Configuration using Spring Cloud Config","archived":false,"fork":false,"pushed_at":"2023-01-29T17:22:58.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-28T20:57:17.455Z","etag":null,"topics":["boot","spring"],"latest_commit_sha":null,"homepage":"https://sandysanthosh.github.io/Pivotal-Cloud-Foundry/","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sandysanthosh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-18T16:47:13.000Z","updated_at":"2023-01-29T17:23:45.000Z","dependencies_parsed_at":"2023-06-08T20:00:27.468Z","dependency_job_id":null,"html_url":"https://github.com/sandysanthosh/Spring-Cloud-Config","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sandysanthosh/Spring-Cloud-Config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandysanthosh%2FSpring-Cloud-Config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandysanthosh%2FSpring-Cloud-Config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandysanthosh%2FSpring-Cloud-Config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandysanthosh%2FSpring-Cloud-Config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sandysanthosh","download_url":"https://codeload.github.com/sandysanthosh/Spring-Cloud-Config/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandysanthosh%2FSpring-Cloud-Config/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34153482,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["boot","spring"],"created_at":"2024-11-12T11:13:06.885Z","updated_at":"2026-06-10T12:31:17.922Z","avatar_url":"https://github.com/sandysanthosh.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pivotal-Cloud-Foundry\n\nHow to Deploy Spring Boot Application to Cloud Foundry Platform\n\n#### Technology Stack:\n\nWe will use below technology stack for the spring boot application development and testing.\n\n* Spring Boot\n* Spring REST\n* Maven\n* Eclipse\n* Cloud Foundry CLI\n* Web Browser\n\n\n#### Spring Boot application with Cloud Configuration using Spring Cloud Config:\n\n\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003eorg.springframework.cloud\u003c/groupId\u003e\n    \u003cartifactId\u003espring-cloud-config-client\u003c/artifactId\u003e\n\u003c/dependency\u003e\n\n```\n\n#### Next, you will need to configure your application to connect to a Spring Cloud Config Server. You can do this by adding the following to your \n#### application.properties or application.yml file:\n\n```\n\nspring.cloud.config.uri=http://localhost:8888\n```\n\n#### class MyConfig:\n\n```\n@Configuration\n@RefreshScope\npublic class MyConfig {\n\n    @Value(\"${my.config.property}\")\n    private String myConfigProperty;\n\n    public String getMyConfigProperty() {\n        return myConfigProperty;\n    }\n}\n\n\n```\n\n#### Create a REST controller class to handle HTTP requests and inject the Configuration class:\n\n```\n\n@RestController\npublic class MyController {\n\n    @Autowired\n    private MyConfig myConfig;\n\n    @GetMapping(\"/config\")\n    public String getConfig() {\n        return myConfig.getMyConfigProperty();\n    }\n}\n\n```\n\nTo deploy the application to the cloud, you can use a service like Heroku, AWS, or Google Cloud Platform. You will need to configure the necessary dependencies and settings for your chosen platform.\n\nFinally, use Spring Cloud Config to externalize your application configuration, so that you can manage it in a central location, rather than hard-coding it in the application itself.\n\n\n#### You will also need to set up a Spring Cloud Config Server. You can do this by creating a new Spring Boot application and adding the following dependency:\n\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003eorg.springframework.cloud\u003c/groupId\u003e\n    \u003cartifactId\u003espring-cloud-config-server\u003c/artifactId\u003e\n\u003c/dependency\u003e\n```\n\n#### application.properties or application.yml file:\n\n```\n\nspring.cloud.config.server.git.uri=file:///${user.home}/config-repo\n\n```\n\nCreate a git repository to store the configuration files and push the files to the remote repository.\n\nNow, when the application starts, it will connect to the Spring Cloud Config Server and retrieve the configuration properties\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsandysanthosh%2Fspring-cloud-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsandysanthosh%2Fspring-cloud-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsandysanthosh%2Fspring-cloud-config/lists"}