Skip to main content
1 vote
0 answers
169 views

I made a custom SPI for Keycloak(that is running in a docker container, https://hub.docker.com/r/bitnami/keycloak) and implemented the RealmResourceProvider interface. I wrote a custom endpoint and ...
Dinu Nicolae's user avatar
  • 1,331
3 votes
1 answer
152 views

In some cases, ChronoUnit.MONTHS perform math on dates inconsistently depending if we add or subtract. Corner case is when we e.g. add 1 month to a date 2023-01-31. I understand there is no single, ...
broot's user avatar
  • 28.9k
1 vote
1 answer
1k views

I am upgrading my spring boot application to spring boot 2.7.8 and Java 11. I getting different rest response of ZonedDateTime object after upgrade. My request contain "2023-06-23T18:13:06.630Z[...
Ranjit Meher's user avatar
0 votes
1 answer
99 views

I would like to verify if my understanding of JSR310 classes use-cases are correct, below a diagram with classes, and how i see them fit: Database (UTC) || \/ OffsetDateTime (...
dotmindlabs's user avatar
2 votes
0 answers
886 views

I have a simple PostgreSQL table: CREATE TABLE public.test_entity ( id int8 NOT NULL, title varchar NOT NULL, created_at date NOT NULL, CONSTRAINT test_entity_pkey PRIMARY KEY (id) ); ...
Anatoliy Golubev's user avatar
0 votes
1 answer
663 views

Im using jackson-datatype-jsr310 module, which supports LocalDateTime serialization. but by default, it serializes date/time as "[2022,6,29,17,15,54]". But I need to override this behaviour ...
Victor Mikhailov's user avatar
-2 votes
1 answer
1k views

Please help to change date format. **Source** json file **Target** Employee Object I need support for converting file json date to Object. from file { "dateOfBirth": { "year"...
GoutamS's user avatar
  • 3,763
15 votes
1 answer
28k views

I have added the JavaTimeModule but still not able to get OffsetDateTime working on getting some data from RethinkDB @Configuration public class JacksonOffsetDateTimeMapper{ @Bean @Primary public ...
Nderim Bytyqi's user avatar
0 votes
1 answer
2k views

I found that the annotation @Cacheable cannot work when the method returns a Java Bean type, this is the complete description: I annotated @Cacheable on a method to use spring cache: @Cacheable(...
when can we play ORI3's user avatar
1 vote
1 answer
10k views

I am using Java Spring-boot RestController. I have a sample GET API in which I am sending LocalDateTime.now() in response body. I have customised the Jackson ObjectMapper to register jackson-datatype-...
Muhammad Ahmed Bappi's user avatar
1 vote
3 answers
3k views

Given a LocalDateTime object in Java. How do I set the time for this to 00:00:00 ? One way is to create a new LocalDateTime object with the same date as this one and set it to 0. Is there another way ...
joseph's user avatar
  • 157
0 votes
2 answers
2k views

I want to define columns in SQL Server in order for Mybatis Generator to generate java.time.Instant or java.time.OffsetDateTime. According to Mybatis Generator Core, columns with type ...
usr-local-ΕΨΗΕΛΩΝ's user avatar
2 votes
1 answer
3k views

I'm having an issue with the jackson jsr310 datatype using version > 2.12.0, while this works perfectly with version 2.11.4. This is my POJO: import java.time.OffsetDateTime; public class Pojo { ...
Sven Erik van t Veer's user avatar
8 votes
3 answers
6k views

LocalDate in Java has two similar methods equals and isEqual. What's the difference between them? When do they output different results?
AlexElin's user avatar
  • 1,799
2 votes
1 answer
325 views

I need to validate LocalDate fields in json requests. What i want is to prevent deserializing numbers as miilis to LocalDate. Here is example: I have an entity: public class Test { @NotNull @...
Nikita's user avatar
  • 35

15 30 50 per page
1
2 3 4 5
8