Skip to main content
Filter by
Sorted by
Tagged with
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", "...
Figurinha's user avatar
  • 111
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....
SK19's user avatar
  • 201
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....
Walter Carlson's user avatar
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 ...
Pulkit Agrawal's user avatar
-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 = @...
Paúl Sebastian's user avatar
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 ...
hamdi's user avatar
  • 3
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, ...
Belizarius007's user avatar
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 ...
snowmanjack's user avatar
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 ...
sg2000's user avatar
  • 191
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....
Alvaro Pedraza's user avatar
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 ...
maxb's user avatar
  • 494
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 (...
Dimon_yarik's user avatar
-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....
runnerpaul's user avatar
  • 7,510
-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 ...
vivek's user avatar
  • 11
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 ...
tnw's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
10058