Skip to main content

All Questions

Tagged with
0 votes
0 answers
40 views

How to delete duplicates in a table?

I have written a software that every second copies the contents of a JSON file from a server into a variable (serverData). Using the json-path library I extract some information from the serverData ...
Bishop's user avatar
  • 1
-2 votes
0 answers
20 views

WebClient incorrect request body length after intercept in filter

I intercept my XML request body by adding two nodes and remove some namespaces. When I'm trying to use my filter, in header content-length I have pre-intercept request body length. I checked that if I ...
mar14's user avatar
  • 81
0 votes
1 answer
38 views

Spring HttpServletRequest is empty when already used

At Class A after getting the request body, The Class B is getting empty request body. As per checking if going to comment the code in Class A to retrieve the request body, Class B will able to get the ...
RedBlue's user avatar
  • 123
-1 votes
1 answer
94 views

Improve response time Java / Stream / filter

I am doing a comparison between two lists of objects using streams (filter/anyMatch). The size of the two lists can be up to a million objects. I ran a test with the code below. Often the size of the ...
YK mar's user avatar
  • 677
0 votes
1 answer
52 views

shiro uses a custom filter to report an error "No SecurityManager accessible to the calling code"

Originally, my filterChainDefinitionMap was filterChainDefinitionMap.put("/login/**","anon"); it responded normally when calling the interface, but now I have a need. All "/...
Nathan's user avatar
  • 1
-3 votes
1 answer
58 views

Can I use a lambda expression to return a single value of a collections? [duplicate]

I have a Collection of and I want to make a simple filter to obtain a T value, for example an getById( int idOfT) I tried this: return (T) stream.filter( t -> t.getId().equals(id)); but it does'...
sevila's user avatar
  • 56
0 votes
4 answers
83 views

Strategy pattern to filter objects, how to compose them?

Say I have come class that looks like this class Product { double Price; String name; String category; } I have a client facing API that allows users to filter my list of objects based on ...
Will Su's user avatar
0 votes
1 answer
48 views

How to implement dynamic run time query to filter a Java stream of objects

Say I have a List of objects of the following type: public class Employee { private String emplId; private Name name; private String dept; private String city; } And I have the ...
TirupathiRao Pattapuraju's user avatar
-2 votes
1 answer
162 views

I use Spring security version 6.2, but static resources are ignored

I upgraded the Spring Security version to 6.2 and set the security settings as follows. @Bean public WebSecurityCustomizer webSecurityCustomizer() { return (web) -> web.ignoring()....
leesehun's user avatar
0 votes
1 answer
90 views

Log4j2 filter for thread name

We have a log4j2 pattern layout which looks like following: <PatternLayout> <pattern>%d{ISO8601} %5p - [%t] - %m%n</pattern> </PatternLayout> The thread-name is printed out ...
Sebastian's user avatar
-1 votes
2 answers
61 views

How to filter JSON in java

I have a JSON like below: { "name": "John", "age": 29, "city": "Bangalore", "country": "India" } But based on ...
Unknown's user avatar
  • 31
0 votes
1 answer
187 views

Spring Boot Filter with form-data or x-www-form-urlencoded

The actual request is with a Content-Type application/json then the request will go to filter to be modify, change the Content-Type to multipart/form-data then add a hardcoded key and value as a form-...
RedBlue's user avatar
  • 123
0 votes
1 answer
436 views

How to filter dynamically against a DTO result in Spring Boot?

I used Spring Data JPA Specifications for dynamically filtering against entities in some Spring Boot apps and now trying to apply the same logic for DTO instead of entity classes. However, as far as I ...
Murat Yıldız's user avatar
0 votes
1 answer
52 views

DynamoDB query filtered by date less than a given one

I'm doing a java springboot project with DynamoDB. I have this problem: I have a dynamoDB table that is constructed like this: aws dynamodb create-table \ --table-name my-table \ --attribute-...
Aldo Aiello's user avatar
-1 votes
1 answer
66 views

React client headers are missing in the server spring boot - while they do arrive with postman

I have a React client app which is making Http Get to the server export const restApiGet = async (apiPath: string) => { const headers = { 'token': 'aaaa', 'postman-token': 'bbbb',...
Hard Worker's user avatar
  • 1,091

15 30 50 per page
1
2 3 4 5
103