Relative Content

Tag Archive for javaspring-boot

Flux concat is not working after spring upgrade to 3.2.3

”’
return Flux.concat(lookupSmsTemplate.transferTo(lookupSmsTemplateFile),lookupSMSVariables.transferTo(lookupSMSVariablesFile))
.then(importService.previewSmsTemplateImport(clientId,
spaceKey,
new FileSystemResource(lookupSmsTemplateFile),
new FileSystemResource(lookupSMSVariablesFile)))
.map(mapper::map)
.doFinally($ -> FileUtils.deleteQuietly(lookupSmsTemplateFile.toFile()))
.doFinally($ -> FileUtils.deleteQuietly(lookupSMSVariablesFile.toFile()));
”’

how is Time formatting done in a Java 8 vs 17 app

I am noticing an interesting case. Old app is in java 8 and uses javax.ws.rs for rest apis. New app is in Java 17 and uses Spring Boot. Rest all is unchanged. We have a variable in a class of java util Date type say receivedDate. Now when we send say “25-01-2017” from postman, in old app it comes as wed Jan 25 00:00:00.0 IST 2017 in old but in new it comes as wed Jan 25 05:30:00.0 IST 2017

SpringBoot application graceful shutdown

I would like to gracefully shut down a SpringBoot application.
The application has multiple ThreadPools and does async processing.
It is connected to the DB and a message bus.