Questions tagged [spring5]

The tag has no usage guidance.

0 votes
0 answers
6 views

Controllers assert to be null when doing SpringBootTest

When I run the below test, the controllers are always null. Not sure how to fix it or missing anything. @ExtendWith(SpringExtension.class) @SpringBootTest @ActiveProfiles("tests") class ...
  • 13
0 votes
1 answer
50 views

java.lang.NoClassDefFoundError: org/springframework/core/metrics/ApplicationStartup on startup using Spring5

I am getting below error on server startup when trying to have a REST API with spring 5. Maven build is generating the war, but when I am running the application using Smart Tomcat, I am getting below ...
1 vote
2 answers
55 views

Mapstruct decorator unable to inject the "delegate" bean in its generated code

I'm using the @DecoratedWith annotation of mapstruct 1.4.1Final along with spring-boot 2.7.0, but it is not working. Describing my issue below here: I have 2 pojos Person1 and Person2 public class ...
  • 960
1 vote
3 answers
47 views

SpringBoot @ConfigurationCondition is evaluated before the Spring Beans have been instantiated

I'm trying to use the @ConfigurationCondition annotation to register a bean based on a dynamic condition. This dynamic condition is present in another bean. Putting the code below to better describe ...
  • 960
3 votes
3 answers
70 views

How to autowire a bean inside a Spring @Condition class

I have an interface IInterface.java like below: public interface IInterface { void printIt(); } And there are two implementation classes for this: ImplementationA.java and ImplementationB.java @...
  • 960
0 votes
0 answers
27 views

Feign Spring 5 is it possible to use @HeaderParam with custom object

Is it possible to use headers parameters as object in Spring? @RequestHeader(AUTHORIZATION) JwtTokenDto tokenDto I have an error Method has too many Body parameters. it works fine with @...
0 votes
1 answer
80 views

WebClient To Retrieve From jsonplaceholder URL Using POST Giving UnknownHostException (Unable To Resolve <url>)

I am using the new Spring 5 WebClient to retrieve the JSON response from the JSON Placeholder tester website (https://jsonplaceholder.typicode.com/) using a POST request sent to the URI https://...
  • 537
0 votes
1 answer
30 views

spring-flex 1.0.3.RELEASE issue in integrating spring 5.3.20

Currently using spring-flex 1.0.0.M2, As part of spring upgrade to 5.3.20, upgraded spring-flex to 1.5.2.RELEASE. I'm getting the following error: ERROR [org.springframework.web.servlet....
0 votes
1 answer
39 views

Spring integration 4 to 5 migration - Issue with integrationGlobalProperties

We have been using Spring integration 4.3.1.RELEASE along with Spring core 4.3.2.RELEASE. Recently we had to upgrade the stack with 5.5.11 and 5.3.19 versions resp. This is not a Spring boot app. ...
  • 338
0 votes
1 answer
109 views

Spring 5: use RestTemplate to POST multiple files with POJO; MediaType.MULTIPART_FORM_DATA with LinkedMultiValueMap

Versions: Java 11 Spring 5.3.9 Jackson 2.13 org.apache.httpcomponents:httpclient: 4.5.13 I believe the issue here is that out-of-the-box, RestTemplate cannot deal with an HttpEntity for which the ...
  • 1,145
0 votes
0 answers
187 views

Spring Migration from 4.x to 5.3.19

I have migrated all libraries for Spring4.x and hibernate3.x to Hibernate 5 and spring 5.3.19. I have below line of code in my configuration file bean class="org.springframework.web.servlet.mvc....
  • 15
0 votes
2 answers
107 views

How to find which method is called when going to route?

I am getting too many redirects error I and want to find in which method this happens. The url I am going is https://localhost:8443/OpenELIS-Global/ I tried searching codebase for OpenELIS-Global but ...
  • 573
0 votes
1 answer
41 views

Spring 5: can ChainFileListFilter process files in specified sorted order?

Versions: Spring: 5.2.16.RELEASE Spring Integrations: 5.3.9.RELEASE Ubuntu: focal [20.04.3 LTS] Java (build and runtime): 11 I am using ChainFileListFilter as follows: <int-file:inbound-channel-...
  • 1,145
0 votes
0 answers
64 views

Welcome-file with Request path is not working with latest Spring

this is simple spring application with below codes. web.xml <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:...
  • 81
0 votes
0 answers
138 views

Request Path in Welcome-file-list is not working in spring 5.3.16

I have a simple spring application with below code web.xml <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:...
  • 1

15 30 50 per page
1
2 3 4 5 6