Browse Source

no message

FengChaoYu 3 weeks ago
parent
commit
eb958a1b73
2 changed files with 13 additions and 6 deletions
  1. 12 5
      pom.xml
  2. 1 1
      src/main/java/com/gree/mall/contest/config/aop/OperationLogAspect.java

+ 12 - 5
pom.xml

@@ -102,11 +102,6 @@
             <artifactId>mybatis-plus-boot-starter</artifactId>
             <version>${mybatis-plus.version}</version>
         </dependency>
-        <dependency>
-            <groupId>com.baomidou</groupId>
-            <artifactId>mybatis-plus-generator</artifactId>
-            <version>3.5.1</version>
-        </dependency>
         <!-- mysql -->
         <dependency>
             <groupId>mysql</groupId>
@@ -244,6 +239,18 @@
                 <configuration>
                     <configPath>src/main/resources/generator.properties</configPath>
                 </configuration>
+                <dependencies>
+                    <dependency>
+                        <groupId>com.baomidou</groupId>
+                        <artifactId>mybatis-plus-generator</artifactId>
+                        <version>3.5.1</version>
+                    </dependency>
+                    <dependency>
+                        <groupId>com.baomidou</groupId>
+                        <artifactId>mybatis-plus-extension</artifactId>
+                        <version>${mybatis-plus.version}</version>
+                    </dependency>
+                </dependencies>
             </plugin>
         </plugins>
     </build>

+ 1 - 1
src/main/java/com/gree/mall/contest/config/aop/OperationLogAspect.java

@@ -74,7 +74,7 @@ public class OperationLogAspect {
         if (annotation != null) {
             Operation ApiOperation = sourceMethod.getAnnotation(Operation.class);
             //方法上的注解为具体操作
-            String value = ApiOperation.description();
+            String value = ApiOperation.summary();
             //类上的api注解为模块
             String moduleName = joinPoint.getTarget().getClass().getAnnotation(Tag.class).name();
             if(StringUtils.isBlank(moduleName) || modules.contains(moduleName)){