Skip to content

Commit 47742bc

Browse files
committed
Initial round with the new example
1 parent a47ac79 commit 47742bc

20 files changed

Lines changed: 10480 additions & 1 deletion

.github/workflows/maven.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,6 @@ jobs:
3434
- name: Azure Function build
3535
run: cd examples/azure-function-hello-world && ./mvnw --batch-mode --no-transfer-progress package --file pom.xml
3636
- name: Spring Boot Memory Leak build
37-
run: cd examples/spring-boot-memory-leak-demo && ./mvnw --batch-mode --no-transfer-progress package --file pom.xml
37+
run: cd examples/spring-boot-memory-leak-demo && ./mvnw --batch-mode --no-transfer-progress package --file pom.xml
38+
- name: Spring Boot Performance Bottleneck build
39+
run: cd examples/spring-boot-performance-bottleneck-demo && ./mvnw --batch-mode --no-transfer-progress package --file pom.xml

examples/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
| [Maven demo](maven-demo/README.md) | Simple Maven demo generated with `jbang setup@jabrena init --maven`. Used to test the behaviour of Cursor rules for Java. |
66
| [Spring Boot demo](spring-boot-demo/implementation/README.md) | Simple Maven demo generated with `jbang setup@jabrena init --spring-boot`. Used to test the behaviour of Cursor rules for Java & Spring Boot. |
77
| [Spring Boot Memory Leak demo](spring-boot-memory-leak-demo/README.md) | Spring Boot application with intentional memory leaks. Used to demonstrate profiling and memory leak analysis techniques with JFR and flamegraphs. |
8+
| [Spring Boot Performance Bottleneck demo](spring-boot-performance-bottleneck-demo/README.md) | Spring Boot application demonstrating common performance anti-patterns with O(n²) and O(n³) algorithms. Includes load testing and profiling tools for performance analysis. |
89
| [AWS lambda Hello World](aws-lambda-hello-world/README.md) | Simple AWS Lambda. Used to test the behaviour of Cursor rules for Java & AWS Lambda. |
910
| [Azure function Hello World](azure-function-hello-world/README.md) | Simple Azure function. Used to test the behaviour of Cursor rules for Java & Azure function. |
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
wrapperVersion=3.3.2
18+
distributionType=only-script
19+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.10/apache-maven-3.9.10-bin.zip
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Essential Maven Goals:
2+
3+
```bash
4+
# Analyze dependencies
5+
./mvnw dependency:tree
6+
./mvnw dependency:analyze
7+
./mvnw dependency:resolve
8+
9+
./mvnw clean validate -U
10+
./mvnw buildplan:list-phase
11+
./mvnw license:third-party-report
12+
13+
# Clean the project
14+
./mvnw clean
15+
16+
# Clean and package in one command
17+
./mvnw clean package
18+
19+
# Run integration tests
20+
./mvnw verify
21+
22+
# Check for dependency updates
23+
./mvnw versions:display-property-updates
24+
./mvnw versions:display-dependency-updates
25+
./mvnw versions:display-plugin-updates
26+
27+
# Generate project reports
28+
./mvnw site
29+
jwebserver -p 8005 -d "$(pwd)/target/site/"
30+
31+
./mvnw clean spring-boot:run
32+
http://localhost:8080/swagger-ui/index.html
33+
34+
# WIP
35+
./mvnw clean verify -P jmeter-from-oas
36+
37+
./load-test.sh --help
38+
./load-test.sh -e both -n 500000 -c 10
39+
40+
41+
42+
jwebserver -p 8005 -d "$(pwd)/examples/spring-boot-memory-leak-demo/profiler/results"
43+
44+
My Java application has performance issues - help me set up comprehensive profiling process using @151-java-profiling-detect.mdc and use the location examples/spring-boot-memory-leak-demo/profiler
45+
46+
Analyze the results located in examples/spring-boot-memory-leak-demo/profiler and use the cursor rule @152-java-profiling-analyze
47+
48+
Review if the problems was solved with last refactoring using the reports located in @/results with the cursor rule 154-java-profiling-compare.mdc
49+
```

0 commit comments

Comments
 (0)