761 questions
0 votes
0 answers
64 views
How to migrate legacy Spring MVC Form Controllers (`AbstractFormController`) to annotation-based controllers in newer Spring versions?
I’m upgrading a legacy Java Spring MVC application. Current setup: Java 1.8 (recently upgraded from Java 1.7) Spring 3.2.18 Uses the old AbstractFormController, SimpleFormController, and XML-based ...
0 votes
1 answer
178 views
Spring RESTDocs Error: Query parameters with the following names were not found in the request
I'm trying to document the API using Spring RESTDocs on Spring 3.3.2. However, the following error appears. Query parameters with the following names were not found in the request: [password, driverId,...
0 votes
0 answers
306 views
Annotation-specified bean name 'solRepository' for bean class conflicts with JpaRepositoryBean while migrating to spring boot 3.2.x
I'm facing a classic issue in spring that states the following: org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'solRepository' for bean ...
2 votes
0 answers
720 views
Connection refused : Testcontainer and Spring >3.1.x + Elastic 8
I have been running circle for quite some times and I suppose that I missed something in the documentation. I wanted to upgrade our integration test using testcontainer and spring 3.1 update (esp the ...
0 votes
1 answer
1k views
Is MultiPart file deprecated in Spring 3.?
Is the multipart deprecated in Spring Boot new version 3.x.x I am only getting MultiPartProperties, MultiPartName, MultiPartAutoConfiguration. Which one should I use for uploading files? I am ...
-1 votes
1 answer
543 views
Filter Chain HTTPSecurity 5 to 6 Migration
I'm currently trying to migrate from Spring 2.x -> 3.1.5 as a beginner to Spring Security and I don't really understand the migration instructions. Can someone explain the exact difference between ...
1 vote
0 answers
337 views
How to add LDAP login using Spring boot 3.x.x + Vaadin 24?
WebSecurityConfig for LDAP login. I have used Spring boot 3.x.x and vaadin 24. I want use vaadin not controller but how to replace. In vaadin clcik on button then login form open using LDAP. How to do ...
0 votes
0 answers
204 views
Spring Security 6(boot 3.2) downloading file via form in post request throws error null _csrf token
I just migrated my spring boot app to 3.2 from 2.7. Right now everything is working fine login, request which i make through axios as i am using vue js. But when i download file via form element using ...
-1 votes
1 answer
671 views
spring boot circular dependency happening with field and setter injection
I've read that to resolve circular dependency we should either use setter or field injection. I tried both but I still have the same issue. I am using spring boot app : java17/spring 3.1.5. Setter ...
1 vote
1 answer
2k views
How to send multipart files and form data together to Spring controller
In a form there are many text fields and four multpart file and I have to send both together to the spring controller. Please sugget how it can be done in spring 3.x. I am new to spring framework and ...
1 vote
0 answers
169 views
Type annotation in "value" parameter in hibernate 6
I am migrating to spring 3 and part of that moving to hibernate 6.X. Have some old code for hibernate I am wondering how I can use @Type( type = "json", parameters = { ...
3 votes
2 answers
10k views
spring batch: required a bean named 'dataSource' that could not be found
I am upgrading spring boot from version 2.6.6 to 3.1.3. I did the required JobRepository related modifications by referring this sof post. Everything seems to be going well but then I am facing below ...
1 vote
1 answer
2k views
How to filter or drop spans before sent it to collector in micrometer with Otel in spring 3?
Is there any way to drop unwanted spans in micrometer-tracing with opentelemetry before sent it to collector? I tried to filtered spans by configuring custom Sampler from openTelemetry api. if ...
0 votes
0 answers
487 views
JmsPoolConnectionFactory uses wrong keystore during sslEnabled connection
When I'm using org.messaginghub.pooled.jms.JmsPoolConnectionFactory with org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory and sslEnabled=true I'm getting an error when receiving ...
0 votes
0 answers
69 views
How do you get changes made by a database trigger back to the entity
How can I refresh the entity inside a transactional method so that the properties changed by a trigger become visible? I have a trigger that sets/updates certain columns before an insert/update. ...