Category "spring-boot"

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

Refused to apply style because its MIME type ('application/json') is not a supported stylesheet MIME type, and strict MIME checking is enabled

I added swagger-ui to my spring-boot service application and I've got some error like that when visiting the /swagger-ui/ link. Error in browser console please

How to access file in Spring Boot Cloud Config from another branch

When connecting to a git-configured spring boot cloud config server, how do you reference a different branch? Currently I can access a subfolder's data by doing

No ServletContext set error while Autowiring AuthenticationManager in WsConfigurerAdapter

I have spring boot application which is using 'spring-boot-starter-security', 'spring-ws-security', 'spring-boot-starter-web-services' I am facing below error w

No property named "Id" exists in source parameter(s). Did you mean "null"?

I'm kind of stuck in below error Post.class @Data @Getter @Setter @Entity @Table(name = "posts", uniqueConstraints = { @UniqueConstraint(columnNames = { "title"

JPA Specification, using like againt List<String>

I'm having a problem to use like on List field. Entity class: @Entity public class ToSearch{ @Convert(converter = CollectionConverter.class) private Li

Changing x-axis in grafana graph to custom time series sent as label of gauge

I am working on a project in java using spring boot that requires working on prometheus and grafana. To send data to prometheus end-point, I am using "gauge" ha

javax.net.ssl.SSLException: SSLEngine closed already SSLEngine closed already in webclient (Springboot)

I am using webclient in springboot application to call a external restful webservice. getting this exception intermittently. javax.net.ssl.SSLException: SSLEngi

Spring boot r2dbc and jdbc Liquibase does not update on application start

I want my application to use r2dbc drive when running and jdbc to handle the database with Liquibase. I have this as a reference. It is possible by adding the c

In Gateway Zuul Filters, how to modify the ContentType of an API request

My requirement is to receive an encrypted request of content-type text/plain. Using the zuul pre filter I will have to decrypt the request and forward the decry

Can't use WebSecurityConfigurerAdapter in a custom spring boot starter

I'm trying to create my own spring boot starter for my custom security configuration (LDAP + JWT) via defining configuration class which extends from WebSecurit

Spring Boot Azure Multiple HttpSecurity

Is it possible to mix two authentication modes? Internal user: Azure ad External user: form authentication So far I have this: @EnableWebSecurity @EnableGlobalM

Gradle Build Takes Error But Application Runs Properly

In my project, i use basically microservice architecture, spring boot, spring cloud and gradle etc. When i tried to Gradle build, it takes error but when i trie