Security Misconfiguration. In this post, you will see how you can handle exceptions that arise out of a Spring MVC based application.
In a web application, it is very important to handle errors. Proper error handling would protect the application from several vulnerabilities, including Codelooru is a technology blog that covers a variety of topics ranging from languages like Java, Spring, Groovy, databases like Cassandra, Postgresql, cloud services like AWS, Azure, etc.
Showing posts with label Java. Show all posts
Showing posts with label Java. Show all posts
Java - How to find the IP Address of a host in Java ?
In Java, if you are looking to resolve an IP Address from the given hostname, then you can leverage the capabilities provided by
InetAddress
. It belongs to the "java.net"
package and provides various utilities related to resolving addresses and IPs. Localization with Spring

Before jumping into what Spring has to offer, let's explore what we get from Java itself.
Deep Copy Java Objects through Serialization
When it comes to deep copy or cloning an object, the first thing that comes to mind is to override the
clone()
method and set each field manually. This can be pretty cumbersome to implement for complex objects or if you have to do this for a lot of them.JSON Property Name Customization in Jackson using PropertyNamingStrategy

Subscribe to:
Posts (Atom)