Skip to content

Tag: spring-boot

Find date inside each month

In my project, in the repository, this select finds the nearest date with a currency id that is less than or equal to the date whose range I set. How can I find a date in each month that is greater than or equal to the date I want to bind, but with the condition that this date must be

How to check the user’s verification code?

I am very new to Spring Boot. This is what I want to do: The user’s email is test@example.com. That user already exists in my database, but I would like to know if their verificationCode is 123. Entity: So with userRepository.findByEmail(“test@example.com”) I am getting the correct user, but…

Mapping multiple DTO to entities – nested exception

I’m trying to map DTOs to entities. I created a service that only takes care of mapping objects – ObjectMapper. DTO objects have relationships with each other. When I map a single object, for example when I create User, Group, Note, everything works. But when I want to use a method that returns a …