Spring MVC Interview Questions 1. Introduction Spring MVC is the original web framework from Spring built on the Servlet API. It provides Model-View-Controller architecture that can be used to develop flexible web applications. In this tutorial, we’ll focus on the questions related to it, as it is often a topic on… Continue Reading spring-mvc-interview-questions

Java Weekly, Issue 239 Here we go… 1. Spring and Java ===== >> Refining functional Spring [blog.frankel.ch] A quick write-up touching on a few nuances of writing handlers and routes in this exciting new functional approach to Spring Boot. https://blog.takipi.com/improve-your-application-performance-with-garbage-collection-optimization/

A Guide to NanoHTTPD 1. Introduction NanoHTTPD is an open-source, lightweight, web server written in Java. In this tutorial, we’ll create a few REST APIs to explore its features. 2. Project Setup Let’s add the NanoHTTPD core dependency to our pom.xml: <dependency> <groupId>org.nanohttpd</groupId> <artifactId>nanohttpd</artifactId> <version>2.3.1</version> </dependency> To create a simple server, we… Continue Reading nanohttpd

Guava CharMatcher In this quick tutorial we’ll explore the CharMatcher utility class in Guava. 1. Remove Special Characters from a String Let’s start by removing all special characters from a String. In the following example, we remove all characters that aren’t digit or letter using retainFrom(): @Test public void whenRemoveSpecialCharacters_thenRemoved(){… Continue Reading guava-string-charmatcher

Hibernate 5 Bootstrapping API 1. Overview In this tutorial, we’ll explore the new mechanism by which we can initialize and start a Hibernate SessionFactory. We’ll especially focus on the new native bootstrapping process as it was redesigned in version 5.0. Prior to version 5.0, applications had to use the Configuration class to bootstrap the SessionFactory.… Continue Reading hibernate-5-bootstrapping-api