{"id":16514359,"url":"https://github.com/ingogriebsch/sample-spring-web-zalando-problem","last_synced_at":"2026-05-06T19:40:00.922Z","repository":{"id":48487768,"uuid":"238964265","full_name":"ingogriebsch/sample-spring-web-zalando-problem","owner":"ingogriebsch","description":"This sample shows you how to integrate Zalando's Problem framework into the Spring Web layer of a Spring Boot application","archived":false,"fork":false,"pushed_at":"2022-10-24T07:47:50.000Z","size":77,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-13T00:19:53.356Z","etag":null,"topics":["example","java","problem","sample","spring","spring-boot","spring-web","zalando"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ingogriebsch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-07T15:55:51.000Z","updated_at":"2024-07-24T16:21:32.000Z","dependencies_parsed_at":"2023-01-20T13:16:55.051Z","dependency_job_id":null,"html_url":"https://github.com/ingogriebsch/sample-spring-web-zalando-problem","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ingogriebsch%2Fsample-spring-web-zalando-problem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ingogriebsch%2Fsample-spring-web-zalando-problem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ingogriebsch%2Fsample-spring-web-zalando-problem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ingogriebsch%2Fsample-spring-web-zalando-problem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ingogriebsch","download_url":"https://codeload.github.com/ingogriebsch/sample-spring-web-zalando-problem/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241502912,"owners_count":19972956,"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":["example","java","problem","sample","spring","spring-boot","spring-web","zalando"],"created_at":"2024-10-11T16:12:21.130Z","updated_at":"2026-05-06T19:39:55.888Z","avatar_url":"https://github.com/ingogriebsch.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring Web Zalando Problem sample\n[![Actions Status](https://github.com/ingogriebsch/sample-spring-web-zalando-problem/workflows/verify%20project/badge.svg)](https://github.com/ingogriebsch/sample-spring-web-zalando-problem/actions)\n[![Codecov Status](https://codecov.io/gh/ingogriebsch/sample-spring-web-zalando-problem/branch/master/graph/badge.svg)](https://codecov.io/gh/ingogriebsch/sample-spring-web-zalando-problem)\n[![Codacy Status](https://api.codacy.com/project/badge/Grade/7aa1631180e24c47abd45266b98c9a81)](https://app.codacy.com/app/ingo.griebsch/sample-spring-web-zalando-problem?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=ingogriebsch/sample-spring-web-zalando-problem\u0026utm_campaign=Badge_Grade_Dashboard)\n[![DepShield Status](https://depshield.sonatype.org/badges/ingogriebsch/sample-spring-web-zalando-problem/depshield.svg)](https://depshield.github.io)\n[![Dependatbot Status](https://api.dependabot.com/badges/status?host=github\u0026repo=ingogriebsch/sample-spring-web-zalando-problem)](https://app.dependabot.com/accounts/ingogriebsch/repos/238964265)\n[![License](http://img.shields.io/:license-apache-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)\n\nThis sample shows you how to integrate Zalando's Problem framework into the Spring Web layer of a Spring Boot application.\n\nThis sample does neither use the `problem-spring-web-starter` nor the `problem-spring-web-autoconfigure` module. \nThe reason is that using the auto configuration would result in having two filter chains configured. \n\nOne filter chain would be configured through the [SecurityConfiguration](https://github.com/zalando/problem-spring-web/blob/0.25.2/problem-spring-web-autoconfigure/src/main/java/org/zalando/problem/spring/web/autoconfigure/security/SecurityConfiguration.java) of the `problem-spring-web-autoconfigure` module and the other filter chain would be configured through the [SpringBootWebSecurityConfiguration](https://github.com/spring-projects/spring-boot/blob/v2.2.4.RELEASE/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/servlet/SpringBootWebSecurityConfiguration.java) of the `spring-boot-autoconfigure` module.\n\nIf this auto configuration applies the filter chain which should apply is the second one in line therefore the service is not acting as expected.\nTherefore the service is configuring the filter chain and all related and necessary parts on it's own to prevent the unwanted behavior.  \n\n## Additional resources\n\n*   [Problem Details for HTTP APIs](http://tools.ietf.org/html/rfc7807)\n*   [A Guide to the Problem Spring Web Library](https://www.baeldung.com/problem-spring-web)\n*   [Exception Handling in Spring MVC](https://spring.io/blog/2013/11/01/exception-handling-in-spring-mvc#using-controlleradvice-classes)\n\n## Used frameworks\nCollection of the mainly used frameworks in this project. There are more, but they are not that present inside the main use case therefore they are not listed here.\n\n*   [Zalando Problem](https://github.com/zalando/problem)\n*   [Zalando Problem Spring Web](https://github.com/zalando/problem-spring-web)\n*   [Spring Web](https://docs.spring.io/spring/docs/5.2.3.RELEASE/spring-framework-reference/web.html#spring-web)\n*   [Spring Boot](https://docs.spring.io/spring-boot/docs/2.2.4.RELEASE/reference/htmlsingle)\n\n## License\nThis code is open source software licensed under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fingogriebsch%2Fsample-spring-web-zalando-problem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fingogriebsch%2Fsample-spring-web-zalando-problem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fingogriebsch%2Fsample-spring-web-zalando-problem/lists"}