Skip to main content
0 votes
0 answers
10 views

Spring Boot App return a request body but don't set the Content-Type header

Is it possible to configure Spring Boot to not set the Content-Type header? I have a Spring Boot applictaion with a RestController that proxies requests to a legacy system. The legacy system returns ...
ceepan's user avatar
  • 87
-1 votes
0 answers
12 views

@GetMapping/@DeleteMapping Not Working with Cache Evict

My controller is giving 401 error while I am trying to use @GETMapping(path) public String(){ cacheEvc(); return "Hello"; } @CacheEvict(value) public void cacheEvc(){ Logger(); } This ...
Anurag mahajan's user avatar
0 votes
0 answers
8 views

spring mvc thymeleaf, populate more than one value with select option

Abstracted template code is <form action="#" th:action="@{/formPost}" th:object="${modelAttribute}" method="post"> <select th:onchange="this....
Gunnar's user avatar
  • 413
-1 votes
0 answers
19 views

Spring DI quesiton.which class is the guy that implements the ConnectionFactory interface [closed]

I was learning the spring guide about Messaging with RabbitMQ, then I was confused by the code below import org.springframework.amqp.rabbit.connection.ConnectionFactory; ... @Bean ...
solomneye's user avatar
0 votes
0 answers
10 views

PDAnnotationLink with image

Code snippet to add PDAnnotationLink final PDAnnotationLink txtLink = new PDAnnotationLink(); PDBorderStyleDictionary pdBorderStyle = new PDBorderStyleDictionary(); pdBorderStyle.setStyle(...
Shahid Ghafoor's user avatar
0 votes
0 answers
4 views

Spring @KafkaListener testcontainers

I ran into a problem when creating a test for a script with @KafkaListener. We need to test that we receive a message from Kafka to this particular Listener. Unfortunately, I did not fully understand ...
Guinnesss's user avatar
-1 votes
0 answers
19 views

Prevent DataIntegrityViolationException from containing sensitive details?

org.springframework.dao.DataIntegrityViolationException contains sensitive data, e.g.: could not execute statement [ERROR: null value in column "" of relation "" violates not-null ...
MatterOfFact's user avatar
  • 1,483
1 vote
1 answer
17 views

MapStruct: Mapping a source class with an object (with field UUID) to target with field UUID result in null

I have this Entity here: @Data @Entity @Table(name="transactions") public class Transaction { @Id @GeneratedValue(strategy = GenerationType.UUID) @Column(name = "...
fmassaretto's user avatar
0 votes
1 answer
31 views

Path on a deployed webapp

I have a problem when I deploy a Java webapp with springboot. My IDE is IntelliJ and i can build the webapp in the IDE for testing, and all works fine but when i deploy it on a tomcat in docker-...
Mariano Fernández Rodero's user avatar
0 votes
1 answer
16 views

Spring AOP @Before and @After Not Triggering for Method Execution in Simple Java Application

Java Classes 1. Example17.java package com.example.controller; import com.example.config.ProjectConfig; import com.example.service.PaymentServiceImpl; import org.springframework.context.annotation....
Shubham Jadhav's user avatar
0 votes
0 answers
8 views

Spring JPA: Missed commits during multithreading

This is the flow of my program: void foo() { for n times: bar(); } @Async void bar(){ // try exeucting baz 3 times, with 2 seconds interval. RetryTemplate.execute(baz(), ..) } @...
ethereal's user avatar
0 votes
0 answers
11 views

Why Custom Context is not propagating to StreamingResponseBody thread?

I have read the Async Instrumentation doc and have configured AsyncConfig like below @Configuration public class WebConfigurerConfiguaration { @Configuration(proxyBeanMethods = false) @...
tuk's user avatar
  • 6,559
0 votes
0 answers
11 views

Getting this exception in Redisson Client

I was monitoring my server and saw these logs repeatedly and I cannot understand the cause of this.l It is only a warn log but what might be causing it? 2024-08-29 16:54:54.851 [redisson-timer-3-1] ...
Raj Aryan's user avatar
0 votes
0 answers
20 views

Access denied error after upgrading to spring boot 3

We recently migrated our app spring boot 3 /http5 and see the error , rror="access_denied", error_description="Error requesting access token." I am able to hit the base url of our ...
stackuser's user avatar
  • 4,161
2 votes
0 answers
21 views

Handle Collector failures when using Opentelemetry in Java

I am trying to set up Open Telemetry in Spring Boot 3.2 application. I am using Micrometer + otel bridge to implement it. One issue i have noticed when testing the implementation is that if the ...
Simas Joneliunas's user avatar

15 30 50 per page
1
2 3 4 5
14132