فهرست منبع

与最新qmth-boot版本号一致,适配最新的mybatis参数修改

luoshi 11 ماه پیش
والد
کامیت
a00e22444a

+ 1 - 1
api-demo/pom.xml

@@ -6,7 +6,7 @@
     <parent>
         <groupId>com.qmth.demo</groupId>
         <artifactId>qmth-demo</artifactId>
-        <version>1.0</version>
+        <version>1.0.5</version>
     </parent>
     <artifactId>api-demo</artifactId>
 

+ 1 - 1
api-demo/src/main/java/com/qmth/demo/api/controller/UserController.java

@@ -36,7 +36,7 @@ public class UserController {
         query.setEnable(true);
         query.orderByNameDesc();
         return userMapper.selectPage(query,
-                new QueryWrapper<User>().lambda().likeLeft(query.getName() != null, User::getName, query.getName())
+                new QueryWrapper<User>().lambda().likeRight(query.getName() != null, User::getName, query.getName())
                         .eq(query.getEnable() != null, User::isEnable, query.getEnable())
                         .eq(query.getGender() != null, User::getGender, query.getGender())).getRecords();
     }

+ 9 - 7
api-demo/src/main/resources/application.properties

@@ -7,8 +7,8 @@ com.qmth.api.http-trace=true
 #com.qmth.api.global-strict=false
 #com.qmth.api.global-rate-limit=1/5s
 
-com.qmth.auth.time-max-delay=60s
-com.qmth.auth.time-max-ahead=10s
+#com.qmth.auth.time-max-delay=60s
+#com.qmth.auth.time-max-ahead=10s
 
 #com.qmth.logging.pattern=
 #com.qmth.logging.root-level=info
@@ -18,17 +18,19 @@ com.qmth.datasource.url=jdbc:mysql://localhost:3306/test?useUnicode=true&charact
 com.qmth.datasource.username=root
 #com.qmth.datasource.password=root
 com.qmth.datasource.password=ENC(c8fae3257c749aeb2e90406ad8d938a0)
-com.qmth.mybatis.log-level=debug
+#com.qmth.mybatis.log-level=debug
+com.qmth.mybatis.profiler.enable=true
+#com.qmth.mybatis.profiler.threshold=100ms
 
 com.qmth.cache.allow-null-value=false
 com.qmth.cache.expire-after-write=30m
 
 com.qmth.redis.host=127.0.0.1
 
-com.qmth.fss.public.config=/Users/luoshi/test
-com.qmth.fss.public.server=/api/file
-com.qmth.fss.private.config=/Users/luoshi/test
-com.qmth.fss.private.server=/fss
+##com.qmth.fss.public.config=/Users/luoshi/test
+##com.qmth.fss.public.server=/api/file
+##com.qmth.fss.private.config=/Users/luoshi/test
+##com.qmth.fss.private.server=/fss
 ##com.qmth.fss.config=/Users/luoshi/test
 ##com.qmth.fss.server=/fss
 

+ 2 - 2
pom.xml

@@ -7,7 +7,7 @@
     <groupId>com.qmth.demo</groupId>
     <artifactId>qmth-demo</artifactId>
     <packaging>pom</packaging>
-    <version>1.0</version>
+    <version>1.0.5</version>
     <modules>
         <module>api-demo</module>
     </modules>
@@ -16,7 +16,7 @@
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <maven.compiler.source>1.8</maven.compiler.source>
         <maven.compiler.target>1.8</maven.compiler.target>
-        <qmth.boot.version>1.0.4</qmth.boot.version>
+        <qmth.boot.version>1.0.5</qmth.boot.version>
     </properties>
 
     <dependencyManagement>