Java
-

REST: Partial updates with PATCH
In previous posts we learned how to update/replace resources using the HTTP PUT operation. We also learned about the differences…
Read More » -

Testing with Mockito
1) Register MockitoExtension @ExtendWith(MockitoExtension.class) class ObjectTest { static final Long ID = 1L; 2) Create the mock @Mock private ObjectRepo…
Read More » -

Spring Injection Types
Spring supports three types of dependency injections: Constructor injection @Component public class SecondBeanImpl implements SecondBean { private FirstBean firstBean; @Autowired…
Read More » -

Testing Logging Output in Java
One of my more popular posts on this site is on how to use Mockito to mock logging. Testing that…
Read More » -

How to get current date time with Java 8
In this quick tutorial, we will see, how to get current date time using Java 8. Java 8 had come…
Read More » -

Static Nested Classes Java
In Java, it is possible to define a class within another class. Class defined within another Class is called a…
Read More » -

Apache Lucene performance on 128-core AMD Ryzen Threadripper 3990X
Almost a decade ago, I started running Lucene’s nightly benchmarks, and have been trying with mixed success to keep them…
Read More » -

Content-Security-Policy Nonce with Spring Security
Content-Security-Policy is important for web security. Yet, it’s not mainstream yet, it’s syntax is hard, it’s rather prohibitive and tools rarely…
Read More » -

Spring Cloud Sleuth 3.0.0 released
With the release of the Spring Cloud 2020.0.0 (aka Ilford) release train we’re more than happy to announce the general…
Read More »




