REST – Spring Boot

Since its inception in 2002, the Spring framework saw a tremendous growth in terms of functionalities which ultimately made the framework a bit complex. One of the main error-prone areas in traditional Spring programming was, of course, the enormous amount of config XML files that one had to create for a fairly large Spring project. […]

Read More

REST Service Using Spring

In this tutorial, we will be learning how a RESTful service can be built with Spring. We would be creating a simple Restful service using spring and running it in eclipse. Tools We will be using the following tools for development in this tutorial. Maven 3.3.9 Java 1.8.0.101 Spring Tool Suite [ standalone or eclipse plugin] […]

Read More

Heapsort

Task: We have to sort an array of some values using Heapsort in Java. The time complexity of Heap Sort algorithm is O(n * log(n)) as in the average case so in worst and best cases. The essence of heap sort is in finding the maximum value in non-sorted part of the array, putting it […]

Read More

Java 9 Features

Here are all the Java 9 features that will be making to the release in July 2017. Process API Updates HTTP/2 Client (Incubator) Improve Contended Locking Unified JVM Logging Compiler Control Variable Handles Segmented Code Cache Smart Java Compilation, Phase Two The Modular JDK Modular Source Code Elide Deprecation Warnings on Import Statements Resolve Lint […]

Read More

Convert a string representing a duration, ie: 300ms, 20s, etc to to nanoseconds

Suppose you have a string in your application that has the duration of time using ns, us ms , s h, d. And you want to convert them all to nano seconds, then utility will of great help to you.

Read More