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' 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 # Create Spring Boot Java project prompt
@ -30,7 +29,7 @@ java -version
```shell ```shell
curl https://start.spring.io/starter.zip \ curl https://start.spring.io/starter.zip \
-d artifactId=demo \ -d artifactId=${input:projectName:demo-java} \
-d bootVersion=3.4.5 \ -d bootVersion=3.4.5 \
-d dependencies=lombok,configuration-processor,web,data-jpa,postgresql,data-redis,data-mongodb,validation,cache,testcontainers \ -d dependencies=lombok,configuration-processor,web,data-jpa,postgresql,data-redis,data-mongodb,validation,cache,testcontainers \
-d javaVersion=21 \ -d javaVersion=21 \
@ -45,7 +44,7 @@ curl https://start.spring.io/starter.zip \
- Run following command in terminal to unzip the downloaded file - Run following command in terminal to unzip the downloaded file
```shell ```shell
unzip starter.zip -d . unzip starter.zip -d ./${input:projectName:demo-java}
``` ```
## Remove the downloaded zip file ## Remove the downloaded zip file
@ -56,6 +55,14 @@ unzip starter.zip -d .
rm -f starter.zip 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 ## Add additional dependencies
- Insert `springdoc-openapi-starter-webmvc-ui` and `archunit-junit5` dependency into `pom.xml` file - Insert `springdoc-openapi-starter-webmvc-ui` and `archunit-junit5` dependency into `pom.xml` file

View File

@ -1,7 +1,6 @@
--- ---
mode: 'agent' 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 # Create Spring Boot Kotlin project prompt
@ -30,7 +29,7 @@ java -version
```shell ```shell
curl https://start.spring.io/starter.zip \ curl https://start.spring.io/starter.zip \
-d artifactId=demo \ -d artifactId=${input:projectName:demo-kotlin} \
-d bootVersion=3.4.5 \ -d bootVersion=3.4.5 \
-d dependencies=configuration-processor,webflux,data-r2dbc,postgresql,data-redis-reactive,data-mongodb-reactive,validation,cache,testcontainers \ -d dependencies=configuration-processor,webflux,data-r2dbc,postgresql,data-redis-reactive,data-mongodb-reactive,validation,cache,testcontainers \
-d javaVersion=21 \ -d javaVersion=21 \
@ -46,7 +45,7 @@ curl https://start.spring.io/starter.zip \
- Run following command in terminal to unzip the downloaded file - Run following command in terminal to unzip the downloaded file
```shell ```shell
unzip starter.zip -d . unzip starter.zip -d ./${input:projectName:demo-kotlin}
``` ```
## Remove the downloaded zip file ## Remove the downloaded zip file
@ -57,6 +56,14 @@ unzip starter.zip -d .
rm -f starter.zip 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 ## Add additional dependencies
- Insert `springdoc-openapi-starter-webmvc-ui` and `archunit-junit5` dependency into `build.gradle.kts` file - Insert `springdoc-openapi-starter-webmvc-ui` and `archunit-junit5` dependency into `build.gradle.kts` file