본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)40k · #7144

create-spring-boot-java-project

하는 일

이 도구는 Spring Boot를 사용하는 Java 프로젝트의 기본 구조를 만듭니다. 템플릿을 내려받고, 개발을 시작하는 데 필요한 설정과 의존성을 추가합니다.

사용하는 경우

  • ✓Java와 Spring Boot로 새 웹 프로젝트를 시작해야 할 때.
  • ✓PostgreSQL, MongoDB 같은 데이터베이스와 Redis 같은 캐시를 갖춘 프로젝트를 빠르게 설정하고 싶을 때.
  • ✓자동 문서화(Swagger)가 이미 설정된 출발점이 필요할 때.

스킬 링크

https://github.com/github/awesome-copilot/blob/main/skills/create-spring-boot-java-project/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/github/awesome-copilot/blob/main/skills/create-spring-boot-java-project/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“‘my-web-app’이라는 이름으로 웹, JPA, PostgreSQL 의존성을 가진 Spring Boot 프로젝트를 만들어 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

도구는 Spring Boot 프로젝트 템플릿을 내려받고, 데이터베이스, 캐시, 문서화를 위한 설정을 추가합니다. 그리고 Docker를 사용해 PostgreSQL과 Redis 같은 서비스를 실행하는 파일을 준비합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Create Spring Boot Java project prompt

Check Java version

  • Run following command in terminal and check the version of Java
java -version

Download Spring Boot project template

  • Run following command in terminal to download a Spring Boot project template
curl https://start.spring.io/starter.zip \
  -d artifactId=${input:projectName:demo-java} \
  -d bootVersion=3.4.5 \
  -d dependencies=lombok,configuration-processor,web,data-jpa,postgresql,data-redis,data-mongodb,validation,cache,testcontainers \
  -d javaVersion=21 \
  -d packageName=com.example \
  -d packaging=jar \
  -d type=maven-project \
  -o starter.zip

Unzip the downloaded file

  • Run following command in terminal to unzip the downloaded file
unzip starter.zip -d ./${input:projectName:demo-java}

Remove the downloaded zip file

  • Run following command in terminal to delete the downloaded zip file
rm -f starter.zip

Change directory to the project root

  • Run following command in terminal to change directory to the project root
cd ${input:projectName:demo-java}

Add additional dependencies

  • Insert springdoc-openapi-starter-webmvc-ui and archunit-junit5 dependency into pom.xml file
<dependency>
  <groupId>org.springdoc</groupId>
  <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
  <version>2.8.6</version>
</dependency>
<dependency>
  <groupId>com.tngtech.archunit</groupId>
  <artifactId>archunit-junit5</artifactId>
  <version>1.2.1</version>
  <scope>test</scope>
</dependency>

Add SpringDoc, Redis, JPA and MongoDB configurations

  • Insert SpringDoc configurations into application.properties file
# SpringDoc configurations
springdoc.swagger-ui.doc-expansion=none
springdoc.swagger-ui.operations-sorter=alpha
springdoc.swagger-ui.tags-sorter=alpha
  • Insert Redis configurations into application.properties file
# Redis configurations
spring.data.redis.host=localhost
spring.data.redis.port=6379
spring.data.redis.password=rootroot
  • Insert JPA configurations into application.properties file
# JPA configurations
spring.datasource.driver-class-name=org.postgresql.Driver
spring.datasource.url=jdbc:postgresql://localhost:5432/postgres
spring.datasource.username=postgres
spring.datasource.password=rootroot
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true
  • Insert MongoDB configurations into application.properties file
# MongoDB configurations
spring.data.mongodb.host=localhost
spring.data.mongodb.port=27017
spring.data.mongodb.authentication-database=admin
spring.data.mongodb.username=root
spring.data.mongodb.password=rootroot
spring.data.mongodb.database=test

Add docker-compose.yaml with Redis, PostgreSQL and MongoDB services

  • Create docker-compose.yaml at project root and add following services: redis:6, postgresql:17 and mongo:8.

    • redis service should have
      • password rootroot
      • mapping port 6379 to 6379
      • mounting volume ./redis_data to /data
    • postgresql service should have
      • password rootroot
      • mapping port 5432 to 5432
      • mounting volume ./postgres_data to /var/lib/postgresql/data
    • mongo service should have
      • initdb root username root
      • initdb root password rootroot
      • mapping port 27017 to 27017
      • mounting volume ./mongo_data to /data/db

Add .gitignore file

  • Insert redis_data, postgres_data and mongo_data directories in .gitignore file

Run Maven test command

  • Run maven clean test command to check if the project is working
./mvnw clean test

Run Maven run command (Optional)

  • (Optional) docker-compose up -d to start the services, ./mvnw spring-boot:run to run the Spring Boot project, docker-compose rm -sf to stop the services.

Let's do this step by step

자주 묻는 질문

어떤 소프트웨어를 설치해 두어야 하나요?

시스템에 Java 21, Docker, Docker Compose가 설치되어 있어야 합니다.

프로젝트 이름이나 Spring Boot 버전은 어떻게 바꾸나요?

‘artifactId’와 ‘packageName’을 수정해 프로젝트 이름을 바꿀 수 있고, 다운로드 명령의 ‘bootVersion’을 바꿔 Spring Boot 버전을 변경할 수 있습니다.

추가된 의존성은 무엇인가요?

프로젝트에 필요할 수 있는 추가 기능입니다. 웹 애플리케이션을 만드는 ‘web’, 데이터베이스 사용을 위한 ‘data-jpa’와 ‘postgresql’, 캐싱을 위한 ‘data-redis’, 자동 문서화를 위한 ‘springdoc-openapi’, 테스트를 위한 ‘testcontainers’ 등이 있습니다.

상세 정보

작성자의 원본 설명

Create Spring Boot Java Project Skeleton

repo: github/awesome-copilot

인기도

GitHub 스타
40k
순위
#7144
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬