Questions tagged [spring]

0 votes
1 replies
Is there a validator to validate a list of Integers? private List<Integer> status;
I need to prevent XSS attacks using Spring validators. Is there an annotation for validating a list of Integers? @Digits(integer=1, fraction=...
asked 4 months ago
-2 votes
0 replies
Misalignment: scoped span != current span NoopSpan after upgrading spring cloud sleuth
After upgrading spring cloud sleuth from 2.0.0 to 2.1.1 I am getting failing tests with the message: Misalignment: scoped span NoopSpan(dfa5ce53c...
asked 4 months ago
1 votes
0 replies
How to not create beans based on other beans?
I have a configuration class in which it's annotated with @Configuration. 2 beans get created. These beans are used annotated with @Profile hence...
asked 4 months ago
0 votes
0 replies
Parallel invocation of AbstractWebSocketHandler#handleTextMessage with same session
When implementing a low-level websocket server (no stomp) and extending the AbstractWebSocketHandler I noticed that it is not possible to invoke...
asked 4 months ago
3 votes
3 replies
Disable spring boot actuator “health-component” and “health-component-instance”
Hi I am using actuator in sprinb-boot 2, with the following properties management.endpoints.enabled-by-default=false management.endpoint.health...
0 votes
1 replies
Enviornment broken after uninstalling Rails 6.0.0.rc1
I ran gem uninstall rails -v 6.0.0.rc1 gem uninstall railties -v 6.0.0.rc1 and even rvm remove ruby-2.6.1 then reinstalled ruby, created a new ge...
asked 4 months ago
0 votes
0 replies
Securing application with AspectJ vs SpringInterceptor
This is a very tricky question, and I know it. Well, I'll do my best to clarify it. I'm writing an API in Spring secured under JWTs and OAuth2 a...
asked 4 months ago
0 votes
1 replies
Cannot access com.mongodb.MongoClientSettings - MongoDB Java driver 3.7+
I'm following the guide using MongoDB Java driver 3.7+ versions with Spring boot starter as dependency. And I get the error: java: cannot access...
asked 4 months ago
0 votes
0 replies
How to implement spring boot resource server secured by multiple oauth2 servers(not authentication)
We are looking for some example/direction of how to implement a spring boot resource server secured by multiple oauth2 servers. Example: 1) /a...
asked 4 months ago
1 votes
1 replies
InvalidFormatException for ISO 8601, JsonFormat, TimeZone, and +0000 at the end
Situation I have a java application calling a micro service through feign and I am getting the following exception: Caused by: com.fasterxml...
asked 4 months ago
0 votes
0 replies
unable to call AOP is advice
Aop is unable to trigger when userData method is called. @RequestMapping(value = "/service/userDate", method = RequestMethod.POST) public Respon...
asked 4 months ago
0 votes
1 replies
Where the response is comming from - Nginx? App? Kubernetes? Other?
I have an app providing RESTFull api in google kubernetes cluster. In front of application i have an nginx working as a proxy_pass. The problem...
0 votes
0 replies
@Autowired on @Document objects
I'm trying to inject a bean into a class annoted with @Document but I get null objects (injection does not work): @Document public class Persist...
5 votes
1 replies
Is it possible that converting inner join select result to nested list JSON?
I am developing an API controller with Spring. I have two tables and they are one-to-many relationships. One video can have multiple products....
asked 4 months ago
0 votes
1 replies
Exchange body null exception even when it is there
I have the following code - PdfRequest pdfRequest = new PdfRequest(); pdfRequest.setAppName("abc")); pdfRequest.setId("D342"); String pdfReques...
asked 4 months ago
0 votes
0 replies
Spring sessionListener not triggered after login
Im working on an Oauth solution with spring and when a new user opens the page coming from a redirect or otherwise a new session is created and i...
5 votes
1 replies
Spring Boot graceful shutdown
I am developing a Spring Boot application backed by embedded Tomcat and I need to develop a graceful shutdown with the following steps: stop pr...
asked 4 months ago
0 votes
2 replies
How to mark entites as cacheable
I have java jar library with JPA entities, spring repositories and spring services and now i included this library in project where i want some e...
0 votes
1 replies
Renaming x-b3-traceid header in spring cloud
I'm trying to configure Spring sleuth 2.0.3.RELEASE to propagate trace ids through my service calls. By default it sends x-b3-traceid header in t...
asked 4 months ago
0 votes
0 replies
JsonNode to Json in jersey rest
My spring version is : org.springframework:spring-beans:4.0.9.RELEASE" My response class is : @XmlRootElement @XmlAccessorType(XmlAccessType.FI...
asked 4 months ago
0 votes
1 replies
How can I start a new session(a portlet session) - from an existing valid session
I would want to create a new session despite current session is still valid. Precisely, as per my understanding I can say that renderRequest.get...
asked 4 months ago
0 votes
0 replies
Share Spring Session with Redis Database
Following scenario: DESCRIPTION: I develop two microservices with Spring. One Service is the auth service and generates the session. The other...
asked 4 months ago
0 votes
1 replies
AuthenticationException thrown in AuthenticationProvider is mapped to AccessDeniedException in ExceptionTranslationFilter
Having written a custom AuthenticationProvider (which calls a service, after which that one calls an external URL to authenticate the given crede...
asked 4 months ago
1 votes
0 replies
Doesn't find application.properties via @PropertySource
I have a SpringBootApplication and within this context, I want to add a @Bean from another project depending on the application.properties of tha...
asked 4 months ago
0 votes
0 replies
How to send an empty list as a parameter with feign?
I would like to send a list as a parameter also when it is empty with feign. Currently at the feign client I have the following method: @GetMap...
asked 4 months ago