xiang vor 1 Monat
Ursprung
Commit
48a55e52e8

+ 1 - 0
.idea/compiler.xml

@@ -2,6 +2,7 @@
 <project version="4">
   <component name="CompilerConfiguration">
     <annotationProcessing>
+      <profile default="true" name="Default" enabled="true" />
       <profile name="Maven default annotation processors profile" enabled="true">
         <sourceOutputDir name="target/generated-sources/annotations" />
         <sourceTestOutputDir name="target/generated-test-sources/test-annotations" />

+ 6 - 0
.idea/misc.xml

@@ -1,4 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
 <project version="4">
+  <component name="EntryPointsManager">
+    <list size="1">
+      <item index="0" class="java.lang.String" itemvalue="org.springframework.beans.factory.annotation.Autowired" />
+    </list>
+  </component>
   <component name="ExternalStorageConfigurationManager" enabled="true" />
   <component name="FrameworkDetectionExcludesConfiguration">
     <file type="web" url="file://$PROJECT_DIR$/base" />

+ 4 - 0
auth/pom.xml

@@ -50,6 +50,10 @@
             <groupId>com.alibaba</groupId>
             <artifactId>fastjson</artifactId>
         </dependency>
+        <dependency>
+            <groupId>org.projectlombok</groupId>
+            <artifactId>lombok</artifactId>
+        </dependency>
         <dependency>
             <groupId>javax.xml.bind</groupId>
             <artifactId>jaxb-api</artifactId>

+ 4 - 1
base/pom.xml

@@ -15,6 +15,9 @@
             <groupId>org.springframework.boot</groupId>
             <artifactId>spring-boot-starter-web</artifactId>
         </dependency>
+        <dependency>
+            <groupId>org.projectlombok</groupId>
+            <artifactId>lombok</artifactId>
+        </dependency>
     </dependencies>
-
 </project>

+ 0 - 3
base/src/main/java/com/base/exception/GlobalExceptionHandler.java

@@ -1,4 +1,3 @@
-// base/src/main/java/com/base/exception/GlobalExceptionHandler.java
 package com.base.exception;
 
 import com.base.utils.Result;
@@ -17,7 +16,6 @@ public class GlobalExceptionHandler {
     @ExceptionHandler(WyMusicException.class)
     @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
     public Result<String> customException(WyMusicException e) {
-        log.error("【业务异常】{}", e.getErrMessage(), e);
         return Result.fail(e.getErrMessage());
     }
 
@@ -25,7 +23,6 @@ public class GlobalExceptionHandler {
     @ExceptionHandler(Exception.class)
     @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
     public Result<String> exception(Exception e) {
-        log.error("【系统异常】{}", e.getMessage(), e);
         return Result.fail( e.getMessage());
     }
 }

+ 5 - 0
content/pom.xml

@@ -70,6 +70,11 @@
             <groupId>org.springframework.boot</groupId>
             <artifactId>spring-boot-starter-validation</artifactId>
         </dependency>
+        <dependency>
+            <groupId>org.projectlombok</groupId>
+            <artifactId>lombok</artifactId>
+        </dependency>
+
         <dependency>
             <groupId>org.springframework.cloud</groupId>
             <artifactId>spring-cloud-starter-oauth2</artifactId>

+ 8 - 2
content/src/main/java/com/content/controller/SwipperController.java

@@ -9,7 +9,6 @@ import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 import java.util.List;
-
 /**
  * <p>
  *  前端控制器
@@ -26,8 +25,15 @@ public class SwipperController {
     private ISwipperService swipperService;
     @GetMapping("/swipper")
     public Result<List<Swipper>> findRecommend(){
-        return Result.success(swipperService.list());
+        List<Swipper> list = swipperService.list();
+        // 添加调试信息
+        System.out.println("List size: " + list.size());
+        for(Swipper swipper : list) {
+            System.out.println("Swipper object: " + swipper.toString());
+        }
+        return Result.success(list);
     }
+
     @GetMapping("/test")
     public List<Swipper> test() {
         WyMusicException.cast("账号或密码错误");