Relative Content

Tag Archive for spring-boot

Cannot delete a temp file after spring boot update with 3.1.2 version in windows Server

We are currently facing issue in spring boot application with file upload with multipart in windows Server like” java.io.unchecked exception :Error : cannot delete temp file c://user/AppData/local/temp/tomcat.port.uuid/root/xxx.tmp ” . The recent changes we have done with spring boot update to 3.1.2 with jdk17 version. After that we are getting error. Can anyone suggest on this?

Spring Boot Controller Unit Test Strategy

All of the controllers in our project are as dumb as we can make them. Rightfully so, they simply validate the incoming payload, hand the request over to a service layer, and return whatever response is necessary; http status code, json, etc. I’m trying to see if I can trim down the number of tests we’re writing so that I can make sure we’re covering our code but not writing waste.

Language change from DE to EN is not working

I have implemented a language change in my project but it won’t work. In fact the varibles in the messages.properties are grey. And the Thymeleaf implementation in the index says, that there is nothing to go to: