Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

Spring Webflux Dynamic path control in the filter layer

in my Spring WebFlux project, I cache endpoints with specific annotations at application startup time using the following DTO. data class ExplorerResult<T>( override val supportedPaths: Set&...
Burak Erdem's user avatar
-1 votes
0 answers
23 views

ERROR 415 Unsupported Media Type In Postman [duplicate]

I'm trying to upload a property object (JSON) along with multiple images using multipart/form-data, but Spring Boot keeps returning: 415 Unsupported Media Type Content-Type 'application/octet-stream' ...
Thomastheguy's user avatar
0 votes
2 answers
42 views

ERROR 415 Unsupported Media Type In Postman

Good Day devs I'm trying to upload a property object (JSON) along with multiple images using multipart/form-data But Spring Boot keeps returning: 415 Unsupported Media Type Content-Type 'application/...
Thomastheguy's user avatar
1 vote
0 answers
29 views

Spring Webflux passing Multipart to next request fails

I got this pseudocode: serverRequest.multipartData() .flatMap(multiPart -> { final var valueMap = multiPart.toSingleValueMap(); final var part = (FilePart) valueMap.get("...
J. Doe's user avatar
  • 13.5k
0 votes
0 answers
47 views

Spring Boot 2.7.x JPA @ManyToOne join returns empty list on GET, but works on POST

In a Spring Boot 2.7.x application with Hibernate/JPA, there are two tables: tickets complaint_id (PK, VARCHAR(255)) attachment complaint_id (FK, VARCHAR(255)) other fields: id, file_name, ...
RaviSai1819's user avatar
-7 votes
0 answers
40 views

How to handle inconsistency in 2fa validation [closed]

Hi I am experiencing data inconsistency in 2fa here is the error and a snippet of the code {"timestamp":"2025-11-17T06:30:51.934+0000","level":"ERROR","...
Shaka Muhammed's user avatar
Advice
1 vote
1 replies
27 views

How spring-context is selected for a given spring-boot release?

I'm trying to understand Spring boot release model. I noticed that spring boot version 2.3.0.RELEASE was built on spring-context 5.2.6.RELEASE, whereas spring boot version 2.2.13.RELEASE (an earlier ...
Joe's user avatar
  • 150
2 votes
0 answers
64 views

OkHttpClient Client not sending server-name extension in SSL Client handshake

I have a Springboot server with two ssl self signed certificates configured for different hostnames. One certificate assigned to hostname localhost. Another assigned as fallback, so any hostname other ...
naveejr's user avatar
  • 755
1 vote
1 answer
76 views

Java Springboot API endpoint overload

I'm making a banking application where a user can create a bank account, this account can be a savings account with a monthly income or a current account with a monthly upkeep, the classes of both ...
user31885720's user avatar
0 votes
0 answers
26 views

cant manage to make entity corresponding to entitygraph query

so i am using entity graph to make a dynamic query of a table, the query is being made correctly which is corresponding to my graph and subgraph attribute nodes but when i fetch it as the entity, the ...
Nima Khajehpour's user avatar
-5 votes
1 answer
50 views

How to fix error Missing required jhipster-needle redis-add-entry not found by Jhipster v8.11.0

When I run the command jhipster import-jdl jhipster-jdl.jdl it shows this error: ERROR! An error occured while running jhipster:spring-cache#customizeFiles ERROR! ERROR! Error editing file E:\...
Trần Đại's user avatar
0 votes
1 answer
58 views

Resolving non generic type in a dynamic generic Spring Boot controller

I have a generic rest controller (with @RestController and empty mapping) with a method that accepts a generic @RequestBody. I then register this controller multiple times using ...
rattaman's user avatar
  • 565
2 votes
1 answer
66 views

Login infinitely retrying with bad credentials

I am using Java Spring boot and Thymeleaf. When trying to login with bad credentials, the page freezes for a few minutes, and it says the page isn't working. When I activate debug in application....
Tecco Temtsa's user avatar
Advice
0 votes
0 replies
34 views

Spring Boot CommonsRequestLoggingFilter to curl

In Spring Boot I use the standard practice of using a CommonRequestLoggingFilter bean to log the full requests in a debug profile. 2025-11-14T16:22:26.617+01:00 [362-exec-9] DEBUG ...
MortenB's user avatar
  • 3,747
2 votes
1 answer
57 views

Thymeleaf removes name value for select when rendering fragment

I want to build a web page that will have HTML form with a number of select components describing location: country, state, city and street. Choosing value in given select component will update ...
Maciej Bodus's user avatar
1 vote
0 answers
48 views

Hibernate Dirty Checking

I'm using Spring Data JPA with an entity that contains a Map<String, String> field. The map is stored in the database as a TEXT column (JSON string). JPA automatically stores the map as a ...
Nitesh Tiwari's user avatar
Advice
0 votes
0 replies
47 views

Oauth2 client in spring

Im posting here because cant get a working example of oauth2 client implementation in spring boot 3.5.7 This is my first time ever implementing this type of authentication and cant manage to make it ...
FakiB's user avatar
  • 23
-2 votes
1 answer
64 views

Converting from Java model to JPA

I have implemented a class User that represents a User (so far either a Student or a Teacher). What they have in common is that they both have IDs, and some information about the user (this is stored ...
Alex's user avatar
  • 9
-4 votes
0 answers
43 views

Triggers usage on updating two tables

I'm having two loans table. one is for internal other one is for external. Both having similar columns. I don't want to disturb one for other so i have created 2. Problem is both has to be sync. ...
Hari  Prakash's user avatar
0 votes
1 answer
36 views

java.net.URISyntaxException: Illegal character in opaque part at index 2: after upgrading open api from 3.0.3 to 3.1.0

I have spring boot application written in Kotlin lang. We have REST API contract described in open api file. We use API first approach. So we use open api generator: plugins { ... id("org....
gstackoverflow's user avatar
Advice
1 vote
3 replies
33 views

What dependency for Swagger/OpenApi to work in Kotlin and WebFlux Spring Boot application?

I tried a lot of different options, but I cannot find the right dependency that works with Kotlin ans WebFlux simulatneously. Which one should I use? Is it possible to have this setup?
Taserface's user avatar
  • 123
-1 votes
0 answers
60 views

Correct combination/versions of Spring Boot, Camel and Kafka in pom.xml for java 21 [closed]

We have an old maven project built with java 8. It's working fine. Now we're upgrading to java 21, and updated pom.xml as follows. Spring Boot 3.5.6 Camel 4.15.0 Kafka 3.8.0 The jar was built with ...
H. Bear's user avatar
0 votes
1 answer
89 views

Spring Boot 3.3 migration. Cannot resolve reference to bean jpaSharedEM_entityManagerFactory

I'm migrating from Spring Boot 2.7 to Spring Boot 3.3.13. This means that I'm migrating even from Hibernate 5 to Hibernate 6. I'm having an annoying problem when I start my Spring Application about ...
Removed's user avatar
1 vote
1 answer
65 views

Why is Spring attempting to use a read-only transaction when I explicitly requested a new write transaction?

I have a service method that performs the following operations in sequence: Calls a read method annotated with a custom read-only transaction annotation (equivalent to @Transactional(readOnly = true))...
Rorschach's user avatar
0 votes
0 answers
54 views

WebClient sending an empty multipart request to Flask service

I have a problem with sending multipart/form-data requests from my Java service (using WebClient but same history with RestTemplate) to Flask service. It seems like a sent body is just empty as I get ...
Ania Fijałkowska's user avatar
0 votes
0 answers
47 views

403 Unauthorized for JS files but everything else works

Can someone help me out why nginx returns a 403 Unauthorized for .js files, but other files work: I have a file /etc/nginx/sites-available/my-server.nl: server { listen 80 proxy_protocol; ...
Yaris van Thiel's user avatar
-2 votes
0 answers
30 views

How to download files that have ABFSS protocol using Java from Azure Storage? [closed]

I want to read contents from a particular file held in the ADLS. The URL for retrieving a file looks like this abfss://[email protected]/folderone/somefile.json How do I read the ...
Mykoliux's user avatar
  • 157
0 votes
0 answers
24 views

Blind SSRF on Sensitve Headers on Spring Boot Rest API

I have written my Spring Boot security configuration like this: @Bean public SecurityFilterChain securityFilterChain(HttpSecurity httpSecurity) throws Exception { DefaultBearerTokenResolver ...
hell_storm2004's user avatar
1 vote
0 answers
50 views

Ack messages with StreamBridge::send and Kafka

Context. I have to use StreamBridge::send() with Kafka. This is a hard, external requirement. The call itself looks like streambridge.send(binding, message). All good. To capture the non-immediate ...
wojas's user avatar
  • 183
1 vote
1 answer
82 views

Springboot/Tomcat Accepts Expired Certs

I have a couple of basic Springboot SSLBundle REST client and server applications using default settings - no customized ssl factories or anything. Everything works fine, i.e. they communicate, will ...
stackbacker's user avatar
1 vote
1 answer
83 views

keycloak frontend backend network configuraion in docker compose for localhost

I'm running keycloak, next js, and spring boot app using docker compose. Right now I'm having issue in setting up network configurations, usually either I'm getting issuer mismatch in the backend, or ...
Vimal Kumar's user avatar
1 vote
0 answers
72 views

How to pass client location into custom JPA ID generator?

Working on a scalable custom ID generator in JPA. The format I want to achieve is: <first three letters of country or region> + <year> + <sequence number> For example: USA2025001 I'm ...
RaviSai1819's user avatar
1 vote
0 answers
53 views

Could not instantiate KafkaProperties

I'm migrating from Spring Boot 2 to Spring Boot3, i'm NOT migrating to Sprinc Cloud 4 but i will stay to SpringCloud 3 (i know Spring Boot 3 is mandatory if you want to use Spring Cloud 4 but not the ...
RemovedQuasar's user avatar
-2 votes
0 answers
27 views

Spring Native Integration Test

Spring Native Testing - Test Configuration File Not Found I'm working on Spring native testing. I want to run my existing integration tests natively. For this, I'm using the -P nativeTest profile, ...
Neslihan Kolukısa's user avatar
1 vote
1 answer
65 views

Should I create a separate Integration Event when using the Outbox Pattern in a DDD-based microservice? [closed]

I’m building a Java microservice using Spring Boot 3.5.7, Kafka, and the Outbox Pattern. In my domain layer, I raise a domain event: package com.turkcell.reservation_service.domain.event; import com....
Nur Sultan ASLAN's user avatar
-3 votes
0 answers
39 views

Async Events telemetry tracing problem because of batching of events

I'm implementing Telemetry in my Spring Boot web app using OpenTelemetry instrumentation. All is fine except when dealing with async events. When I produce/publish, for example 100 events - all ...
Aatif Rafiq's user avatar
-1 votes
0 answers
59 views

AWS API Gateway HTTP API v2 removes padding (`=`) from query parameters when calling Lambda (Java Spring Boot)

I’m using AWS API Gateway HTTP API v2 with a Lambda function running a Java Spring Boot application The integration type is Lambda proxy integration with payloadFormatVersion: 2.0. Everything works ...
nekatte's user avatar
  • 11
0 votes
1 answer
74 views

Jakarta Persistence (JPA) Specification for a join

I cannot get this JPA Specification to work for a simple join. I know the ""statusLookup.code" when mapping but does not work here. Does anyone know how to get it to work. Its a ...
Jay Hutton's user avatar
0 votes
0 answers
38 views

Bucket4j Spring Boot Starter: "No Bucket4j cache configuration found" error with Redis Cluster

I'm trying to configure Bucket4j rate limiting with Redis Cluster in my Spring Boot application, but I keep getting the error: No Bucket4j cache configuration found - cache-to-use: null Action: ...
Royale_opis ItzLexonPvP Kd's user avatar
-3 votes
0 answers
82 views

JPA/Hibernate EntityGraph with Specification and Pagination not loading all related entities correctly

JPA/Hibernate EntityGraph with Specification and Pagination not loading all related entities correctly I'm working on a JHipster-generated application and need to create APIs that load entities from ...
Рейн Глеб's user avatar
1 vote
1 answer
81 views

JPA OneToOne Field 'price_id_price_id' doesn't have a default value

how do I resolve that error? Thank to all answers. org.springframework.orm.jpa.JpaSystemException: could not execute statement [Field 'price_id_price_id' doesn't have a default value] [insert into ...
ReMadWeb's user avatar
1 vote
2 answers
86 views

mapstruct generated implementation cannot find imported class in multi-module Spring Boot project

I am using clean architecture and have 3 modules: application -> details -> core I'm trying to use Mapstruct to generate mappers in application & mappers in details. I have this mapper in ...
kevin liu kai's user avatar
1 vote
0 answers
61 views

Failed to instantiate [org.springframework.security.web.SecurityFilterChain]: Since more than one mappable servlet in your servlet context:

I am applying Spring Security in a Spring MVC (Spring Boot) application. The application already has CSRF and Session Management and I want to apply JWT Authentication along with Spring security. But ...
Phoenix's user avatar
  • 133
0 votes
1 answer
54 views

Issue with Jakarta Mail - MessageCountAdapter doesn't seem to work

I'm encountering an issue while using Jakarta Mail to fetch emails and capture specific keywords. Here's the details: The source code is as follows: package org.example.receiver.kit.component; import ...
Wu Jingkai's user avatar
1 vote
0 answers
44 views

RestController post endpoint multipart_form_data with @ParameterObject and MultipartFile can't be executed from Swagger-UI

I have a class with the @RestController annotation which contains an endpoint defined like this @PostMapping(path = "/submitJob", consumes = { MediaType.MULTIPART_FORM_DATA_VALUE }, ...
Roland Roberts's user avatar
Best practices
0 votes
1 replies
92 views

Java exception handling (best practices)

I'm starting out with Java and Spring Boot, and I have a fairly simple question that always raises doubts for me, as I always like to follow best practices. I have a Controller layer where I create ...
Sergio Cea's user avatar
Best practices
0 votes
0 replies
49 views

Spring Kafka consumer reprocessing messages after switching from AckMode.MANUAL_IMMEDIATE to MANUAL

I have two Spring Kafka consumers that process batches of messages with manual acknowledgements. This setup has been running correctly for a long time with AckMode.MANUAL_IMMEDIATE. Recently, I ...
M2bar's user avatar
  • 3
-1 votes
1 answer
45 views

Unable to use gpt-5 model in Spring Boot

I'm trying to use the gpt-5 model through Spring Boot's openAI. However, it keeps logging that I'm using gpt-4o-mini. Is gpt-5 unsupported or am I managing my dependencies incorrectly? Im specifying ...
randy pahang's user avatar
0 votes
0 answers
57 views

Coturn and Kurento in Docker Compose configuration

I’m setting up a WebRTC video calling system based on Spring Boot 3, Kurento Media Server, and coturn, all running inside Docker. The goal is to make peer-to-peer media connections (doctor–patient ...
AllodyUser 's user avatar
1 vote
0 answers
73 views

JavaFX + Spring: Encountering org.springframework.beans.factory.NoSuchBeanDefinitionException when trying to run SQL query [duplicate]

I am trying to develop a desktop application using JavaFX and Spring Framework in Intellij. I have model class, repository class, controller class, and a view class. But when I try to run the program, ...
ganjaam's user avatar
  • 1,308

1
2 3 4 5
3014