Blog

Posted by Stanislav Miklik | 06 08 2015| spring
Spring Boot configuration of wro4j

What is wro4j Since you are here, you most likely know, but for others. wro4j (Web Resource Optimizer for Java) allows you (as name suggests) to optimize your web resources. Typically when you build (rich) web application you use several CSS/JS frameworks and develop additional CSS/JS of your own. And all of this needs to be downloaded to...

Continue reading
Posted by Stanislav Miklik | 16 04 2015| spring
Netflix Zuul vs Nginx performance

Nowadays you can hear lot about microservices. Spring Boot is an excellent choice for building single microservice but you need to interconnect them somehow. That's what Spring Cloud tries to solve (among other things) - especially Spring Cloud Netflix. It provides various components e.g. Eureka discovery service together with client side load balancer Ribbon for inter-microservice...

Continue reading
Posted by Stanislav Miklik | 15 04 2015| java
Java generics and class literals

Recently I stumble upon more problem with generics and class literals. I wanted to use Mockito ArgumentCaptor to capture List<Long> argument. As we know there is nothing like List<Long>.class so how to create properly parametrized type? Simple attempt does not work ArgumentCaptor<List<Long>> captor = (ArgumentCaptor<List<Long>>) ArgumentCaptor.forClass(List.class); and ends with compiler error "Cannot cast from ArgumentCaptor<List> to...

Continue reading
Posted by Stanislav Miklik | 26 09 2014| spring
Exception handling in Spring MVC

I have came across an interesting blog about exception handling in Spring MVC. It nicely describe different options how to handle exceptions in MVC controllers. As usual Spring gives you variety of options, so it is up to you to decide which works better for you. However with power comes the responsibility and you can't...

Continue reading
Posted by Stanislav Miklik | 07 09 2014| linux
Making panorama

I came from vacation and I wanted to make panorama photo. Google came as my friend and I found Hugin - Panorama photo stitcher. Everything worked smoothly and I had my first panorama photo. I can only recommend it. Pls, take a look: Chania port

Continue reading