Update to Spring Boot 2.5

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

View File

@@ -153,4 +153,9 @@ public class OffsetPageRequest implements Pageable, Serializable {
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
#auto schema update will case sqlite error
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 ##########
#spring.datasource.driver-class-name=org.mariadb.jdbc.Driver
#spring.datasource.username=