File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
src/test/java/cn/netbuffer Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 18
18
<parent >
19
19
<groupId >org.springframework.boot</groupId >
20
20
<artifactId >spring-boot-starter-parent</artifactId >
21
- <version >2.1.13 .RELEASE</version >
21
+ <version >2.3.12 .RELEASE</version >
22
22
<relativePath /> <!-- lookup parent from repository -->
23
23
</parent >
24
24
39
39
<groupId >org.springframework.boot</groupId >
40
40
<artifactId >spring-boot-starter-data-jpa</artifactId >
41
41
</dependency >
42
+ <dependency >
43
+ <groupId >org.hibernate.validator</groupId >
44
+ <artifactId >hibernate-validator</artifactId >
45
+ </dependency >
42
46
<dependency >
43
47
<groupId >org.springframework.boot</groupId >
44
48
<artifactId >spring-boot-starter-web</artifactId >
194
198
<artifactId >slf4j-api</artifactId >
195
199
<version >1.7.30</version >
196
200
</dependency >
201
+ <dependency >
202
+ <groupId >junit</groupId >
203
+ <artifactId >junit</artifactId >
204
+ <version >4.13.2</version >
205
+ <scope >test</scope >
206
+ </dependency >
197
207
</dependencies >
198
208
199
209
<build >
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public void testFindAll() {
53
53
int size = 1 ;
54
54
// Sort sort = new Sort(Sort.Direction.DESC, "adddate");
55
55
// PageRequest pageRequest = new PageRequest(page-1, size, sort);
56
- PageRequest pageRequest = new PageRequest (page - 1 , size );
56
+ PageRequest pageRequest = PageRequest . of (page - 1 , size );
57
57
Page <User > users = userDao .findAll (pageRequest );
58
58
System .out .println ("query users:{}" + ToStringBuilder .reflectionToString (users ));
59
59
}
You can’t perform that action at this time.
0 commit comments