Blog Posts

Recent posts

Java - Spring boot with JAX-RS

less than 1 minute read

Enabling Spring boot to use JAX-RS https://dzone.com/articles/using-jax-rs-with-spring-boot-instead-of-mvc http://blog.codeleak.pl/2015/01/getting-started-wi...

Java 9 - useful commands to inspect Module

less than 1 minute read

List modules 1 2 $ java --list-modules $ java --list-modules java.base Diagnostic module dependencies 1 2 $ java -Xdiag:resolver -p mods [module name]/[clas...

Java 8 - general practice using Optional

less than 1 minute read

0. Never, ever use null for an Optional variable. 1. Optional should be only used as a return value. : never use it for a field in Class and a method para...

Docker - useful command

less than 1 minute read

1 2 3 $ docker log <container id> // show logs $ docker port <container id> // show port mapping $ docker inspect <container id> // inspect...

Java - Task polling example with Java 8

less than 1 minute read

1 2 3 4 5 6 7 8 9 10 11 public void completionService(ExecutorService executor) { CompletionService<CustomTaskResult> completionService = n...