Skip to content

Commit

Permalink
update spring boot 3.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
vnobo committed Dec 25, 2023
1 parent 3f5d0e1 commit 77aa2c7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public Mono<Page<UserResponse>> page(UserRequest request, Pageable pageable) {

public Mono<User> loadByCode(String code) {
var userMono = this.usersRepository.findByCode(code).flux();
return queryWithCache(code, userMono).next();
return queryWithCache(code, userMono).singleOrEmpty();
}

public Mono<User> add(UserRequest request) {
Expand Down
2 changes: 1 addition & 1 deletion boot/platform/src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spring:
max-validation-time: 10s
validation-query: "select version()"
sql.init:
mode: always
mode: never
platform: postgres
encoding: utf-8
data.redis:
Expand Down
12 changes: 6 additions & 6 deletions boot/platform/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ spring:
#main.keep-alive: true
application.name: plate
webflux.format:
time: HH:mm:ss
date-time: yyyy-MM-dd HH:mm:ss
date: yyyy-MM-dd
time: "HH:mm:ss"
date-time: "yyyy-MM-dd HH:mm:ss"
date: "yyyy-MM-dd"
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
locale: zh_CN
date-format: "yyyy-MM-dd HH:mm:ss"
time-zone: "GMT+8"
locale: "zh_CN"
codec:
max-in-memory-size: 2MB
log-request-details: false
Expand Down

0 comments on commit 77aa2c7

Please sign in to comment.