Sunday, November 26, 2023
How Request mapping or HandlerMapping works in Spring MVC? @RequestMapping Example
Monday, November 20, 2023
How to secure an URL using hasRole() in Spring Security? Is it enough to hide sections of JSP to protect URL? Example?
Monday, November 13, 2023
How to show current logged in username in JSP using Spring Security? Example Tutorial
Sunday, November 5, 2023
5 Ways to Update Values in ConcurrentHashMap in Java 8 - Example Tutorial
Monday, October 30, 2023
Why Java and Spring Developers Should Learn RESTful Web Services and Microservices
Monday, October 23, 2023
15 Example of print() and println() methods in Java
Hello guys, if you have learned Java in early 2000 then there is good chance that you must have written your first Java code using System.out.println(). For a long time, I have no idea what that mean but I alway use it to print messages on console. When I started working in Java and preparing for Java certification then I come to know that System is a class and out is an object of PrintStream which has println() method. That was a revelation for me. I also found that Java provides a powerful set of I/O classes for handling various input and output operations. Among these, the PrintStream class stands out as a versatile tool for writing formatted text to output streams. The print(), printf() and println() methods within the PrintStream class, as well as System.out.println(), are particularly useful for printing different types of data to the console or other output destinations.
Tuesday, October 10, 2023
How to fix Eclipse - Could not reserve enough space for object heap in Java? Solution
Monday, October 9, 2023
How to fix java.net.SocketException: Connection reset by peer: socket write error? [Solved]
Friday, October 6, 2023
How does Remember Me functionality works in Spring Security?
Wednesday, October 4, 2023
6 ways to sort ArrayList in Java 8? List.sort() + Collections.sort() Example Tutorial
Tuesday, October 3, 2023
How to enable RememberMe Functionality in Spring Security
Saturday, September 30, 2023
10 Exception handling Best Practices in Java Programming
How to Fix Exception in thread "main" java.lang.ExceptionInInitializerError in Java Program? Example
How to fix java.io.FileNotFoundException: (Access is denied)? Example
java.io.FileNotFoundException: maven-eclipse-web-demo (Access is denied)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:127)
at java.util.zip.ZipFile.<init>(ZipFile.java:88)
at sun.tools.jar.Main.list(Main.java:979)
at sun.tools.jar.Main.run(Main.java:224)
at sun.tools.jar.Main.main(Main.java:1149)