Sometimes, because of misconfiguration, JaCoCo Maven Plugin can stop working and begin notifying you about it with the following annoying message
1 2 3 4
Let’s consider some common misconfiguration cases.
The first new major update for Jackson since the official 1.0 release was released March 25, 2012.
But the current version (1.17.1) of Jersey 1.x still uses Jackson 1.9
If your project has REST integration tests and you sure that update is really needed and possible (there is no library in your class pass which depends strongly on Jackson 1.x), you can follow this simple and short manual to upgrade.
Running Embedded Jetty on a random available port would be handful:
- for integration testing: you can run several builds on the same continuous integration worker without port conflicts
- for deployment: when you do not know where a particular port is taken or not
- for development: you can run several instances of your web application just from your favourite IDE or CLI
- for lulz
This article is about how to customize Spring Security Remember me attributes like:
- SPRING_SECURITY_REMEMBER_ME_COOKIE cookie name
- _spring_security_remember_me form field/parameter
- token length
When I first tried to test my web application guarded by Spring Security with Spring MVC Test framework I noticed that Spring Security wasn’t enabled in the test context, but was in browser.
That “strange” behavior can be fixed by the following steps:
A short note on how Eclipse can improve your efficiency with class imports.
How to implement Binary Search algorithm which returns index of the first occurrence of a given value in a sorted array with repeated values.