How to handle date and time in Java 8 or higher version?

Java Annotation

How to handle date and time happily in Java 8 or higher java version? How to use LocalDate to design a simple Calendar? LocalDate provides some useful static methods to help develop some complexed programs. The simple calendar program as follwoing: Why Java 8 added LocalDate and LocalTime interface? Java 8 has added a new interface LocalDateand LocalTimeinterface. … Read more

Why we must obey the general contract when overriding equals?

What is JavaBean

Why we must obey the general contract when overriding equals? For Java programmers, it seems simple to override the equals method, but there are many ways to get it wrong, and consequences can be dire. In some cases, the easiest way to avoid problems is not to override the equals method, in which case each … Read more

Spring Boot Getting Started Tutorial – HelloWorld Example

Spring Boot Getting Started Tutorial

In this Spring Boot Getting Started Tutorial, I will share two ways to fastly create a web application based on Spring Boot. As we know, Spring boot is one increasing popular Spring framework module, which provides rapid application development features to the Spring framework. Spring Boot makes it easy to create stand-alone, production-grade Spring-based Applications … Read more