150,698 questions
0
votes
0
answers
6
views
How to overrides Entity field in tests with Spring boot v4 + Hibernate
I wanna test a PostEntity without removing the next code:
@CreatedBy // Have to remove these ", nullable = false, insertable = false, updatable = false"
@Column(name = "created_by")...
0
votes
1
answer
46
views
Spring Boot 4.0.0. cannot resolve symbol DataJpaTest
I am new to Java and Spring Boot. I am building a small CRUD app to learn about JPA and the H2 database.
This is my POM file:
<?xml version="1.0" encoding="UTF-8"?>
<...
-3
votes
0
answers
31
views
Updating a spring boot component from an Async-annotated function [closed]
I have a Spring Boot process where I have three classes of interest (Service.java, AsyncTaskManager.java, SessionManager.java). I use Service.java to process requests from the Controller, ...
1
vote
2
answers
31
views
Spring Boot 4 tests not creating session cookie (springSessionRepositoryFilter missing from filter chain)
I am doing something like the following in a Spring Boot test.
@Test
void givenAuthenticated_whenDeleteSession_return204() throws Exception {
final String manager = ORG_MANAGER_EMAIL;
...
-4
votes
0
answers
39
views
Spring Boot 2.x→ 3.x migration slowed down query with JSON column mapping — what changed? [closed]
I recently upgraded a Spring Boot application from 2.x to 3.x (Hibernate 5 → Hibernate 6).
After migration, a hibernate query that fetches rows containing a JSON column mapped to an object in the ...
0
votes
0
answers
44
views
What is right way to implement simple token-based authentication in Spring Security
I'm developing small monolith Spring-based REST API application with next key points:
authentication will be only by username/password that are provided directly from mobile app.
as sending username/...
0
votes
1
answer
40
views
Spring boot 3.4.x OIDC2.0 - Try to ignore SSL validation, but not working and throws exception - DNS not matching
Trying create an Oauth 2.0 browser flow by using spring-boot 3.x (3.4.11) spring-framework 6.x application.
authorization_code has generated. Then "restTemplate" call to make the token is ...
0
votes
0
answers
21
views
Eureka client 2.x + Spring Boot 3.5.6 on WebLogic 15.1.1: 404 heartbeat / 400 registration, ok on Tomcat
Context
I have a Spring Boot 3.5.6 application packaged as a WAR and deployed on WebLogic 15.1.1 (Jakarta EE 9.1, Java 17). The same code (same config) runs fine with embedded Tomcat and standalone ...
-2
votes
0
answers
18
views
Eclipselink Jpa TimeStamp HixariProxyConnection Exception [closed]
In Entity Class I have a column of type TimeStamp
In DB it's of type TimeStamp with TimeZone
So .save() operation on new entity is working fine..
In case if it's an existing entity and if i try to do ....
0
votes
1
answer
60
views
From which package do I import @WebMvcTest in Spring Boot 4.x?
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.webmvc.test.autoconfigure....
0
votes
0
answers
12
views
How to provide a custom keystore with a default truststore in my RestClientSsl
I would like to use the default TrustManager and a custom KeyManager.
I tried the code below, but that does not seem to work.
RestClient.builder()
.uriBuilderFactory(DefaultUriBuilderFactory(url))
...
2
votes
1
answer
58
views
ClassCastException Mono<Void> unit test Java
i have the method in springboot that consume a endpoint
public Mono<Void> mesaVisadoCalculadoraNotificar(NotificarIn in) {
setTimeoutErrorCode("MVC-01");
return Mono....
Advice
1
vote
1
replies
35
views
Spring boot Kafka batching for all partitions
I have Spring Boot with Kafka batching and a topic with 3 partitions. For example, I want to have 1 batch with 100 records continuously if I have a lot of messages in the topic, but if I have a low ...
1
vote
1
answer
91
views
Spring Boot 4.x need manual inject for ObjectMapper Jackson? [closed]
Will Spring Boot 4 not inject a bean for Jackson automatically?
I'm getting an error like this, given below:
Action:
Consider defining a bean of type 'com.fasterxml.jackson.databind.ObjectMapper' in ...
Advice
0
votes
2
replies
67
views
Risks of using Java 25 LTS versus Java 21 LTS in a new Spring Boot backend
I’m starting an inventory system: multi-branch, reporting, invoicing, which I plan to maintain for several years.
Tentative stack:
Backend: Java + Spring Boot
DB: PostgreSQL
Interface: Angular 21
But ...