{"id":49225758,"url":"https://github.com/changsol/java-server-template","last_synced_at":"2026-04-24T07:05:04.946Z","repository":{"id":37294391,"uuid":"454340114","full_name":"ChangSol/java-server-template","owner":"ChangSol","description":"JAVA SrpingBoot를 이용한 백엔드 서버 (API) 템플릿","archived":false,"fork":false,"pushed_at":"2024-02-05T05:52:39.000Z","size":155,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-02-05T06:41:36.964Z","etag":null,"topics":["java","jpa","spring-boot","swagger"],"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/ChangSol.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":"2022-02-01T10:14:55.000Z","updated_at":"2023-01-29T08:26:46.000Z","dependencies_parsed_at":"2023-02-17T14:30:43.697Z","dependency_job_id":"d08d1126-b07b-4e26-bef3-f81cf33a8a78","html_url":"https://github.com/ChangSol/java-server-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ChangSol/java-server-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChangSol%2Fjava-server-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChangSol%2Fjava-server-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChangSol%2Fjava-server-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChangSol%2Fjava-server-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChangSol","download_url":"https://codeload.github.com/ChangSol/java-server-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChangSol%2Fjava-server-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32212813,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T03:15:14.334Z","status":"ssl_error","status_checked_at":"2026-04-24T03:15:11.608Z","response_time":64,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["java","jpa","spring-boot","swagger"],"created_at":"2026-04-24T07:04:29.479Z","updated_at":"2026-04-24T07:05:04.942Z","avatar_url":"https://github.com/ChangSol.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ChangSol Server Template\n\n### SpringBoot Server(API) Service를 위한 Template\n\n### 버전\nJava 16\u003cbr\u003e\nSpring Boot 2.6.6\u003cbr\u003e\nGradle-7.2\u003cbr\u003e\n\n### 기본환경\n- 사용포트 : 8080\u003cbr\u003e\n- swagger url : http://127.0.0.1:8080/swagger-ui\n\n### 기술 스택\n- JAVA\n- SpringBoot\n- JPA (Spring Data JPA), Hibernate\n- QueryDSL\n- MySQL or PostgreSQL or H2 선택\n\n### 구축 내용\n- 초기 SpringBoot 설정\n- JPA(Spring-JPA) 사용\n- H2 DB를 사용하여 Sample 진행\n- SpringDoc를 통한 OpenAPI(3.0) 진행 (Swagger3)\n\n\n### ERD \n- https://www.erdcloud.com/\n\n### Swagger 2 -\u003e 3\n- Springfox -\u003e SpringDoc로 변경 Springboot에서 SpringDoc OpenAPI 3.0\n- 달라진 annotation\n- @Api -\u003e @Tag\n- @ApiIgnore -\u003e @Parameter(hidden = true) or @Operation(hidden = true) or @Hidden\n- @ApiImplicitParam -\u003e @Parameter\n- @ApiImplicitParams -\u003e @Parameters\n- @ApiModel -\u003e @Schema\n- @ApiModelProperty(hidden = true) -\u003e @Schema(accessMode = READ_ONLY)\n- @ApiModelProperty -\u003e @Schema\n- @ApiOperation(value = \"foo\", notes = \"bar\") -\u003e @Operation(summary = \"foo\", description = \"bar\")\n- @ApiParam -\u003e @Parameter\n- @ApiResponse(code = 404, message = \"foo\") -\u003e @ApiResponse(responseCode = \"404\", description = \"foo\")\n\n### Code Style\n- chang_sol_code_style.xml 참고\n\n### Custom Jpa Specification (동적쿼리예시)\n- 조건\n```javaㄱㄷ\n/**\n* SampleMaster Data Get\n* @param request 검색조건\n* @return SampleMasterDto.Response 리스트\n*/\npublic List\u003cSampleMasterDto.Response\u003e getSampleMasterList(SampleMasterDto.Request request) {\n    //조건\n    ChangSolJpaRestriction restriction = new ChangSolJpaRestriction();\n    if (ChangSolUtil.isNotBlank(request.getKeyword())) {\n        restriction.like(\"masterName\", \"테스트\");\n    }\n\n    return sampleMasterRepository.findAll(restriction.toSpecification())\n                                 .stream()\n                                 .map(SampleMasterMapper.INSTANCE::response)\n                                 .toList();\n}\n```\n- fetch join\n    - 자식 fetch 시 distinct true \n```java\n/**\n* SampleMaster Data Get\n* @param request 검색조건\n* @return SampleMasterDto.Response 리스트\n*/\npublic List\u003cSampleMasterDto.Response\u003e getSampleMasterList(SampleMasterDto.Request request) {\n    //조건\n    ChangSolJpaRestriction restriction = new ChangSolJpaRestriction();\n    if (ChangSolUtil.isNotBlank(request.getKeyword())) {\n        restriction.like(\"masterName\", \"테스트\");\n    }\n\t\n    restriction.addFetch(\"sampleDetails\", JoinType.LEFT);\n\n    return sampleMasterRepository.findAll(restriction.toSpecification())\n                                 .stream()\n                                 .map(SampleMasterMapper.INSTANCE::response)\n                                 .toList();\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchangsol%2Fjava-server-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchangsol%2Fjava-server-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchangsol%2Fjava-server-template/lists"}