Questions tagged [spring-boot-2]

111 questions
0
votes
2 answers

Missorted modifiers on annotations since moving to spring boot 2

I migrated my project from Spring boot 1.5 to Spring boot 2. After doing so I have an Missorted modifiers @NotNull private on every field implementing the @NotNull annotation (from javax.validation.constraints.*. This warning disappears when…
0
votes
1 answer

After docker-compose build language switching does not work

After adding my application in docker container, language switching does not work correctly ... I found out that switching partially works. Objects that are taken from the database are displayed in the desired language. And the text that is taken…
0
votes
1 answer

Spring boot2 complains about CircuitBreakerConfigurationOnMissingBean

I've spring boot application running on spring boot version 2.0.6. I added resilience4j to have circuit breaker feature, but application complains about CircuitBreakerConfigurationOnMissingBean. Caused by: java.lang.IllegalStateException: Failed to…
-1
votes
1 answer

How to response custom json body on unauthorized requests while implementing custom authentication manager in webflux

I was trying to implement custom JWT token authentication while i am also handling global exceptions to customize response body for each type of exceptions. Everything is working fine except I would like to return custom json response when an…
-1
votes
1 answer

web.cors.allowed-origins in application.properties isn't allowing the CORS for specific urls

I'm trying to enable the CORS throughout the app for "http://localhost/4200". Since I'm using Springboot 2 and accord. to its docs, I just have to add this property in application.properties file:…
Abrar A.
  • 113
  • 3
  • 11
-2
votes
1 answer

How do I format a Date as a Timestamp in Springboot 2?

Spring boot 2 has made UTC format the default for dates when serializing objects as json. This broke several of our old integrations that relied on the date being a timestamp. How do I selectively restore this functionality to the responses that…
Taugenichts
  • 1,307
  • 12
  • 19
1 2 3 4 5 6 7
8