You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .cursor/rules/301-frameworks-spring-boot-core.mdc
+70Lines changed: 70 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ These guidelines are built upon the following core principles:
18
18
19
19
## Table of contents
20
20
21
+
- Rule 0: Spring Boot Main Application Class
21
22
- Rule 1: Main Spring Boot Annotations Usage
22
23
- Rule 2: Bean Definition and Management
23
24
- Rule 3: Configuration Classes and Properties
@@ -27,6 +28,75 @@ These guidelines are built upon the following core principles:
27
28
- Rule 7: Bean Minimization and Composition
28
29
- Rule 8: Scheduled Tasks and Background Processing
29
30
31
+
## Rule 0: Spring Boot Main Application Class
32
+
33
+
Title: Create a Proper Spring Boot Main Application Class
34
+
Description: Every Spring Boot application should have a main application class annotated with @SpringBootApplication. This class serves as the entry point and configuration root, combining @Configuration, @EnableAutoConfiguration, and @ComponentScan annotations.
Copy file name to clipboardExpand all lines: examples/README.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,4 +2,10 @@
2
2
3
3
| Example | Notes |
4
4
|----------|-------|
5
-
| 1. Maven demo | Simple Maven demo generated with `jbang setup@jabrena init --maven`. Used to test the behaviour of Cursor rules for Java. |
5
+
| Maven demo | Simple Maven demo generated with `jbang setup@jabrena init --maven`. Used to test the behaviour of Cursor rules for Java. |
6
+
| Spring Boot demo | Simple Maven demo generated with `jbang setup@jabrena init --spring-boot`. Used to test the behaviour of Cursor rules for Java & Spring Boot. |
0 commit comments