Sunday, April 13, 2014

HOW-TO: Spring Boot and Thymeleaf with Maven

Spring Boot is a great piece of software allowing you to bootstrap Spring application within a few seconds. And it really works. As little configuration as possible to get started. And still possible to change the defaults. Let's see how easily is to bootstrap Spring MVC with Thymeleaf and Maven and work with it in IntelliJ.

Week 14 and 15 in links!

Welcome to the next installment of Codeleak.pl: Week Review!, which became bi-weekly (so new name should apply...) I want to share with you some interesting reads that I encountered within last two weeks. A very subjective selection.

Thursday, April 10, 2014

CSRF protection in Spring MVC, Thymeleaf, Spring Security application

Cross-Site Request Forgery (CSRF) is an attack which forces an end user to execute unwanted actions on a web application in which he/she is currently authenticated. Preventing CSRF attacks in Spring MVC / Thymeleaf application is fairly easy if you use Spring Security 3.2 and above.

Wednesday, April 9, 2014

Yet another way to handle exceptions in JUnit: catch-exception

There are many ways of handling exceptions in JUnit (3 ways of handling exceptions in JUnit. Which one to choose?, JUnit ExpectedException rule: beyond basics). In this post I will introduce catch-exception library that I was recommended to give a try. In short, catch-exceptions is a library that catches exceptions in a single line of code and makes them available for further analysis.

Monday, March 31, 2014

Week 12 and 13 review

Welcome to the next installment of Codeleak.pl: Week Review!. I want to share with you some interesting reads that I encountered within last two weeks. A very subjective selection.

Sunday, March 16, 2014

Week 10 and 11 Review

Welcome to the next installment of Codeleak.pl: Week Review!. I want to share with you some interesting reads that I encountered this and previous week. A very subjective selection.

Wednesday, March 5, 2014

HOW-TO: Test dependencies in a Maven project (JUnit, Mocito, Hamcrest, AssertJ)

JUnit itself is not enough for most of today's Java projects. You also need a mocking library, maybe something else. In this mini HOW-TO I present the test dependencies you can start with in a new Java project.

Fork me on GitHub