Update to Spring Boot 2.5

pull/1/head
Dom Eori 2021-08-18 11:40:15 +09:00
parent 1ac7b82d71
commit 2f648aea19
3 changed files with 12 additions and 7 deletions

12
pom.xml
View File

@ -5,7 +5,7 @@
<parent> <parent>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId> <artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.2.RELEASE</version> <version>2.5.3</version>
<relativePath/> <!-- lookup parent from repository --> <relativePath/> <!-- lookup parent from repository -->
</parent> </parent>
<groupId>icu.samnya</groupId> <groupId>icu.samnya</groupId>
@ -46,14 +46,14 @@
<dependency> <dependency>
<groupId>io.netty</groupId> <groupId>io.netty</groupId>
<artifactId>netty-all</artifactId> <artifactId>netty-all</artifactId>
<version>4.1.43.Final</version> <version>4.1.66.Final</version>
</dependency> </dependency>
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 --> <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
<dependency> <dependency>
<groupId>org.apache.commons</groupId> <groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId> <artifactId>commons-lang3</artifactId>
<version>3.9</version> <version>3.12.0</version>
</dependency> </dependency>
<!-- https://mvnrepository.com/artifact/commons-fileupload/commons-fileupload --> <!-- https://mvnrepository.com/artifact/commons-fileupload/commons-fileupload -->
@ -66,18 +66,18 @@
<dependency> <dependency>
<groupId>org.xerial</groupId> <groupId>org.xerial</groupId>
<artifactId>sqlite-jdbc</artifactId> <artifactId>sqlite-jdbc</artifactId>
<version>3.30.1</version> <version>3.36.0.1</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.github.gwenn</groupId> <groupId>com.github.gwenn</groupId>
<artifactId>sqlite-dialect</artifactId> <artifactId>sqlite-dialect</artifactId>
<version>0.1.0</version> <version>0.1.2</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.flywaydb</groupId> <groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId> <artifactId>flyway-core</artifactId>
<version>6.1.4</version> <version>7.7.3</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.mariadb.jdbc</groupId> <groupId>org.mariadb.jdbc</groupId>

View File

@ -153,4 +153,9 @@ public class OffsetPageRequest implements Pageable, Serializable {
return this.offset == other.offset && this.limit == other.limit; return this.offset == other.offset && this.limit == other.limit;
} }
@Override
public Pageable withPage(int pageNumber) {
return new OffsetPageRequest(pageNumber, getPageSize(), getSort());
}
} }

View File

@ -27,7 +27,7 @@ spring.datasource.url=jdbc:sqlite:data/db.sqlite
spring.datasource.hikari.maximum-pool-size=1 spring.datasource.hikari.maximum-pool-size=1
#auto schema update will case sqlite error #auto schema update will case sqlite error
spring.jpa.hibernate.ddl-auto=none spring.jpa.hibernate.ddl-auto=none
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.SQLiteDialect spring.jpa.properties.hibernate.dialect=org.sqlite.hibernate.dialect.SQLiteDialect
########## For Mysql ########## ########## For Mysql ##########
#spring.datasource.driver-class-name=org.mariadb.jdbc.Driver #spring.datasource.driver-class-name=org.mariadb.jdbc.Driver
#spring.datasource.username= #spring.datasource.username=