HttpClient 4 examples and best practices.
Search Results for: set
Guava Functional Cookbook
Guava Predicate and Function examples and usage best practices.
Error Handling for REST with Spring
Exception Handling for a REST API – illustrate the new Spring recommended approach and earlier solutions.
Guava Collections Cookbook
Guava Collections Cookbook illustrating code examples and nothing else.
Properties with Spring and Spring Boot
Tutorial for how to work with properties files and property values in Spring.
The DAO with JPA and Spring
How to implement the DAO with JPA in a Spring project.
Hibernate Mapping Exception – Unknown Entity
Hibernate Mapping Exception – Unknown Entity – causes and solutions.
Apache HttpClient with SSL
Example of how to configure the HttpClient with SSL.
RestTemplate with Digest Authentication
How to set up Digest Authentication for the Spring RestTemplate using HttpClient 4.
HttpSessionListener Example – Monitoring
Set up a HttpSessionListener to track the number of active sessions in a web application.
Spring Security Remember Me
Cookie Remember Me example with Spring Security.
Versioning a REST API
Versioning a REST API – version identifier in the URI or version media types?
Java Session Timeout
Configure Session Timeout in the web.xml of a Java Servlet web application, and globally for a Tomcat or Jetty Server.
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.
Unable to Locate Spring NamespaceHandler for XML Schema Namespace
Solving the – Unable to locate Spring NamespaceHandler for XML schema namespace – for all namespaces.
Spring Security Digest Authentication
Digest Authentication with a Spring MVC project – the XML namespace configuration and several examples of consuming the application with curl.
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.
Spring Security Authentication Provider
How to Set Up a Custom Authentication Provider with Spring Security and the namespace configuration.