Category "spring-boot"

Proxy setting not working with Spring WebClient

My following WebClient is working fine with internet connection but not through our proxy connection. WebClient webClient = WebClient.builder() .baseUr

ObjectMapper enable method is deprecated

I'm upgrading the version of my project and I am currently using jackson-databind-2.13.0 .But I noticed that ObjectMapper's enable method is deprecated. They sa

Cannot run container that build from azure pipeline with Spring boot

I tried to run a container that build from azure pipeline and I have encountered with this error below. I run it on local and it works just fine and the pipelin

Spring-boot default profile for integration tests

Spring-boot utilizes Spring profiles which allow for instance to have separate config for different environments. One way I use this feature is to configure tes

Spring-boot default profile for integration tests

Spring-boot utilizes Spring profiles which allow for instance to have separate config for different environments. One way I use this feature is to configure tes

How can I add a filter class in Spring Boot?

Is there any annotation for a Filter class (for web applications) in Spring Boot? Perhaps @Filter? I want to add a custom filter in my project. The Spring Boot

Current request is not a multipart request-When i send form data and an object in angular to spring boot

I'm sending a custom Object and formData to Spring boot from angular but an error is thrown -"Current request is not a multipart request". when i do this every

How to allow CrossOrigin from all domains?

Is there anyway to make this end point allow request from anywhere? I've tried like but none of them worked. @CrossOrigin(origins = "") @CrossOrigin(orig

How to set a button onclick event and link to Thymeleaf controller?

I am trying to write some code where, once the user clicks a button, it will do some set of code in my Thymeleaf controller class. I tried looking on other vari

Error running Spring boot quickstart project

I am configuring a basic spring boot program as mentioned on its website, but I am getting the following error : C:\Users\destin\OneDrive\Documents\jdk-11.0.10

NoSuchFileException while running docker image,

I'm new to docker and AWS. I am trying to connect with AWS keyspaces using truststore certificate(cassandra_truststore.jks), I kept the certificate in project r

Need a direct way of implementing Azure spring data cosmos db query implementation for a nested parameter

Say for example an object in cosmosDb looks like this:- {   att1: val1,   att2: val2,   att3: {   att4: val4,   att5: val5  

Getting java.lang.NoSuchMethodError: org.yaml.snakeyaml.Yaml.<init> while running spark based spring boot application

SnakeYaml jar present at classPath: snakeyaml-1.26.jar 2330 [main] ERROR org.springframework.boot.SpringApplication - Application run failed java.lang.NoSuchMe

How to read geography values using hibernate?

In my spring boot application, I am trying to store spatial data using spring data with hibernate (jpa). Full source code of minimal reproducing example is avai

AuthenticationSuccessEvent never fired

I writing app where user logs in using facebook. My security config/application class: @SpringBootApplication @EnableOAuth2Sso @ComponentScan(basePackages = {

JdbcBatchItemWriter - setSql - How to fix timestamp type mismatch

I am using JdbcBatchItemWriter in my Springboot application to import data from a CSV file into an Oracle DB, but I’m not able to import in timestamps. I

How to set default current date in jpa for mysql

I am trying to generate current date automatically but getting this error You have an error in your SQL syntax; check the manual that corresponds to your MySQL

How to configure hikari pool for eager initialization?

I want to configure the Hikari pool to eagerly initialize on application startup and not when first query is issued. As of now spring initializr project shows

Custom HealthIndicator not invoked during startup

I implemented a custom HealthIndicator for our application, which is working fine. I noticed that when I run the application through my IDE (tested with both I

Postman returns null when using POST (Spring Boot)

** Update Updated the input in Postman: { "firstName": "Thierry", "lastName": "Blossom", "dateOfBirth": "1981-01-20", "email": "thierry@gmai