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 1818 <parent >
1919 <groupId >org.springframework.boot</groupId >
2020 <artifactId >spring-boot-starter-parent</artifactId >
21- <version >2.1.13 .RELEASE</version >
21+ <version >2.3.12 .RELEASE</version >
2222 <relativePath /> <!-- lookup parent from repository -->
2323 </parent >
2424
3939 <groupId >org.springframework.boot</groupId >
4040 <artifactId >spring-boot-starter-data-jpa</artifactId >
4141 </dependency >
42+ <dependency >
43+ <groupId >org.hibernate.validator</groupId >
44+ <artifactId >hibernate-validator</artifactId >
45+ </dependency >
4246 <dependency >
4347 <groupId >org.springframework.boot</groupId >
4448 <artifactId >spring-boot-starter-web</artifactId >
194198 <artifactId >slf4j-api</artifactId >
195199 <version >1.7.30</version >
196200 </dependency >
201+ <dependency >
202+ <groupId >junit</groupId >
203+ <artifactId >junit</artifactId >
204+ <version >4.13.2</version >
205+ <scope >test</scope >
206+ </dependency >
197207 </dependencies >
198208
199209 <build >
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public void testFindAll() {
5353 int size = 1 ;
5454// Sort sort = new Sort(Sort.Direction.DESC, "adddate");
5555// PageRequest pageRequest = new PageRequest(page-1, size, sort);
56- PageRequest pageRequest = new PageRequest (page - 1 , size );
56+ PageRequest pageRequest = PageRequest . of (page - 1 , size );
5757 Page <User > users = userDao .findAll (pageRequest );
5858 System .out .println ("query users:{}" + ToStringBuilder .reflectionToString (users ));
5959 }
You can’t perform that action at this time.
0 commit comments