{"id":22317552,"url":"https://github.com/neshkeev/spring-proxy-demo","last_synced_at":"2026-04-15T07:35:44.193Z","repository":{"id":184267544,"uuid":"671559067","full_name":"neshkeev/spring-proxy-demo","owner":"neshkeev","description":"The project reveals the mechanics behind Spring Framework's magic","archived":false,"fork":false,"pushed_at":"2023-07-27T18:07:34.000Z","size":49,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-31T04:08:00.713Z","etag":null,"topics":["proxy","spring"],"latest_commit_sha":null,"homepage":"","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/neshkeev.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,"governance":null}},"created_at":"2023-07-27T15:39:22.000Z","updated_at":"2023-08-28T14:32:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"96cd0534-d3a8-46c1-8fb0-dfafce8b5768","html_url":"https://github.com/neshkeev/spring-proxy-demo","commit_stats":null,"previous_names":["neshkeev/spring-proxy-demo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neshkeev%2Fspring-proxy-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neshkeev%2Fspring-proxy-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neshkeev%2Fspring-proxy-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neshkeev%2Fspring-proxy-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neshkeev","download_url":"https://codeload.github.com/neshkeev/spring-proxy-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245585806,"owners_count":20639671,"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":["proxy","spring"],"created_at":"2024-12-03T23:10:10.811Z","updated_at":"2025-10-05T03:18:55.943Z","avatar_url":"https://github.com/neshkeev.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Gitpod](https://img.shields.io/badge/Open%20in%20Gitpod-908a85?logo=gitpod)](https://gitpod.io/#https://github.com/neshkeev/spring-proxy-demo)\n\n# Overview\n\nThe repository reveals the \"magic\" behind Spring Framework. As a demo it automatically configures JMX MBeans for spring beans that are annotated with `@JmxExporter`.\n\n**IMPORTANT**: the application is built on top of Spring Boot 3.1.2, which supports only Java 17, so `JAVA_HOME` should point at a JDK 17 distribution.\n\n## Quick start\n\n0. Set `JAVA_HOME` to point at JDK17;\n1. Clone the repository:\n```bash\ngit clone https://github.com/neshkeev/spring-proxy-demo \u0026\u0026 cd spring-proxy-demo\n```\n2. Start the application:\n```bash\n./mvnw spring-boot:run\n```\n3. Add a consumer:\n```bash\ncurl http://localhost:8080/customers \\\n    -X POST \\\n    -H \"Content-type: application/json\" \\\n    -d '{\"id\":0,\"name\":\"Hello, World!\", \"active\": true}'\n```\n3. Start `jconsole`:\n```bash\njconsole\n```\n4. Find the `com.github.neshkeev.spring.proxy.Main`\tprocess and connect to it;\n5. Go to `MBeans`;\n6. In the left panel unfold `com.github.neshkeev.spring.proxy.rest` | `basic` | `customerController` | `Operations` | `get`;\n7. Click on the `get` button.\n\n## Run tests with maven\n\nThe repository contains tests that can be executed with maven:\n- Run all tests:\n```bash\n./mvnw clean test\n```\n- Run a specific test:\n```bash\n./mvnw clean test -Dtest=com.github.neshkeev.spring.proxy.rest.CustomerControllerJMXTest\n```\n\n## Run the application with Intellij IDEA\n\nIf you open the repository in Intellij IDEA you can run the application and it's tests with predefined run configurations:\n\n1. `Main` starts the Spring Boot application with a rest controller and registered MBeans;\n1. `HelloWorldInvocationHandlerTest` starts a Spring Boot test that demonstrates the simplest proxy;\n1. `PasswordGeneratorInvocationHandlerTest` starts a Spring Boot test for password generators;\n1. `LoggerWrapperInvocationHandlerTest`\n1. `CustomerControllerJMXTest` starts Spring Boot tests that checks registered JMX MBeans;\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneshkeev%2Fspring-proxy-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneshkeev%2Fspring-proxy-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneshkeev%2Fspring-proxy-demo/lists"}