Skip to content

Commit 7e07f1a

Browse files
committed
update spring-boot to 2.3.12.RELEASE
1 parent 8953af1 commit 7e07f1a

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

pom.xml

+11-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
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

@@ -39,6 +39,10 @@
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>
@@ -194,6 +198,12 @@
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>

src/test/java/cn/netbuffer/SpringBootBootstrapTableApplicationTests.java

+1-1
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)