Category "spring-boot"

ECS Connecting to AWS Document DB with TLS Enabled

Currently, I am developing a Spring Boot Microservice and Trying to Deploy it over in Fargate using Cloud Formation. I am using packaging type as war and using

After update to spring boot 2.6.3 from 2.5.X hibernate does not work in some query syntax

someone could help me to solve this bug? i have update spring boot from 2.5.x to 2.6.3 and now the query like: @Query("select count(s.subjectId) from PreChe

How to translate GraphQL interfaces to the Java world with graphql-java-kickstart library using spring-boot

I'm quite new to GraphQL and I'm struggling with how to translate the concept of the GraphQL interface to proper java code that works with the graphql-java-kick

When I'm trying to run this query I keep getting this error and I could not figure out why

This is the DTO class public class InvoiceCountValueDto { private String ackNumber; @DateTimeFormat(pattern = "yyyy-MM-dd") @Temporal(TemporalType

KTOR Client and Spring Switchuser

I'm trying to implement a client for spring-security's SwitchUserFilter (server-side). As client I'm using KTOR (with OKHttp inside). SwitchUserFilter requires

SpringBoot Liquibase Oracle Junit test case execution fails

I have a SpringBoot application in which i use Liquibase to generate oracle schema and tables. When i run the application, it runs fine. But when i try to run t

Spring boot doesn't recognise react fetch body

Spring boot is not getting the params in the request body. The controller is defined like: @PostMapping("/login") public @ResponseBody User login(@Reque

Spring cloud gateway is unable to decode when deployed in the staging environment

I was recently tasked with upgrading a spring cloud app of ours due to the CVE-2022-22965 vulnerability. As part of that process, it became clear that the then

AWS SES bounce notification using springboot java

We are sending emails using AWS SES. I know how to configure notifications for bounces and complaints using SNS. Infact I have configured SNS to deliver those

Saving large files in h2 database

I recently updated the h2 database in my springboot project to 2.1.210. This induced some problems, most of them I was able to fix myself. The one that I can't

Spring boot calling SOAP web service

I am trying to call SOAP web service from Spring boot, but I am having an issue with it. I have auto generated classes from this WSDL with maven-jaxb2-plugin: &

How to resolve XSRF Cross-Site Request Forgery (CSRF) in API controller after SAST Checkmarx

I have done the scan my project java spring boot with Checkmarx tool. The tool found about 23 XSRF occurrences with Medium severity. The issue found is marked o

Database user shared across microservices [closed]

In my project there are 10 microservices. 3-4 APIs are required to pull data from same database but different table. Is it fine to use the sam

Springboot Authentication with 2 different Ldaps - How to show status of both Ldaps in Actuator /health

I was able to make my Springboot API authenticate against 2 different Ldaps (for example with AD and OpenLdap) and that is working fine. In order for Spring Act

Spring Data JPA (Postgres) - Insert into One table, reading the foreign key from a table that contains static data

I am currently working with Spring Data JPA, specifically Postgres. Our database is highly Normalized. In some scenarios we have some tables that contains stati

How to convert a JSON request into a list of specific format n spring?

I have a request JSON list like this: [ { Id: 0, values: [a, b, c, d] }, { Id: 1, values: [1, 2, 3, 4] }, . . . ] How do I convert this to a lis

java.lang.ClassNotFoundException: javax.sql.rowset.RowSetProvider

I'm running a Gradle project in Docker and when I try to hit an endpoint through Postman I receive the following error. When I run it locally through Gradle it

how to make grpc proto "timestamp" change to Date input format?

I want to make timestamp to convert to Date but I was expecting to input Date format ,"NOT" seconds and nano. How do change it to date format input? @GrpcSer

How to modify an existing PDF file contents in Java

I am using a Spring Boot application and I need to dynamically populate the blanks in an existing PDF using the values from the database. I have attached the im

SpringJPA convert DB2 Negative Numeric type in Positive number

I'm using Spring Boot with JPA and a Db2 database on an AS400 server. When I inspect the result of a SELECT statement using the debugger tool, the value stored