A quick list of the most popular articles from 2013, by number of views.
Search Results for: list
Java 8 – Powerful Comparison with Lambdas
Elegant Sort in Java 8 – Lambda Expressions go right past syntactic sugar and bring powerful functional semantics into Java.
Jackson – Unmarshall to Collection/Array
How to map a JSON Array correctly in a type-safe manner to a Java Collection.
Serialize Only Fields That Meet a Custom Criteria With Jackson
Only serialize fields that meet your custom criteria using Jackson 2.
Creating a Web Application with Spring 5
How to Bootstrap a Web Application with Spring and Java-based Configuration.
Apache HttpClient Cookbook
HttpClient 4 examples and best practices.
Mockito When/Then Cookbook
Mockito configure Behavior –
examples, usage and best practices.
Mockito Verify Cookbook
Mockito Verify
examples, usage and best practices.
Guava Functional Cookbook
Guava Predicate and Function examples and usage best practices.
Hamcrest Collections Cookbook
Common Hamcrest matchers helpful when working with Collections and arrays.
Error Handling for REST with Spring
Exception Handling for a REST API – illustrate the new Spring recommended approach and earlier solutions.
Guava Ordering Cookbook
Guava Ordering Cookbook illustrating code examples and nothing else.
Guava Collections Cookbook
Guava Collections Cookbook illustrating code examples and nothing else.
The DAO with JPA and Spring
How to implement the DAO with JPA in a Spring project.
Expand Shortened URLs with Apache HttpClient
Learn how to expand shortened URLs in Java using the Apache HttpClient.
Versioning a REST API
Versioning a REST API – version identifier in the URI or version media types?
Apache HttpClient Timeout
How to set up timeout for an HttpClient – connection and socket timeouts, and a mechanism for hard timeout of ongoing http connections.
Redirect to Different Pages After Login With Spring Security
Example of how to Redirect to different pages after Login with Spring Security.
Spring NoSuchBeanDefinitionException
Causes and Solutions for the NoSuchBeanDefinitionException in Spring – “No qualifying bean of type”, “No Bean Named”, Proxied Beans, etc.
Control the Session with Spring Security
Configure Sessions with Spring Security – set up Concurrent Sessions, enable Session Fixation Protection and prevent URLs from containing Session information.