Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
23 views

We are using Spring Kafka to consume from Kafka and produce back to Kafka. Producer side: - Fire-and-forget - Infinite retries - Timeout configured to 1 hour Consumer side: - Ack mode: MANUAL - Sync ...
Riddhik_debugger's user avatar
0 votes
1 answer
101 views

I recently migrated my application from Spring Boot 2 with Hibernate 5 to Spring Boot 3 with Hibernate 6 in a testing environment. Since the migration, I encounter issues during high load (overload ...
i.fayza's user avatar
  • 21
1 vote
1 answer
90 views

I have a native query that takes 4 (optional) parameters for filtering. 4 is a bit too many for readability, so I was looking into replacing it with an object. I encountered two separate problems ...
András Ballai's user avatar
2 votes
2 answers
101 views

I'm implementing authentication using Spring Security with JWT. My login and register endpoints were working correctly before adding JWT. However, after implementing JWT and adding the security filter,...
Gustavo's user avatar
  • 21
Best practices
2 votes
5 replies
131 views

I`m big fan of board games, and when professor ask what I want to write as a diploma, I make decision fast - service for online board games. Now I have some questions, which I don't know how to ...
Саша Порохня's user avatar
1 vote
0 answers
115 views

I am trying to persist a JsonNode field into a PostgreSQL jsonb column using Spring Boot 4 (Hibernate 7). Entity import tools.jackson.databind.JsonNode; import jakarta.persistence.*; import org....
lain2lo's user avatar
  • 131
Best practices
0 votes
2 replies
63 views

I have a question about Infinispan when its being used with Hibernate as a second level cache, while also being used as a regular cache with Spring. Specifically, I have an Spring 7 application and I ...
dali's user avatar
  • 62
-2 votes
0 answers
63 views

I'm generating a PDF using OpenHTMLToPDF (PdfRendererBuilder) in a Spring Boot app, and my custom fonts (ttf) are not being applied. What am I missing for OpenHTMLToPDF to properly apply custom TTF ...
user2342348's user avatar
Best practices
1 vote
3 replies
127 views

In both Spring and Angular, there are two common ways to inject dependencies: Constructor injection Field-style injection (@Autowired in Spring, inject() in Angular) In Spring, constructor injection ...
ATW's user avatar
  • 289
1 vote
1 answer
121 views

A RestClient needs to communicate with HTTPS to a host with self-signed TLS certificate. I have seen a similar question here on StackOverflow, Disabling SSL Certificate Validation in Spring ...
jogerj's user avatar
  • 180
1 vote
1 answer
134 views

so I've been following this tutorial to build a small website: https://medium.com/@alexandre.therrien3/java-spring-tutorial-the-only-tutorial-you-will-need-to-get-started-vs-code-13413e661db5 I used ...
Arcturus's user avatar
Best practices
0 votes
0 replies
78 views

We have noticed that the following Tomcat session metrics are no longer being tracked after adding the org.springframework.session:spring-session-data-redis dependency : ...
user32570680's user avatar
Best practices
3 votes
1 replies
70 views

I recently started using jOOQ, and I absolutely love it. I really appreciate how intuitive it is writing jOOQ code feels exactly like writing raw MySQL However, as a beginner, I’m struggling to find ...
qwervcxz999's user avatar
Advice
0 votes
2 replies
95 views

I am using a Telegram bot in a Spring Boot application and I want to automate messaging for my system users. Is it possible to: Automatically create a group chat for each user using a Telegram bot ...
Leo Dumangas's user avatar
1 vote
1 answer
51 views

I am building a company-specific Spring Boot autoconfiguration. The code looks something like this: @AutoConfiguration @AutoConfigureBefore(SecurityAutoConfiguration.class) @...
Wim Deblauwe's user avatar
  • 27.3k
0 votes
1 answer
66 views

I have a Spring Boot REST API written in Kotlin using Keycloak with Spring Security for authentication and authorization. I want to expose one endpoint publicly but protect it with Cloudflare ...
JailBreaker's user avatar
1 vote
0 answers
122 views

Since your ad-hoc deserializers are instantiated reflectively by Jackson, does it mean your custom deserializers can't do the "dependency injection" thing, declare dependencies in its ...
Sergey Zolotarev's user avatar
-1 votes
0 answers
149 views

Related: Flaky external API, unresponsive owner Is there an elegant way to make it more flexible so that a Date is successfully parsed regardless of whether it's yyyy-MM-dd hh:mm:ss or yyyy-MM-dd? ...
Sergey Zolotarev's user avatar
1 vote
1 answer
56 views

Given is a Spring Boot application.yml file. host: example.com unc-path: \\${host}\share If unc-path is printed, the output is \${host}\share. I expect the placeholder ${host} to be resolved. The ...
user1056903's user avatar
0 votes
2 answers
137 views

I am learning SpringBoot and I'm making an application that need to connect to a Springboot API. I don't have problem when running my API locally, but when I use Docker it fails to find the database. ...
Gwendal Ars's user avatar
2 votes
1 answer
110 views

'org.springframework.boot' version '3.3.13' I have a simple Task framework. public class TaskRunner implements DelayedTaskRunner { private static final String TASK_WORKER_THREAD_NAME_PATTERN = &...
Topa's user avatar
  • 21
0 votes
0 answers
100 views

I am developing a BFF (Backend For Frontend) service using Spring. For authentication, I am using an Identity Provider (Keycloak for local development). I am using the Authorization Code Flow via the ...
leroro99's user avatar
0 votes
1 answer
132 views

I am migrating a Spring Boot 3.2 application from a custom Auth server to Keycloak. In my previous setup, I used a flat list of roles in the JWT. However, Keycloak nests roles inside a realm_access ...
Max's user avatar
  • 1
Advice
1 vote
0 replies
104 views

I am developing a bot using this library since last year. Now i am interested in using colored buttons from recent update, but i noticed that telegrambots library hasn't been updated since February ...
Matthew's user avatar
0 votes
0 answers
122 views

I am working on a project with multiple Spring Boot projects. I have a one "common" project that is a dependency used by other projects. Inside that common project, I have created an @...
C.S.'s user avatar
  • 181
Advice
0 votes
2 replies
94 views

Is Spring framework 6.x compatible with Spring Security 7.x? I need to upgrade a servlet-based web application to the latest version of Spring Security, but due to some dependency limitations I can't ...
capibara245's user avatar
Advice
0 votes
0 replies
37 views

need to read an entity check some condition modify the entity, if ok how to be sure the condition still valid when 3rd point started? @Transactional(isolation = RepeatableRead) // 1) is ...
J.J. Beam's user avatar
  • 3,263
0 votes
1 answer
68 views

In Spring-Grpc, I can configure clients declared as a beans to use named channels: @Bean MyServiceGrpc.SimpleBlockingStub stub(GrpcChannelFactory channels) { return MyServiceGrpc.newBlockingStub(...
whistling_marmot's user avatar
0 votes
0 answers
90 views

I'm trying to populate a dropdown of patient names from a list of strings within my controller. For some reason the dropdown is blank. I've read through several other articles that are similar to my ...
noobs 's user avatar
  • 11
-1 votes
0 answers
59 views

Recently, I have been trying to migrate spring 5 to 6 where javax.cache into Jakarta.cache; however, maven dependency is not downloading. If I search for this dependency then maven central is not able ...
Indhumathi Rajasekaran's user avatar
Best practices
0 votes
1 replies
90 views

I was having a discussion, where one dev-A said that linkTo should be linked directly in the controller (links that point to the controller itself), the others in the assembler, and dev-B said that he ...
Michel Oliveira's user avatar
-1 votes
0 answers
126 views

I am building a RAG (Retrieval-Augmented Generation) pipeline using Spring Boot 3.5, Spring AI 1.1, and pgvector. I am using Java 21 virtual threads to speed up the document ingestion process. When I ...
Max's user avatar
  • 1
2 votes
0 answers
118 views

Although, I don't use anotation @EnableBatchProcessing, but my application not use config of spring batch in file application.yml to create schema of metadata's spring batch. How can I fix it? The ...
Duy Phạm's user avatar
3 votes
0 answers
109 views

I'm trying to add support for @ConfigurationProperties records to use Guava's immutable types directly. I already have ImmutableSet and ImmutableList working via a Converter<List<?>, ...
Cobra1117's user avatar
  • 1,484
Advice
0 votes
5 replies
82 views

We have a very large java code base and we are looking for some tools which show technical debt and also shows return of investment in terms of time and money on resolving those issues. Please suggest....
Sanjay's user avatar
  • 313
0 votes
0 answers
78 views

How to specify different retry policy for different exceptions in Spring-core 7 with Spring-rabbit-4.0.x and Spring-retry-2.0.12. Something like below was possible in Spring-core 6 and below. final ...
nagaraj gond's user avatar
Tooling
0 votes
0 replies
99 views

Current spring implementation of structured logging with ECS format creates object "service" with fields: name, version, environment, node I would like to add field "id" to the ...
abc12331231's user avatar
Best practices
0 votes
1 replies
127 views

I am implementing JWT authentication with Spring Security. In this filter I validate the JWT, extract the email, and then load the user using UserDetailsService. @Component @RequiredArgsConstructor ...
Mayank Grover's user avatar
0 votes
2 answers
113 views

I have 2 databases: test: contains a collection called people which holds documents representing the Person and Author class test2: contains a collection called somethingElse which holds documents ...
pomipiwimo's user avatar
0 votes
1 answer
153 views

Updated the question with my observations. I am trying to understand Spring Security and i am stuck when implementing tests with @WebMvcTest. I have a Spring Boot 4.0.3 project with spring-boot-...
Saravana Kumar M's user avatar
Advice
0 votes
4 replies
100 views

I have the following design for billing platform: I'm facing the following question for to implementing the communication between microservices. Microservice 1 is used to configure users, billing ...
Peter Penzov's user avatar
  • 1,228
0 votes
1 answer
99 views

I am trying to understand Spring Security and i am stuck when implementing the integration test. I am using Spring Boot 4.0.3 with spring-boot-starter-webmvc, spring-boot-starter-webmvc-test, spring-...
Saravana Kumar M's user avatar
0 votes
0 answers
88 views

I have a PATCH endpoint for updating user details. My UserRequest record has @Pattern and @NotBlank on the password field. I am facing two problems, one before using validation groups and one after. ...
Mayank Grover's user avatar
1 vote
2 answers
115 views

I’m currently learning the basics of database transactions, and I’ve started studying concurrency control. However, I’m struggling to clearly understand the difference between transaction isolation ...
Sergio Rodriguez's user avatar
Best practices
0 votes
6 replies
165 views

I am building a Spring Boot application with Spring Security and JPA. I have seen two approaches for implementing UserDetails and I am confused about which one to use and why. Approach 1: @Entity @...
Mayank Grover's user avatar
3 votes
1 answer
131 views

I am trying to run a separate instance of a Spring Batch job for every file, up to 20 at a time. For some reason, the job is being launched with the same parameters multiple times (same filename + ...
oe a's user avatar
  • 2,310
3 votes
2 answers
158 views

I have a Spring application where I need to initialize a nodeId very early during application startup. The problem is: nodeId is used inside static blocks of some classes. One of those classes is ...
ryhn's user avatar
  • 124
3 votes
1 answer
120 views

I am playing with Testcontainers and all the different approaches to use within a Spring Boot application. I am facing some strange issue. My tests should not be passing but it does and I don't ...
Saravana Kumar M's user avatar
4 votes
0 answers
75 views

I'm using HTTP service groups improting them by @ImportHttpServices. I wrote a test annotated with @RestClientTest. I was checking a number of mock servers using MockServerRestClientCustomizer....
Artyom's user avatar
  • 187
Advice
2 votes
4 replies
94 views

I followed this tutorial to get my authentication session up and running. However, I am unsure of the differences between spring.session.timeout, server.servlet.session.timeout and server.servlet....
SK19's user avatar
  • 306

1
2 3 4 5
4253