{"id":22765015,"url":"https://github.com/ssherwood/spring-boot-gemfire-old","last_synced_at":"2026-05-05T12:33:20.653Z","repository":{"id":147775370,"uuid":"153808470","full_name":"ssherwood/spring-boot-gemfire-old","owner":"ssherwood","description":"Demo Spring Boot application using Gemfire (POC)","archived":false,"fork":false,"pushed_at":"2018-10-19T16:01:42.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T10:15:53.881Z","etag":null,"topics":["gemfire","spring","spring-cache","springboot"],"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/ssherwood.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-19T16:01:10.000Z","updated_at":"2018-11-19T15:12:37.000Z","dependencies_parsed_at":"2023-05-27T11:30:23.827Z","dependency_job_id":null,"html_url":"https://github.com/ssherwood/spring-boot-gemfire-old","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ssherwood/spring-boot-gemfire-old","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssherwood%2Fspring-boot-gemfire-old","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssherwood%2Fspring-boot-gemfire-old/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssherwood%2Fspring-boot-gemfire-old/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssherwood%2Fspring-boot-gemfire-old/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ssherwood","download_url":"https://codeload.github.com/ssherwood/spring-boot-gemfire-old/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssherwood%2Fspring-boot-gemfire-old/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32649572,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["gemfire","spring","spring-cache","springboot"],"created_at":"2024-12-11T12:11:19.540Z","updated_at":"2026-05-05T12:33:20.614Z","avatar_url":"https://github.com/ssherwood.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Steps:\n\n# 1 - Spring Initializr\n\n- Go to https://start.spring.io/\n- Change the Artifact to \"item-catalog\"\n- Select: web, acutator, devtools, jpa, h2, cache, lombok\n- Click Generate\n- Find the download, unzip and move to your workspace/repo folder\n\n# 2 - Import into IntelliJ\n\n- Select the maven pom.xml and import\n- Wait...\n- Update the application.properties\n  - management.endpoints.web.exposure.include=*\n  - management.endpoint.health.show-details=always\n  - spring.datasource.platform=h2\n  - spring.jpa.show-sql=true\n- Select \"run\" to verify the app is running\n- Hit the actuator\n  - http :8080/actuator/health\n\n# 3 - Create a traditional JPA Entity + Repository + Controller\n\n- Create a package \"items\"\n- Create a class Item\n  - Add fields id, upc, name, size, lastModified\n  - Add Lombok - @Data, @NoArgs, @Entity and @Id (plus strategy Identity)\n- Create a class ItemRepository\n  - extends JpaRepository\u003cItem, Long\u003e\n  - add method Optional\u003cItem\u003e getByUpc\n- Create a class ItemController\n  - add @RestController\n  - add @GetRequest accepting UPC (not id)\n    - throw custom exception\n    - @ResponseStatus(code = HttpStatus.NOT_FOUND, reason = \"The resource requested does not exist\")\n- Add data.sql\n- Restart the application\n- Test the endpoint\n  - http :8080/items/013764027053\n\n# 4 - Introduce Spring @Cacheable\n\n- Add the @Cacheable annotation to the get method\n- Add a println to demonstrate the cache miss\n- Restart and test the endpoint\n  - Perform a get to show the cash miss\n  - Use gfsh to demonstrated that the value is in the region\n  - Perform a second get to now show its getting the value from cache\n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssherwood%2Fspring-boot-gemfire-old","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fssherwood%2Fspring-boot-gemfire-old","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssherwood%2Fspring-boot-gemfire-old/lists"}