150,860 questions
0
votes
0
answers
23
views
Spring Boot Actuator 'http.server.requests' metric MIN time
The actuator endpoint /actuator/metrics/http.server.requests can exhibit this informations:
{
"name": "http.server.requests",
"baseUnit": "seconds",
"...
1
vote
1
answer
28
views
No qualifying bean of type 'org.springframework.boot.web.server.test.client.TestRestTemplate' available
I'm trying to test my @RestController, but it doesn't work, giving me the error
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'studio.abos.springcalc....
0
votes
0
answers
37
views
How to refer to a specific instance of a class in yaml configuration using ConfigurationProperties for POJOs with Lists [duplicate]
I am trying to map a yaml configuration file to a complex schema of classes with relationships between the classes in order to build an API that can be highly configurable based on a yaml config file....
0
votes
0
answers
48
views
While updating org.springframework.boot:spring-boot from 2.6.6 to 3.4.8, getting "java.lang.IllegalStateException"
I am newbie in Java Development , Getting below error while trying to update org.springframework.boot:spring-boot from 2.6.6 to 3.4.8
java.lang.IllegalStateException: The following classes could not ...
-3
votes
0
answers
55
views
Why are all lazy associations serialized in my JSON response even when I never access them? [duplicate]
I’m working on a Spring Boot project with JPA/Hibernate. I have an entity Product that looks like this:
@Entity
@Table(name = "PRODUCTS")
@AttributeOverride(name = "id", column = @...
0
votes
1
answer
87
views
403 Forbidden returned in spring boot
I have a spring boot application that uses rest to communicate with clients, this application has 2 types of users: visitors and employees.
These 2 users have different authentication methods but they ...
0
votes
1
answer
17
views
SpringBoot and Debezium embedded: Unable to find class io.debezium.connector.postgresql.PostgresSourceInfoStructMaker
I deployed a SpringBoot app (3.4.5) containing an embedded Debezium engine (3.2.1.Final) to a remote Linux server (Ubuntu, Java 21.0.7+6).
But in the log I see the Debezium engine failing to start, ...
0
votes
0
answers
21
views
Spring Boot session not saving to SPRING_SESSION table
Spring seems to be creating a session, and saving my session variable in memory. But when I check the SPRING_SESSION (and SPRING_SESSION_ATTRIBUTES) table(s), there is never an entry.
pom.xml ...
0
votes
0
answers
51
views
Kafka AckMode COUNT_TIME Behavior
We are using Springboot Kafkalistner annotation to listen to a Kafka topic. In the consumer config, i have set ack mode to COUNT_TIME with the ackCount at 2000 and ackTime to 1 minute and the listener ...
2
votes
2
answers
71
views
SpringBootTest context with mapstruct.Mapper bean
I'm working in an application where I need to map some input to an entity class and I'm using mapstruct like this:
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct....
0
votes
1
answer
40
views
Spring Boot Image Build verification before publish
We're using Spring Boot with Gradle and using the bootBuildImage to build and push images
We want to do some additional verification on the image before pushing it, e.g. eol scans, trivy etc...
If I ...
1
vote
1
answer
110
views
Direct memory is not released when downloading files
I have encountered a memory management problem in a Spring Boot application, and would like to get advice on how to properly clean up direct memory.
Configuration:
JDK: OpenJDK Runtime Environment (...
-1
votes
0
answers
52
views
Cucumber tests won't run because bean can't be found
I'm trying to run Cucumber tests but they fail with this error:
Description:
Field metricOnlyLogger in my.application.controller.support.ExceptionHandlerControllerAdvice required a bean of type 'my....
-3
votes
0
answers
70
views
Spring Boot (Java 17) on Tomcat: Memory keeps increasing with hot deployments (JVM uptime 155 days, heap piling up) [closed]
I have a Spring Boot project (Java 17) deployed on multiple servers (DEV, STAGE, DEMO, PROD). Each server has its own EC2 instance.
Currently, we are doing hot deployments via Jenkins builds (meaning ...
0
votes
0
answers
57
views
RabbitMQ error connection in Spring Application - getsockotp
I’m building a Spring Boot application that uses RabbitMQ.
Here is my current setup:
application.properties
spring.rabbitmq.host=localhost
spring.rabbitmq.port=5672
spring.rabbitmq.username=guest
...