Java Web Weekly, Issue 169
Lots of interesting writeups on Java 9 this week. Here we go… 1. Spring and Java >> A Nice API Design Gem: Strategy Pattern With Lambdas [jooq.org] The introduction of lambda expressions and...
View ArticleIntroduction to Testing with Spock and Groovy
1. Introduction In this article, we’ll take a look at Spock, a Groovy testing framework. Mainly, Spock aims to be a more powerful alternative to the traditional JUnit stack, by leveraging Groovy...
View ArticleIntroduction to Project Jigsaw
1. Introduction Project Jigsaw is an umbrella project with the new features aimed at two aspects: the introduction of module system in the Java language and its implementation in JDK source and Java...
View ArticleJackson Streaming API
1. Overview In this article, we will be looking at the Jackson Streaming API. It supports both reading and writing, and by using it, we can write high-performance and fast JSON parsers. On the...
View ArticleReturning an Image or a File with Spring
1. Overview Serving static files to the client can be done in a variety of ways, and using a Spring Controller isn’t necessarily the best available option. However, sometimes the controller route is...
View ArticleIntro to JHipster
1. Introduction This article will give you a quick overview of JHipster, show you how to create a simple monolithic application and custom entities using command line tools. We will also examine the...
View ArticleIntro to Apache Kafka with Spring
1. Overview Apache Kafka is distributed and fault-tolerant stream processing system. In this article, we’ll cover Spring support for Kafka and the level of abstractions it provides over native Kafka...
View ArticleHTTP PUT vs HTTP PATCH in a REST API
1. Overview In this quick article, we’re looking at differences between the HTTP PUT and PATCH verbs and at the semantics of the two operations. We’ll use Spring to implement two REST endpoints that...
View ArticleFull-text Search with Solr
1. Overview In this article, we’ll explore a fundamental concept in the Apache Solr search engine – full-text search. The Apache Solr is an open source framework, designed to deal with millions of...
View ArticleJava Generics Interview Questions (+Answers)
1. Introduction In this article, we’ll go through some example Java generics interview questions and answers. Generics are a core concept in Java, first introduced in Java 5. Because of this, nearly...
View ArticleCORS in JAX-RS
1. Overview In this quick article, we’ll learn about how to enable CORS (Cross-Origin Resource Sharing) in a JAX-RS based system. We’ll set up an application on top of JAX-RS to enable CORS mechanism....
View ArticleValidating Input with Finite Automata in Java
1. Overview If you’ve studied CS, you’ve undoubtedly taken a course about compilers or something similar; in these classes, the concept of Finite Automaton (also known as Finite State Machine) is...
View ArticleIntroduction to TestNG
1. Overview In this article, we’ll introduce the TestNG testing framework. We’ll focus on: framework setup, writing simple test case and configuration, test execution, test reports generation, and...
View ArticleA Guide to the Java Web Start
1. Overview This article explains what Java Web Start (JWS) is, how to configure it on the server side, and how to create a simple application. 2. Introduction JWS is a runtime environment that comes...
View ArticleIntroduction to the Functional Web Framework in Spring 5
1. Introduction One of the main new features of Spring 5 will be a new Functional Web Framework built using reactive principles. In this article, we’ll have a look on how it looks like in practice. 2....
View ArticleGuide to Java 8 Comparator.comparing()
1. Overview Java 8 introduced several enhancements to the Comparator interface, including a handful of static functions that are of great utility when coming up with a sort order for collections. Java...
View ArticleComprehensive Guide to Null Safety in Kotlin
1. Overview In this article, we’ll be looking at the null safety features built into the Kotlin language. Kotlin provides comprehensive, native handling of nullable fields – no additional libraries...
View ArticleJava Web Weekly, Issue 170
Lots of interesting writeups on Java 9 this week. Here we go… 1. Spring and Java >> Java Finalization to be Deprecated? [infoq.com] It looks like Object.finalize() might be getting deprecated....
View ArticleA Guide to GemFire with Spring Data
1. Overview GemFire is a high performance distributed data management infrastructure that sits between application cluster and back-end data sources. With GemFire, data can be managed in-memory, which...
View ArticleExploring the Spring Boot TestRestTemplate
1. Overview This article explores the Spring Boot TestRestTemplate. It can be treated as a follow-up of The Guide to RestTemplate, which we firmly recommend to read before focusing on...
View Article