{"id":24659258,"url":"https://github.com/brobert83/nav-yml","last_synced_at":"2026-05-11T09:12:01.924Z","repository":{"id":177259940,"uuid":"152985884","full_name":"brobert83/nav-yml","owner":"brobert83","description":"Spring boot yml config and Intellij navigation","archived":false,"fork":false,"pushed_at":"2018-10-24T19:36:42.000Z","size":282,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-26T02:54:18.498Z","etag":null,"topics":["intellij","springboot","yml-files"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/brobert83.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":"2018-10-14T14:59:39.000Z","updated_at":"2018-10-24T19:36:43.000Z","dependencies_parsed_at":"2023-07-20T02:15:13.941Z","dependency_job_id":null,"html_url":"https://github.com/brobert83/nav-yml","commit_stats":null,"previous_names":["brobert83/nav-yml"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brobert83%2Fnav-yml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brobert83%2Fnav-yml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brobert83%2Fnav-yml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brobert83%2Fnav-yml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brobert83","download_url":"https://codeload.github.com/brobert83/nav-yml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244745754,"owners_count":20503050,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["intellij","springboot","yml-files"],"created_at":"2025-01-26T02:54:18.213Z","updated_at":"2026-05-11T09:12:01.886Z","avatar_url":"https://github.com/brobert83.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"This repo illustrates how to setup a Spring boot app using yml based properties\n\nBy using this setup navigation is possible from the application.yml file to where the properties are bound in code, and back (Crtl+B, Crtl+click, etc)\n\nNotice this dependency in pom.xml\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003eorg.springframework.boot\u003c/groupId\u003e\n    \u003cartifactId\u003espring-boot-configuration-processor\u003c/artifactId\u003e\n    \u003coptional\u003etrue\u003c/optional\u003e\n\u003c/dependency\u003e\n\n```\n### How to enable annotation processing in Intellij\n![alt text](https://github.com/brobert83/nav-yml/blob/master/github-content/intellij_enable_annotation_processing.png?raw=true)\n\n### Properties not bound are highlighted\n\n![alt text](https://github.com/brobert83/nav-yml/blob/master/github-content/unbound_property.png?raw=true)\n\n### The magic\nThis is what is basically needed, then just inject that bean wherever\n```\n@Configuration\n@ConfigurationProperties(\"my.living.rent\")\nclass Address {\n\n    private String city;\n    private String country;\n\n    public String getCity() {\n        return city;\n    }\n\n    public void setCity(String city) {\n        this.city = city;\n    }\n\n    public String getCountry() {\n        return country;\n    }\n\n    public void setCountry(String country) {\n        this.country = country;\n    }\n}\n```\n\nAlso, @EnableConfigurationProperties \n```\n@SpringBootApplication\n@EnableConfigurationProperties\npublic class NavYmlApplication {\n\n\tpublic static void main(String[] args) {\n\t\tSpringApplication.run(NavYmlApplication.class, args);\n    }\n\n}\n\n```\n### This is how it should look in the class, by clicking those green leafs the ide will take you to the location in the yml where that prop is declared\n![alt text](https://github.com/brobert83/nav-yml/blob/master/github-content/nav_from_code.png?raw=true)\n\n#### Notes:\n- it does not work in combination with Lombok (@Getter @Setter)\n- the annotation processing must be enabled in Intellij\n- I've noticed that sometimes the IDE needs some time to make the binding happen (refresh the maven config)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrobert83%2Fnav-yml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrobert83%2Fnav-yml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrobert83%2Fnav-yml/lists"}