Liuzh
Liuzh
1.4.4 已发布,已支持。
我会尽快测试对2.0的兼容性
换 2.0 正式版,这个版本没有问题。
```java @RunWith(SpringRunner.class) @SpringBootTest @Import(MyTestsConfiguration.class) public class MyTests { @Test public void exampleTest() { ... } } ``` 测试参考 spring boot 文档写法: https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-testing.html
这是完整的错误信息吗? 上面的count查询sql测试过吗?
当使用 `@Param` 注解时也会用到 Map,建议缩小类型范围。
支持 PageRowBouns,你代码有问题,city.id 空的时候,你的 sql 是 >SELECT * FROM alc_city WHERE AND deleted_at is null
注意看你第二个截图第二行,参数是 null,也就是 id = null,正常不可能有结果吧。
把`@Param`注解去掉,代码中直接用`#{id}`
1.0.0版本可能在低版本的springboot上会出现这个错误,用最新的pagehelper-starter试试。