Fix project name placeholders and update descriptions in Spring Boot project prompts

This commit is contained in:
Vincent Huang iMac 2025-09-12 21:34:58 +08:00
parent ec3db46b77
commit ed2c911256
2 changed files with 22 additions and 8 deletions

View File

@ -1,7 +1,6 @@
---
mode: 'agent'
tools: ['changes', 'codebase', 'editFiles', 'findTestFiles', 'problems', 'runCommands', 'runTests', 'search', 'searchResults', 'terminalLastCommand', 'testFailure', 'usages']
description: 'Create Spring Boot Java project skeleton'
description: 'Create Spring Boot Java Project Skeleton'
---
# Create Spring Boot Java project prompt
@ -30,7 +29,7 @@ java -version
```shell
curl https://start.spring.io/starter.zip \
-d artifactId=demo \
-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 \
@ -45,7 +44,7 @@ curl https://start.spring.io/starter.zip \
- Run following command in terminal to unzip the downloaded file
```shell
unzip starter.zip -d .
unzip starter.zip -d ./${input:projectName:demo-java}
```
## Remove the downloaded zip file
@ -56,6 +55,14 @@ unzip starter.zip -d .
rm -f starter.zip
```
## Change directory to the project root
- Run following command in terminal to change directory to the project root
```shell
cd ${input:projectName:demo-java}
```
## Add additional dependencies
- Insert `springdoc-openapi-starter-webmvc-ui` and `archunit-junit5` dependency into `pom.xml` file

View File

@ -1,7 +1,6 @@
---
mode: 'agent'
tools: ['changes', 'codebase', 'editFiles', 'findTestFiles', 'problems', 'runCommands', 'runTests', 'search', 'searchResults', 'terminalLastCommand', 'testFailure', 'usages']
description: 'Create Spring Boot Kotlin project skeleton'
description: 'Create Spring Boot Kotlin Project Skeleton'
---
# Create Spring Boot Kotlin project prompt
@ -30,7 +29,7 @@ java -version
```shell
curl https://start.spring.io/starter.zip \
-d artifactId=demo \
-d artifactId=${input:projectName:demo-kotlin} \
-d bootVersion=3.4.5 \
-d dependencies=configuration-processor,webflux,data-r2dbc,postgresql,data-redis-reactive,data-mongodb-reactive,validation,cache,testcontainers \
-d javaVersion=21 \
@ -46,7 +45,7 @@ curl https://start.spring.io/starter.zip \
- Run following command in terminal to unzip the downloaded file
```shell
unzip starter.zip -d .
unzip starter.zip -d ./${input:projectName:demo-kotlin}
```
## Remove the downloaded zip file
@ -57,6 +56,14 @@ unzip starter.zip -d .
rm -f starter.zip
```
## Unzip the downloaded file
- Run following command in terminal to unzip the downloaded file
```shell
unzip starter.zip -d ./${input:projectName:demo-kotlin}
```
## Add additional dependencies
- Insert `springdoc-openapi-starter-webmvc-ui` and `archunit-junit5` dependency into `build.gradle.kts` file