Azure AD with spring boot with user in local Database

Helo Here, I Hope you are doing well. I’s been few days I’m having this problem. I have a spring boot API using Azure AD authentication thanks to AADResourceServerWebSecurityConfigurerAdapter. Here is …

Conversion Error on LocalDate attribute when form-data request is sent to a Spring boot application

I send a form-data request from the Postman to a spring application. The LocalDate field in the Spring application as a text field from the form-data. I got a Conversion Error. @Column( name = &…

Issues with CORS preflight Spring/React, reading from authorized/admin endpoint

Im new to both Java (spring) and React and the most issues I seem to get is by the annoying CORS. I did have same CORS issues before and by looking online I found serveral solutions, but mainly the …

Is there a way to shorten boolean RequestParams in Spring Boot?

Thanks for all trying to help 🙂 Backround information: I use the spring framework version 2.4.3 together with Java (and Maven) To my question: Is it possible to shorten http://localhost:8080/api/v1/…

JPA duplicate entries on child when update parent several times

I am building the Rest API with Java, Spring Boot, Hibernate and JPA. I have 2 tables Users and Friends, where User will have an array of Friend. My client will send several update request on my User …

HTML5 video skips ranges after 32,768

I am exploring Http Range requests and video streaming with Java. I wanted to create a controller which streams a video to a tag. For some reason, after end range of 32768, the browser sends request …

Error parsing JSON (MismatchedInputException)

I’m having problems parsing JSON, this is the error: out of START_OBJECT token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `java….

How to ignore a method call inside a method that is being tested?

I am trying to make a test pass with mockmvc and it is failing with the following error message: Caused by: org.apache.kafka.common.config.ConfigException We have Kafka in our service layer as a …

How to log the number of available/used threads in a spring boot (tomcat) based application?

Is there a spring boot config where you can log the number of available/used threads the app server currently has?

Use value of a local variable as global in thymeleaf

I have a variable that is obtain inside each block in thymeleaf. I want to send that variable to a certain method in my controller. The limitation is that the variable is obtain inside a block which …