150,900 questions
0
votes
0
answers
34
views
How to ensure rollback consistency and scalability when inserting into multiple SQL Server tables using JPA and JDBC in Spring Boot?
I'm working on a system where I need to store processed data across approximately 30 tables in a SQL Server database. For frequently used tables, I'm using JPA, while the majority of the insertions ...
0
votes
0
answers
33
views
Spring Cloud Gateway not able to redirect requests
I am trying to build a microservices project in spring boot. These are the following dependencies i have used so far :
Spring Boot Cloud Gateway
Eureka Discovery Server
Spring Boot Load Balancer (...
1
vote
1
answer
17
views
How to generate a file without timeout for the client
I've got an endpoint created in Spring Boot that downloads a file from another endpoint, updates the file with some custom data and then sends the updated file to the client. The problem is that it ...
0
votes
2
answers
65
views
How to Handle User Context in Service-to-Service Calls with Spring Cloud Gateway and JWTs?
I'm building a microservice architecture using Spring Boot and Spring Cloud. My setup follows best practices for security:
An API Gateway acts as an OAuth2 Resource Server, validating user JWTs from a ...
-2
votes
1
answer
39
views
Spring Boot Test
Here is my service class, but why does it always return a Bad Request error when i test it instead of Unauthorized ? Please help, Thank you
This is the class service to handle login
@Service
public ...
1
vote
3
answers
76
views
Repetitive ownership checks for nested resources in Spring Boot with JWT authentication
I'm building a Spring Boot backend API with JWT authentication. The domain model is:
Project owned by a User
Each Project has many Exams
Each Exam has many Questions
Authentication is working, but ...
0
votes
1
answer
69
views
Lombok @RequiredArgsConstructor not working in VSCode — “restTemplate not initialized in default constructor”
I’m working on a Spring Boot project in VSCode, and I’m using Lombok for boilerplate code generation.
Here’s my class:
@Service
@RequiredArgsConstructor
public class CapLoginServiceImpl implements ...
-3
votes
0
answers
40
views
Why does the spring boot maven’s build-image goal implements significant portions of the pack cli [closed]
The Spring Boot Maven plugin appears to replicate functionality already available in the pack CLI. Specifically, it:
Extracts the repackaged JAR and prepares it for buildpacks.
Contains logic for ...
1
vote
2
answers
76
views
Public swagger endpoints giving UNAUTHORIZED error in Spring Security
I have a Spring Boot project and am using Firebase Auth with Spring Security.
I am also configuring Swagger for API documentation. My code is:
package com.ayushsingh.doc_helper.commons.config.security;...
0
votes
0
answers
41
views
Usage of method onUpdateReceived from org.telegram.telegrambots.bots.TelegramWebhookBot
Can anyone explain what is BotApiMethod<?> onWebhookUpdateReceived(Update update) method used for?
I am developing a telegram webhook bot in java spring boot and i have been using @...
1
vote
1
answer
128
views
Massive performance overhead for @Transactional methods
using a Spring Boot (3.5) service and an Azure hosted MySQL 8 Database I found that we have quite a lot of performance loss when calling methods that are annotated as @org.springframework.transaction....
0
votes
0
answers
61
views
Want to upgrade Spring Boot 3.1.x to 3.4.x, but getting test case error while doing this [closed]
Migrating from Spring Boot 3.1.11 to 3.4.x causes test failures due to deprecated/removed classes – what’s the recommended approach?
I’m upgrading a Spring Boot application from version 3.1.11 to 3.4....
0
votes
1
answer
23
views
InvalidDataAccessResourceUsageException: could not execute statement [ERROR: column "" is of type jsonb but expression is of type character varying
I am using SpringBoot 3.5, PostgreSQL and Hibernate/JPA as ORM.
While using JSONB column from DB I am having this error.
org.springframework.dao.InvalidDataAccessResourceUsageException: could not ...
0
votes
0
answers
34
views
Netbeans download the whole maven repository not the needed dependencies for a spring boot project
Please help, I want to start using netbeans for developing spring boot projects, but I struggle with how to download and use only the needed maven dependencies via netbeans, not downloading the whole ...
0
votes
1
answer
87
views
How to bypass rollbacks and retries for Spring JmsListener specific exceptions?
This is for a Spring JMS listener which is configured with DefaultJmsListenerContainerFactory with sessionTransacted(true), an error handler and a message converter which converts a message to a pojo ...