diff --git a/springboot.log b/springboot.log index fd424ad..a1fc50f 100644 --- a/springboot.log +++ b/springboot.log @@ -7,25 +7,31 @@ =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v3.2.0) -2026-03-06T17:09:02.230Z INFO 1154290 --- [springboot-demo] [ main] com.example.demo.DemoApplication : Starting DemoApplication v0.0.1-SNAPSHOT using Java 21.0.10 with PID 1154290 (/home/llm/projects/springboot-demo/target/demo-0.0.1-SNAPSHOT.jar started by llm in /home/llm/projects/springboot-demo) -2026-03-06T17:09:02.380Z INFO 1154290 --- [springboot-demo] [ main] com.example.demo.DemoApplication : No active profile set, falling back to 1 default profile: "default" -2026-03-06T17:10:05.868Z INFO 1154290 --- [springboot-demo] [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port 8082 (http) -2026-03-06T17:10:06.093Z INFO 1154290 --- [springboot-demo] [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] -2026-03-06T17:10:06.093Z INFO 1154290 --- [springboot-demo] [ main] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.16] -2026-03-06T17:10:07.996Z INFO 1154290 --- [springb2026-03-06T17:10:12.808Z INFO 1153691 --- [springboot-demo] [ main] o.s.b.a.e.web.EndpointLinksResolver : Exposing 1 endpoint(s) beneath base path '/actuator' -2026-03-06T17:10:14.838Z INFO 1153691 --- [springboot-demo] [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat start2026-03-06T17:10:23.314Z INFO 1154290 --- [springboot-demo] [ main] o.s.b.a.w.s.WelcomePageHandlerMapping : Adding welcome page: class path resource [static/index.html] -2026-03-06T17:10:40.414Z INFO 1154290 --- [springboot-demo] [ main] o.s.b.a.e.web.EndpointLinksResolver : Exposing 1 endpoint(s) beneath base path '/actuator' -2026-03-06T17:10:41.395Z INFO 1154290 --- [springboot-demo] [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port 8082 (http) with context path '' -2026-03-06T17:10:41.541Z INFO 1154290 --- [springboot-demo] [ main] com.example.demo.DemoApplication : Started DemoApplication in 116.974 seconds (process running for 133.101) +2026-03-07T08:12:47.326Z INFO 1374194 --- [springboot-demo] [ main] com.example.demo.DemoApplication : Starting DemoApplication v0.0.1-SNAPSHOT using Java 21.0.10 with PID 1374194 (/home/llm/projects/springboot-demo/target/demo-0.0.1-SNAPSHOT.jar started by llm in /home/llm/projects/springboot-demo) +2026-03-07T08:12:47.356Z INFO 1374194 --- [springboot-demo] [ main] com.example.demo.DemoApplication : No active profile set, falling back to 1 default profile: "default" +2026-03-07T08:13:00.941Z INFO 1374194 --- [springboot-demo] [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port 8082 (http) +2026-03-07T08:13:01.016Z INFO 1374194 --- [springboot-demo] [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] +2026-03-07T08:13:01.020Z INFO 1374194 --- [springboot-demo] [ main] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.16] +2026-03-07T08:13:01.808Z INFO 1374194 --- [springboot-demo] [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext +2026-03-07T08:13:01.814Z INFO 1374194 --- [springboot-demo] [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 13966 ms +2026-03-07T08:13:07.411Z INFO 1374194 --- [springboot-demo] [ main] o.s.b.a.w.s.WelcomePageHandlerMapping : Adding welcome page: class path resource [static/index.html] +2026-03-07T08:13:15.547Z INFO 1374194 --- [springboot-demo] [ main] o.s.b.a.e.web.EndpointLinksResolver : Exposing 1 endpoint(s) beneath base path '/actuator' +2026-03-07T08:13:16.328Z INFO 1374194 --- [springboot-demo] [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port 8082 (http) with context path '' +2026-03-07T08:13:16.450Z INFO 1374194 --- [springboot-demo] [ main] com.example.demo.DemoApplication : Started DemoApplication in 33.141 seconds (process running for 36.573) [EventListener] Spring Boot 应用启动完成! -2026-03-06T17:11:05.601Z INFO 1154290 --- [springboot-demo] [nio-8082-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet' -2026-03-06T17:11:05.601Z INFO 1154290 --- [springboot-demo] [nio-8082-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet' -2026-03-06T17:11:05.619Z INFO 1154290 --- [springboot-demo] [nio-8082-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 13 ms +2026-03-07T08:13:47.186Z INFO 1374194 --- [springboot-demo] [nio-8082-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet' +2026-03-07T08:13:47.186Z INFO 1374194 --- [springboot-demo] [nio-8082-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet' +2026-03-07T08:13:47.195Z INFO 1374194 --- [springboot-demo] [nio-8082-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 4 ms [AOP-Before] Controller 方法开始: root 参数: [] [AOP-AfterReturning] 方法返回: root 返回值: {aop=https://spring.xiaoxiaoluohao.indevs.in/aop, learn=https://spring.xiaoxiaoluohao.indevs.in/learn, api=https://spring.xiaoxiaoluohao.indevs.in/api/users, message=欢迎来到 Spring Boot 学习脚手架!} -[AOP-Performance] LearnController.root() 执行耗时: 18ms +[AOP-Performance] LearnController.root() 执行耗时: 8ms +[AOP-Before] Controller 方法开始: root + 参数: [] +[AOP-AfterReturning] 方法返回: root + 返回值: {aop=https://spring.xiaoxiaoluohao.indevs.in/aop, learn=https://spring.xiaoxiaoluohao.indevs.in/learn, api=https://spring.xiaoxiaoluohao.indevs.in/api/users, message=欢迎来到 Spring Boot 学习脚手架!} +[AOP-Performance] LearnController.root() 执行耗时: 3ms [AOP-Before] Controller 方法开始: root 参数: [] [AOP-AfterReturning] 方法返回: root @@ -35,4 +41,56 @@ 参数: [] [AOP-AfterReturning] 方法返回: root 返回值: {aop=https://spring.xiaoxiaoluohao.indevs.in/aop, learn=https://spring.xiaoxiaoluohao.indevs.in/learn, api=https://spring.xiaoxiaoluohao.indevs.in/api/users, message=欢迎来到 Spring Boot 学习脚手架!} -[AOP-Performance] LearnController.root() 执行耗时: 3ms +[AOP-Performance] LearnController.root() 执行耗时: 10ms +[AOP-Before] Controller 方法开始: getAllUsers + 参数: [] +[AOP-After] Service 方法结束: findAll +[AOP-Performance] UserService.findAll() 执行耗时: 2ms +[AOP-AfterReturning] 方法返回: getAllUsers + 返回值: [com.example.demo.model.User@3616c07a, com.example.demo.model.User@a6b1d0f, com.example.demo.model.User@7935776c] +[AOP-Performance] UserController.getAllUsers() 执行耗时: 5ms +[AOP-Before] Controller 方法开始: info + 参数: [] +[AOP-AfterReturning] 方法返回: info + 返回值: {app=springboot-demo, endpoints=[Ljava.lang.String;@6c7b5bf1, message=欢迎学习 Spring Boot!} +[AOP-Performance] LearnController.info() 执行耗时: 2ms +[AOP-Before] Controller 方法开始: index + 参数: [] +[AOP-AfterReturning] 方法返回: index + 返回值: {endpoints=[Ljava.lang.String;@1b97f799, topics=[Ljava.lang.String;@1fa86033, message=Spring Boot 学习中心} +[AOP-Performance] AopEventController.index() 执行耗时: 11ms +[AOP-Before] Controller 方法开始: root + 参数: [] +[AOP-AfterReturning] 方法返回: root + 返回值: {aop=https://spring.xiaoxiaoluohao.indevs.in/aop, learn=https://spring.xiaoxiaoluohao.indevs.in/learn, api=https://spring.xiaoxiaoluohao.indevs.in/api/users, message=欢迎来到 Spring Boot 学习脚手架!} +[AOP-Performance] LearnController.root() 执行耗时: 6ms +[AOP-Before] Controller 方法开始: index + 参数: [] +[AOP-AfterReturning] 方法返回: index + 返回值: {endpoints=[Ljava.lang.String;@63de5cba, topics=[Ljava.lang.String;@67e1d419, message=Spring Boot 学习中心} +[AOP-Performance] AopEventController.index() 执行耗时: 1ms +[AOP-Before] Controller 方法开始: root + 参数: [] +[AOP-AfterReturning] 方法返回: root + 返回值: {aop=https://spring.xiaoxiaoluohao.indevs.in/aop, learn=https://spring.xiaoxiaoluohao.indevs.in/learn, api=https://spring.xiaoxiaoluohao.indevs.in/api/users, message=欢迎来到 Spring Boot 学习脚手架!} +[AOP-Performance] LearnController.root() 执行耗时: 0ms +[AOP-Before] Controller 方法开始: root + 参数: [] +[AOP-AfterReturning] 方法返回: root + 返回值: {aop=https://spring.xiaoxiaoluohao.indevs.in/aop, learn=https://spring.xiaoxiaoluohao.indevs.in/learn, api=https://spring.xiaoxiaoluohao.indevs.in/api/users, message=欢迎来到 Spring Boot 学习脚手架!} +[AOP-Performance] LearnController.root() 执行耗时: 0ms +[AOP-Before] Controller 方法开始: root + 参数: [] +[AOP-AfterReturning] 方法返回: root + 返回值: {aop=https://spring.xiaoxiaoluohao.indevs.in/aop, learn=https://spring.xiaoxiaoluohao.indevs.in/learn, api=https://spring.xiaoxiaoluohao.indevs.in/api/users, message=欢迎来到 Spring Boot 学习脚手架!} +[AOP-Performance] LearnController.root() 执行耗时: 0ms +[AOP-Before] Controller 方法开始: root + 参数: [] +[AOP-AfterReturning] 方法返回: root + 返回值: {aop=https://spring.xiaoxiaoluohao.indevs.in/aop, learn=https://spring.xiaoxiaoluohao.indevs.in/learn, api=https://spring.xiaoxiaoluohao.indevs.in/api/users, message=欢迎来到 Spring Boot 学习脚手架!} +[AOP-Performance] LearnController.root() 执行耗时: 2ms +[AOP-Before] Controller 方法开始: index + 参数: [] +[AOP-AfterReturning] 方法返回: index + 返回值: {endpoints=[Ljava.lang.String;@22e35681, topics=[Ljava.lang.String;@2214743, message=Spring Boot 学习中心} +[AOP-Performance] AopEventController.index() 执行耗时: 0ms diff --git a/target/classes/application.properties b/target/classes/application.properties index 9206665..619cc0a 100644 --- a/target/classes/application.properties +++ b/target/classes/application.properties @@ -1,2 +1,10 @@ server.port=8082 spring.application.name=springboot-demo + +# 学习友好:默认只保护 /api/secure/** +learning.auth.enabled=true +learning.auth.jwt.secret=demo-learning-secret-key-demo-learning-secret-key +learning.auth.jwt.expiration=86400000 + +# 避免默认生成密码干扰学习输出 +spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration diff --git a/target/classes/com/example/demo/common/ApiResponse.class b/target/classes/com/example/demo/common/ApiResponse.class new file mode 100644 index 0000000..b54b3a1 Binary files /dev/null and b/target/classes/com/example/demo/common/ApiResponse.class differ diff --git a/target/classes/com/example/demo/controller/AopEventController.class b/target/classes/com/example/demo/controller/AopEventController.class index 1016611..57ddac5 100644 Binary files a/target/classes/com/example/demo/controller/AopEventController.class and b/target/classes/com/example/demo/controller/AopEventController.class differ diff --git a/target/classes/com/example/demo/controller/LearnController.class b/target/classes/com/example/demo/controller/LearnController.class index 0be2d65..8994ac4 100644 Binary files a/target/classes/com/example/demo/controller/LearnController.class and b/target/classes/com/example/demo/controller/LearnController.class differ diff --git a/target/classes/com/example/demo/controller/UserController.class b/target/classes/com/example/demo/controller/UserController.class index a8bb129..f2794a8 100644 Binary files a/target/classes/com/example/demo/controller/UserController.class and b/target/classes/com/example/demo/controller/UserController.class differ diff --git a/target/classes/com/example/demo/controller/auth/LearningAuthController.class b/target/classes/com/example/demo/controller/auth/LearningAuthController.class new file mode 100644 index 0000000..703dc36 Binary files /dev/null and b/target/classes/com/example/demo/controller/auth/LearningAuthController.class differ diff --git a/target/classes/com/example/demo/controller/auth/SecureDemoController.class b/target/classes/com/example/demo/controller/auth/SecureDemoController.class new file mode 100644 index 0000000..8d4d144 Binary files /dev/null and b/target/classes/com/example/demo/controller/auth/SecureDemoController.class differ diff --git a/target/classes/com/example/demo/dto/UserRequest.class b/target/classes/com/example/demo/dto/UserRequest.class new file mode 100644 index 0000000..26858f5 Binary files /dev/null and b/target/classes/com/example/demo/dto/UserRequest.class differ diff --git a/target/classes/com/example/demo/dto/auth/LoginRequest.class b/target/classes/com/example/demo/dto/auth/LoginRequest.class new file mode 100644 index 0000000..5215006 Binary files /dev/null and b/target/classes/com/example/demo/dto/auth/LoginRequest.class differ diff --git a/target/classes/com/example/demo/exception/GlobalExceptionHandler.class b/target/classes/com/example/demo/exception/GlobalExceptionHandler.class new file mode 100644 index 0000000..f7eaab4 Binary files /dev/null and b/target/classes/com/example/demo/exception/GlobalExceptionHandler.class differ diff --git a/target/classes/com/example/demo/exception/ResourceNotFoundException.class b/target/classes/com/example/demo/exception/ResourceNotFoundException.class new file mode 100644 index 0000000..cd8f79b Binary files /dev/null and b/target/classes/com/example/demo/exception/ResourceNotFoundException.class differ diff --git a/target/classes/com/example/demo/security/LearningJwtFilter.class b/target/classes/com/example/demo/security/LearningJwtFilter.class new file mode 100644 index 0000000..6a8dc46 Binary files /dev/null and b/target/classes/com/example/demo/security/LearningJwtFilter.class differ diff --git a/target/classes/com/example/demo/security/LearningJwtUtil.class b/target/classes/com/example/demo/security/LearningJwtUtil.class new file mode 100644 index 0000000..bfc5299 Binary files /dev/null and b/target/classes/com/example/demo/security/LearningJwtUtil.class differ diff --git a/target/classes/com/example/demo/security/LearningSecurityConfig.class b/target/classes/com/example/demo/security/LearningSecurityConfig.class new file mode 100644 index 0000000..bd64957 Binary files /dev/null and b/target/classes/com/example/demo/security/LearningSecurityConfig.class differ diff --git a/target/classes/com/example/demo/service/UserService.class b/target/classes/com/example/demo/service/UserService.class index fa3f088..186beb2 100644 Binary files a/target/classes/com/example/demo/service/UserService.class and b/target/classes/com/example/demo/service/UserService.class differ diff --git a/target/classes/static/aop.html b/target/classes/static/aop.html index a10416a..89167ea 100644 --- a/target/classes/static/aop.html +++ b/target/classes/static/aop.html @@ -28,6 +28,8 @@ .nav { margin-bottom: 20px; } .nav a { margin-right: 15px; color: #6DB33F; text-decoration: none; } .nav a:hover { text-decoration: underline; } + .lab { background:#fff7e6; border-left:4px solid #fa8c16; padding:15px; border-radius:8px; margin:15px 0; } + .lab h4 { color:#ad6800; margin-bottom:8px; } @@ -38,11 +40,24 @@

🔪 AOP 切面编程

+ +
+

🧪 实验任务卡(AOP)

+ + +

📊 实时性能统计

AOP 自动统计所有 Controller 和 Service 方法的执行时间

+
点击按钮查看...
@@ -167,11 +182,41 @@ execution(* com.example.demo.service.*.save*(..))

← 返回学习中心

\ No newline at end of file diff --git a/target/classes/static/events.html b/target/classes/static/events.html index 391dc9e..60f8858 100644 --- a/target/classes/static/events.html +++ b/target/classes/static/events.html @@ -30,6 +30,8 @@ .nav { margin-bottom: 20px; } .nav a { margin-right: 15px; color: #6DB33F; text-decoration: none; } .nav a:hover { text-decoration: underline; } + .lab { background:#fff7e6; border-left:4px solid #fa8c16; padding:15px; border-radius:8px; margin:15px 0; } + .lab h4 { color:#ad6800; margin-bottom:8px; } @@ -40,6 +42,18 @@

📡 Spring 事件机制

+ +
+

🧪 实验任务卡(事件)

+ + +

🎉 事件发布演示

@@ -48,6 +62,7 @@ +
等待事件发布...
@@ -187,6 +202,29 @@ public class AopEventController {

← 返回学习中心

\ No newline at end of file diff --git a/target/classes/static/index.html b/target/classes/static/index.html index 937b474..e5e1b38 100644 --- a/target/classes/static/index.html +++ b/target/classes/static/index.html @@ -68,6 +68,10 @@

📡 事件机制

发布/订阅模式、解耦业务逻辑

+ +

🔐 鉴权演示(学习用)

+

最小 JWT 流程:登录、携带 Token、访问受保护接口

+
diff --git a/target/classes/static/users.html b/target/classes/static/users.html index 56a30e5..8a2a40c 100644 --- a/target/classes/static/users.html +++ b/target/classes/static/users.html @@ -143,7 +143,8 @@ public class UserController { // 加载用户列表 async function loadUsers() { const res = await fetch('/api/users'); - const users = await res.json(); + const payload = await res.json(); + const users = payload.data || []; const tbody = document.querySelector('#userTable tbody'); tbody.innerHTML = users.map(u => ` @@ -196,7 +197,7 @@ public class UserController { await fetch(`/api/users/${id}`, { method: 'PUT', headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify({ ...user, id: parseInt(id) }) + body: JSON.stringify(user) }); } else { await fetch('/api/users', { diff --git a/target/demo-0.0.1-SNAPSHOT.jar b/target/demo-0.0.1-SNAPSHOT.jar deleted file mode 100644 index 3475deb..0000000 Binary files a/target/demo-0.0.1-SNAPSHOT.jar and /dev/null differ diff --git a/target/demo-0.0.1-SNAPSHOT.jar.original b/target/demo-0.0.1-SNAPSHOT.jar.original deleted file mode 100644 index a1c91c8..0000000 Binary files a/target/demo-0.0.1-SNAPSHOT.jar.original and /dev/null differ diff --git a/target/maven-archiver/pom.properties b/target/maven-archiver/pom.properties deleted file mode 100644 index b665b7b..0000000 --- a/target/maven-archiver/pom.properties +++ /dev/null @@ -1,3 +0,0 @@ -artifactId=demo -groupId=com.example -version=0.0.1-SNAPSHOT diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst index 0cec6d3..c03e80a 100644 --- a/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -1,15 +1,25 @@ +com/example/demo/controller/auth/SecureDemoController.class +com/example/demo/exception/ResourceNotFoundException.class +com/example/demo/event/UserEventPublisher.class +com/example/demo/exception/GlobalExceptionHandler.class +com/example/demo/dto/auth/LoginRequest.class +com/example/demo/DemoApplication.class +com/example/demo/controller/PageController.class +com/example/demo/dto/UserRequest.class +com/example/demo/security/LearningJwtUtil.class +com/example/demo/security/LearningSecurityConfig.class +com/example/demo/model/UserEvent$Type.class +com/example/demo/model/User.class +com/example/demo/service/UserService.class +com/example/demo/aop/PerformanceAspect.class com/example/demo/aop/RateLimited.class com/example/demo/model/UserEvent.class com/example/demo/aop/LoggingAspect.class -com/example/demo/event/UserEventPublisher.class +com/example/demo/controller/auth/LearningAuthController.class +com/example/demo/common/ApiResponse.class com/example/demo/controller/AopEventController.class com/example/demo/controller/LearnController.class -com/example/demo/DemoApplication.class com/example/demo/event/UserEventListener.class -com/example/demo/controller/PageController.class com/example/demo/controller/UserController.class -com/example/demo/model/UserEvent$Type.class -com/example/demo/model/User.class com/example/demo/aop/RateLimitAspect.class -com/example/demo/service/UserService.class -com/example/demo/aop/PerformanceAspect.class +com/example/demo/security/LearningJwtFilter.class diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst index d3d20ed..db51982 100644 --- a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -1,14 +1,24 @@ +/home/llm/projects/springboot-demo/src/main/java/com/example/demo/security/LearningSecurityConfig.java +/home/llm/projects/springboot-demo/src/main/java/com/example/demo/controller/auth/SecureDemoController.java /home/llm/projects/springboot-demo/src/main/java/com/example/demo/controller/UserController.java /home/llm/projects/springboot-demo/src/main/java/com/example/demo/model/User.java /home/llm/projects/springboot-demo/src/main/java/com/example/demo/aop/LoggingAspect.java +/home/llm/projects/springboot-demo/src/main/java/com/example/demo/security/LearningJwtUtil.java /home/llm/projects/springboot-demo/src/main/java/com/example/demo/controller/PageController.java /home/llm/projects/springboot-demo/src/main/java/com/example/demo/aop/RateLimited.java /home/llm/projects/springboot-demo/src/main/java/com/example/demo/aop/PerformanceAspect.java /home/llm/projects/springboot-demo/src/main/java/com/example/demo/service/UserService.java +/home/llm/projects/springboot-demo/src/main/java/com/example/demo/exception/ResourceNotFoundException.java /home/llm/projects/springboot-demo/src/main/java/com/example/demo/controller/AopEventController.java +/home/llm/projects/springboot-demo/src/main/java/com/example/demo/exception/GlobalExceptionHandler.java /home/llm/projects/springboot-demo/src/main/java/com/example/demo/event/UserEventPublisher.java +/home/llm/projects/springboot-demo/src/main/java/com/example/demo/dto/auth/LoginRequest.java +/home/llm/projects/springboot-demo/src/main/java/com/example/demo/dto/UserRequest.java +/home/llm/projects/springboot-demo/src/main/java/com/example/demo/common/ApiResponse.java +/home/llm/projects/springboot-demo/src/main/java/com/example/demo/security/LearningJwtFilter.java /home/llm/projects/springboot-demo/src/main/java/com/example/demo/DemoApplication.java /home/llm/projects/springboot-demo/src/main/java/com/example/demo/event/UserEventListener.java /home/llm/projects/springboot-demo/src/main/java/com/example/demo/controller/LearnController.java +/home/llm/projects/springboot-demo/src/main/java/com/example/demo/controller/auth/LearningAuthController.java /home/llm/projects/springboot-demo/src/main/java/com/example/demo/model/UserEvent.java /home/llm/projects/springboot-demo/src/main/java/com/example/demo/aop/RateLimitAspect.java diff --git a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst new file mode 100644 index 0000000..f9eea56 --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst @@ -0,0 +1,2 @@ +com/example/demo/controller/UserControllerTest.class +com/example/demo/controller/AuthFlowTest.class diff --git a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst new file mode 100644 index 0000000..1b5e500 --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst @@ -0,0 +1,2 @@ +/home/llm/projects/springboot-demo/src/test/java/com/example/demo/controller/AuthFlowTest.java +/home/llm/projects/springboot-demo/src/test/java/com/example/demo/controller/UserControllerTest.java diff --git a/target/surefire-reports/TEST-com.example.demo.controller.AuthFlowTest.xml b/target/surefire-reports/TEST-com.example.demo.controller.AuthFlowTest.xml new file mode 100644 index 0000000..1a5a541 --- /dev/null +++ b/target/surefire-reports/TEST-com.example.demo.controller.AuthFlowTest.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/target/surefire-reports/TEST-com.example.demo.controller.UserControllerTest.xml b/target/surefire-reports/TEST-com.example.demo.controller.UserControllerTest.xml new file mode 100644 index 0000000..63d5a09 --- /dev/null +++ b/target/surefire-reports/TEST-com.example.demo.controller.UserControllerTest.xml @@ -0,0 +1,113 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/target/surefire-reports/com.example.demo.controller.AuthFlowTest.txt b/target/surefire-reports/com.example.demo.controller.AuthFlowTest.txt new file mode 100644 index 0000000..105b972 --- /dev/null +++ b/target/surefire-reports/com.example.demo.controller.AuthFlowTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: com.example.demo.controller.AuthFlowTest +------------------------------------------------------------------------------- +Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.666 s -- in com.example.demo.controller.AuthFlowTest diff --git a/target/surefire-reports/com.example.demo.controller.UserControllerTest.txt b/target/surefire-reports/com.example.demo.controller.UserControllerTest.txt new file mode 100644 index 0000000..52dc0bf --- /dev/null +++ b/target/surefire-reports/com.example.demo.controller.UserControllerTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: com.example.demo.controller.UserControllerTest +------------------------------------------------------------------------------- +Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 24.99 s -- in com.example.demo.controller.UserControllerTest diff --git a/target/test-classes/com/example/demo/controller/AuthFlowTest.class b/target/test-classes/com/example/demo/controller/AuthFlowTest.class new file mode 100644 index 0000000..43e0d3f Binary files /dev/null and b/target/test-classes/com/example/demo/controller/AuthFlowTest.class differ diff --git a/target/test-classes/com/example/demo/controller/UserControllerTest.class b/target/test-classes/com/example/demo/controller/UserControllerTest.class new file mode 100644 index 0000000..29b62ea Binary files /dev/null and b/target/test-classes/com/example/demo/controller/UserControllerTest.class differ