Java 9 create immutable Map
Details Explanation of java.util.Map Collection enhancement in Java 9 The Map.of() and Map.ofEntries() static factory methods provide a convenient way to create immutable maps. The Map instances created by these methods…
Details Explanation of java.util.Map Collection enhancement in Java 9 The Map.of() and Map.ofEntries() static factory methods provide a convenient way to create immutable maps. The Map instances created by these methods…
Details Explanation of java.util.Set enhancement in Java 9 The Set.of() static factory methods provide a convenient way to create immutable sets. The Set instances created by these methods have the…
During application development so many times we are implementing Threading Concepts but sometimes java directly does not provide and inbuilt functionality that we will notify that thread execution has been…
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…