create-spring-boot-java-project by github/awesome-copilot
npx skills add https://github.com/github/awesome-copilot --skill create-spring-boot-java-projectartifactId 和 packageNamebootVersionjava -version
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
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
unzip starter.zip -d ./${input:projectName:demo-java}
rm -f starter.zip
cd ${input:projectName:demo-java}
springdoc-openapi-starter-webmvc-ui 和 archunit-junit5 依赖项插入到 pom.xml 文件中<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>
application.properties 文件中# SpringDoc configurations
springdoc.swagger-ui.doc-expansion=none
springdoc.swagger-ui.operations-sorter=alpha
springdoc.swagger-ui.tags-sorter=alpha
application.properties 文件中# Redis configurations
spring.data.redis.host=localhost
spring.data.redis.port=6379
spring.data.redis.password=rootroot
application.properties 文件中# 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
application.properties 文件中# 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
docker-compose.yamldocker-compose.yaml 并添加以下服务:redis:6、postgresql:17 和 mongo:8。
rootroot./redis_data 挂载到 /datarootroot./postgres_data 挂载到 /var/lib/postgresql/datarootrootroot./mongo_data 挂载到 /data/db.gitignore 文件.gitignore 文件中插入 redis_data、postgres_data 和 mongo_data 目录./mvnw clean test
docker-compose up -d 启动服务,./mvnw spring-boot:run 运行 Spring Boot 项目,docker-compose rm -sf 停止服务。每周安装量
7.5K
代码仓库
GitHub 星标数
26.9K
首次出现
2026年2月25日
安全审计
安装于
codex7.4K
gemini-cli7.4K
opencode7.4K
cursor7.4K
github-copilot7.4K
kimi-cli7.3K
Please make sure you have the following software installed on your system:
If you need to custom the project name, please change the artifactId and the packageName in download-spring-boot-project-template
If you need to update the Spring Boot version, please change the bootVersion in download-spring-boot-project-template
Run following command in terminal and check the version of Java
java -version
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
Run following command in terminal to unzip the downloaded file
unzip starter.zip -d ./${input:projectName:demo-java}
Run following command in terminal to delete the downloaded zip file
rm -f starter.zip
Run following command in terminal to change directory to the project root
cd ${input:projectName:demo-java}
Insert springdoc-openapi-starter-webmvc-ui and archunit-junit5 dependency into pom.xml file
Insert SpringDoc configurations into application.properties file
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
spring.data.redis.host=localhost spring.data.redis.port=6379 spring.data.redis.password=rootroot
Insert JPA configurations into application.properties file
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
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
docker-compose.yaml with Redis, PostgreSQL and MongoDB servicesCreate docker-compose.yaml at project root and add following services: redis:6, postgresql:17 and mongo:8.
rootroot./redis_data to /datarootroot./postgres_data to .gitignore fileredis_data, postgres_data and mongo_data directories in .gitignore fileRun maven clean test command to check if the project is working
./mvnw clean test
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.Weekly Installs
7.5K
Repository
GitHub Stars
26.9K
First Seen
Feb 25, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykFail
Installed on
codex7.4K
gemini-cli7.4K
opencode7.4K
cursor7.4K
github-copilot7.4K
kimi-cli7.3K
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装
AI代码审查工具 - 自动化安全漏洞检测与代码质量分析 | 支持多领域检查清单
1,200 周安装
AI智能体长期记忆系统 - 精英级架构,融合6种方法,永不丢失上下文
1,200 周安装
AI新闻播客制作技能:实时新闻转对话式播客脚本与音频生成
1,200 周安装
Word文档处理器:DOCX创建、编辑、分析与修订痕迹处理全指南 | 自动化办公解决方案
1,200 周安装
React Router 框架模式指南:全栈开发、文件路由、数据加载与渲染策略
1,200 周安装
Nano Banana AI 图像生成工具:使用 Gemini 3 Pro 生成与编辑高分辨率图像
1,200 周安装
/var/lib/postgresql/datarootrootroot./mongo_data to /data/db