150,322 questions
Score of 1
1 answer
68 views
How does Spring Boot SecurityContextHolder works
I am quite struggling to understand how does even Spring
SecurityContextHolder
work internally I read too many articles but not able to understand it properly can anybody explain me how does it even ...
Score of 0
1 answer
78 views
Spring Boot cannot find table in Docker database
I have created multiple Spring Boot apps with a database in Docker and it's never been a problem. I can run tests, and run the app and everything works fine. But, I created a new app in IntelliJ ...
Score of -1
0 answers
43 views
SpringBoot init fails with jasypt password configured as env variable
Don't know why, bug pumped out all of a sudden.
Spingboot couldn't boot with code like below.
@Component("jasyptStringEncryptor")
class Sm4Encryptor(@param:Value($$"${jasypt.encryptor....
Score of 2
2 answers
86 views
Does @Order on a @Configuration class determine SecurityFilterChain precedence in Spring Security?
I'm trying to understand how Spring Security determines the order of multiple SecurityFilterChain beans.
The official documentation demonstrates applying @Order directly to the SecurityFilterChain ...
Score of 0
1 answer
79 views
Update join query in Spring Boot
I receive sensors' values, I store the stats, last received and dump a new received list in a dedicated table, before comparing and updating.
Structure is, omitting superfluous:
SensorStats
@Id long ...
Score of -1
0 answers
45 views
Spring Data JPA throwing StaleObjectStateException / OptimisticLockException on consumer retry across separate instances (No @Version column)
I'm seeing an issue in a Kafka consumer running on multiple application instances.
Environment
Spring Boot: 3.5.15
Hibernate: 6.6
Oracle: 19c
My entity has no @Version column.
@Id @GeneratedValue(...
Score of 0
1 answer
101 views
Logback filtering is ignored when running "mvn clean install" for all tests, but works for an individual test in isolation
I have the following logback-test.xml (pointed to by application-test.yml) specifically for JUnit tests whereby any logging containing the substring TestException should be ignored:
<?xml version=&...
Score of -8
0 answers
111 views
resources or real world experiences: Spring application from an Application Server to a standalone runtime and then to containers [closed]
I'm looking into the migration path for a Spring application that is currently deployed on WildFly (as a WAR), first to a standalone runtime (to a Spring Boot executable JAR), and subsequently to ...
Score of -4
0 answers
83 views
Draft versions of entities in spring
For a CMS-like tool I would like to store changes coming in via API into a "draft" version of all effected entities to then build a release workflow where all or selected entites can be ...
Score of 0
0 answers
159 views
Best approach for full-file aggregation before processing 4M records — memory vs performance vs lock contention
Business Requirement
I need to process large CSV files (4M records) which contains ID and other contact info as batch job. The batch updates three SQL Server tables.Core constraint — cannot use line-...
Score of -1
0 answers
116 views
Is a hand-rolled CASE expression a reasonable way to do relevance-ranked search with JPA Criteria API + MySQL, or is there a better approach?
I'm building a company search endpoint in a Spring Boot app (JPA Criteria API, MySQL) where I want exact matches to appear before prefix matches and before substring matches when a user searches by ...
Score of -1
0 answers
47 views
WS-Atomic in Spring Boot 4
I know that JEE application servers support WS-Atomic transactions between SOAP services.
I'm also familiar with microservices and Sagas.
This isn't a discussion about the pros and cons of SOAP+2PC vs....
Score of 1
1 answer
105 views
Alfresco ACS Java REST API Spring Boot Starter: 401 after OAuth2 token expiration during long running jobs
I am using Alfresco ACS Java REST API Spring Boot Starter (version 7.1.0) with Keycloak as OAuth2 Identity Provider.
The authentication is configured using client_credentials:
spring.security.oauth2....
Score of -1
0 answers
99 views
Apache Camel Transaction Rollback Not Working When JMS Reply Queue Fails
I'm using Apache Camel with ActiveMQ to process messages in a transactional route. The route receives messages from a queue, performs a database operation, and then sends a response back to a ...
Score of -4
1 answer
112 views
LSP (Spring Boot language server) [closed]
I use STS 5 (code editor), and when I update my pom.xml, I receive an error message from LSP (Spring Boot language server). Has anyone else experienced this problem? I've already installed some ...