This commit is contained in:
yulichang 2023-03-17 11:34:11 +08:00
parent bf56112b05
commit 740c19511c
2 changed files with 3 additions and 3 deletions

View File

@ -98,7 +98,7 @@
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.4.2</version>
<version>3.5.3.1</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>

View File

@ -60,7 +60,7 @@ public class MybatisPlusConfig {
System.out.println("===============================================");
} else {
System.err.println("执行sql: " + SqlSourceBuilder.removeExtraWhitespaces(sql));
sqlList.forEach(i -> System.err.println("预期sql: " + i));
sqlList.forEach(i -> System.err.println("预期sql: " + SqlSourceBuilder.removeExtraWhitespaces(i)));
throw new RuntimeException("sql error");
}
}
@ -85,7 +85,7 @@ public class MybatisPlusConfig {
System.out.println("===============================================");
} else {
System.err.println("执行sql: " + SqlSourceBuilder.removeExtraWhitespaces(sql));
sqlList.forEach(i -> System.err.println("预期sql: " + i));
sqlList.forEach(i -> System.err.println("预期sql: " + SqlSourceBuilder.removeExtraWhitespaces(i)));
throw new RuntimeException("sql error");
}
}