Remove duplicate custom objects from arraylist in java
Recently i write one post related to remove duplicate object from Array, But in that example i used String Example and String is immutable object and too much feet for…
Recently i write one post related to remove duplicate object from Array, But in that example i used String Example and String is immutable object and too much feet for…
Problem: ” HashMap does not preserve insertion order “. HashMap is collection of Key and Value but HashMap does not give guaranty that insertion order will preserve. i.e here we…
This article contains example of how to remove duplicate value from array in java with different different methods like using Set, using stream dicstinct funcation. Example 1 : Remove duplicate…
During configure spring security with my project i find java.lang.IllegalArgumentException error and also fine its solution by me: my SpringSecurityWebConfig as bellow and when i run my project at initial level…
Problem: Trace: HTTP Status 403 – Could not verify the provided CSRF token because your session was not found. type Status report message Could not verify the provided CSRF token…
There are two stages where documents can be boosted: At index time and at query time. here we discuss index time boost feature solr. This is probably the simplest way,…
Problem: public class SecurityWebApplicationInitializer extends AbstractSecurityWebApplicationInitializer { public SecurityWebApplicationInitializer(){ super(SpringSecurityWebConfig.class); } } Trace: java.lang.IllegalStateException: Cannot initialize context because there is already a root application context present – check whether you…
Queries can be used in query context, and filters can be used in filter context. When used in filtering context, the query is said to be a “non-scoring” or “filtering”…
This example of Spring4 MVC + Maven + XML based configuration. So many time we required return response in JSON format, Spring provide easy way to convert your response in…
Trace : Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512M; support was removed in 8.0 Solution 1: Open intellij install location->bin Edit idea.exe.vmoptions file Remove -XX:MaxPermSize=250m or -XX:MaxPermSize=[X]m Save…