Questions tagged [spring2.x]

Version 2.x of the Spring Framework, use [tag:spring] for general Spring related questions.

Version 2.x of the Spring Framework, use for general Spring related questions.

28 questions
28
votes
2 answers

Spring Boot 2.0.0 , DataSourceBuilder not found in autoconfigure jar

We are upgrading our existing Spring Boot (1.5) application to 2.0.0. We connect with multiple databases and use the org.springframework.boot.autoconfigure.jdbc.DataSourceBuilder class. I added the dependency: compile group:…
9
votes
3 answers

Understanding basic Spring Framework and Total Flow

I am new to the Spring Framework. Please guide me regarding basic understanding of Spring. I know Java and JSF, but I don't know anything about Struts or other frameworks. I have searched the Internet and was able to download a PDF, but I don't…
user1407297
  • 121
  • 1
  • 2
  • 6
2
votes
0 answers

APPLICATION FAILED TO START after upgrading to spring boot version 2.3.1.Release

I'm using spring boot 2.3.1.RELEASE, spring-cloud-services.version 2.0.0.RC2 and spring-cloud.version Hoxton.M1, and face following issue while starting application: APPLICATION FAILED TO START Description: An attempt was made to call a method…
2
votes
0 answers

A rest service using spring 2 and jersey, unable to get response for some consumers

We have an application that uses asyncresponse and writes the data into a stream. I upgraded to spring2 from 1.5. And not sure if it could be releated but now with postman I get this error "Unexpected end of file". Even in a java client , I get…
surya
  • 2,581
  • 3
  • 22
  • 34
1
vote
0 answers

Alternative approach for Zuul and Spring Cloud gateway while upgrading to Spring 2.5.X

We are upgrading our project to Spring 2.5.X and it is not supporting Zuul gateway any longer. We don't want to opt for 'Spring Cloud Gateway' as we need to rewrite all code in Reactive (We have Servlet based). Is there any other good approach to…
Pranali
  • 11
  • 1
1
vote
3 answers

Trying to post JSON to a method end up with this error - Required String parameter 'name' is not present

I know that this question mind be asked before couldn't find exact same problem and I'm new to spring technology so be gentle please I'm trying post an object using postman which is supposed to be added on my DB object constructor looks like…
Ömer
  • 59
  • 7
1
vote
1 answer

Spring Boot MVC - How to configure multipe view directories in application.properties

I am trying my hands on Spring MVC Boot application and I am currently using springBootVersion = '2.1.6.RELEASE'. I have hundreds of ".jsp" files placed in multiple sub-directories which are inside a "view" directory of my web application and i am…
Mohsin
  • 852
  • 8
  • 28
1
vote
1 answer

Spring boot 2 @Query named parameter binding value resolution messes up after upgrade from 1.5

We have the following working query using SpringBoot 1.5: @Query(value = "SELECT DISTINCT c FROM Customer c INNER JOIN c.industry i WHERE " + "c.role IN :roleFilter " + "AND (:#{#industryFilter.size()} = 1 OR i.id IN…
grog
  • 438
  • 1
  • 8
  • 21
1
vote
0 answers

QuerydslPredicateExecutor with abstract entity

After migrating to Spring 2.0 I'm facing a problem with MongoRepository that implements QuerydslPredicateExecutor. When passing predicate that refers to property from one of the concrete classes it fails…
1
vote
1 answer

Issues in resolving placeholders in bootstrap.properties after upgrading to Springboot 2

Spring dependency: org.springframework.boot spring-boot-starter-parent 2.0.0.RELEASE
Righto
  • 855
  • 3
  • 11
  • 32
1
vote
0 answers

Spring 2.0.x Jersey 2 Request scoped bean

I m working with a legacy spring 2.0.6 project integrated with jersey 2.x. The application context contains some beans like:
Alex
  • 1,515
  • 2
  • 22
  • 44
1
vote
1 answer

GUI for management beans of Spring application

Good day everyone, During my work I often have to run an overweight Spring application to generate some content. It took a lot of time just to load data in the memory and generate some predefined content. And if I need generate some other content I…
Dzianis Sudas
  • 364
  • 3
  • 16
1
vote
1 answer

how to create jackson based json rest service with Spring 2

Spring 3 has native json support for returning json response using @ResponseBody spring 3 annotation. My app is based on spring 2 and need to create jackson based rest service which will return json when client make http rest request using…
S Singh
  • 1,403
  • 9
  • 31
  • 47
1
vote
2 answers

jquery dynamic form elements for spring form binding

I am facing issues with dynamically binding spring form elements in JSP using jquery. I am trying to add dynamic rows to a table which has different form elements. Demo: http://jsfiddle.net/ninadhere/f7ZdK/ Issue here is newly added form elements…
Ninad
  • 53
  • 7
1
vote
1 answer

How to create an interceptor for annotation @Controller

I joined an existing project who use 2 mechanisms for the front-end with spring mvc: A) controllers classes extends org.springframework.web.servlet.mvc.SimpleFormController B) controllers classes uses annotation @Controller. Now I found an…
BasicCoder
  • 1,661
  • 10
  • 27
  • 42
1
2