Category "spring-boot"

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

rabbitMQ sender with node-red

I am trying to connect node-red with rabbitMQ. The program will recive a text with the diet that the AI chose for each day. I made the rabbitMQ Configure java f

Exception Handling for async WebClient request

Recently I have been working with WebClient. I am creating both a sync request and an async request. In a sync request, I am able to catch WebClientResponseExce

Problem with @ModelAttribute while sending POST method with multipart/form-data

I'm experiencing trouble with multipart data for a reason I don't understand. I can't deserialize a Map. Below is the Controller: @Override @PostMapping

Spring drastically slows down score evaluation speed of Optaplanner solver

I have a following piece of code @SpringBootApplication public class ServerApplication { public static void main(String[] args) { SpringApplication.

JWT token does not start with Bearer

i cant find a way to add the Bearer and on the localhost:8080 I get this This application has no explicit mapping for /error, so you are seeing this as a fallb