This article will show you how to use Spring Security to protect your web application with Http Basic Authentication.
Sergei Sizov - Software Engineering
Programming in Java. Databases. Algorithms
Saturday, February 16, 2013
Log4jdbc: Logging JDBC activity and SQL queries
In an application that frequently queries a database it is important to know what is happening now, how often this or that query occurs and how long it takes to get result. Log4jdbc allows to log database activity e.g. SQL queries, processing time, result sets, connection usage.
Labels:
connection,
database,
jdbc,
logging
Friday, February 15, 2013
RestTemplate and HttpClient 4.1 configuration
This example shows how to configure Spring RestTemplate with Apache HttpClient 4.1 as a transport.
Labels:
basic auth,
http client,
rest template,
spring,
timeout
Monday, July 2, 2012
Spring MVC and Velocity WebApp
This tutorial shows how to use Velocity templates with Spring MVC. Velocity is more flexible templating engine than JSP/JSTL standard templates. We will create a simple application that contains 2 pages: list and detail. These pages will have common layout.
Labels:
layout,
spring mvc,
template,
tutorial,
velocity
Tuesday, May 8, 2012
MySQL: Sort by column with NULLs on top
Common task, when you need to sort table data by a column, that may have null values and you want to put nulls to the top.
Labels:
ifnull,
mysql,
nulls on top,
sort
Friday, April 27, 2012
Java: Release resources on program termination
Applications use different resources (database connections, file descriptors, etc.) that need to be released when program terminates.
Sunday, March 18, 2012
Wicket TinyMCE and AjaxButton
TinyMCE is a WYSIWYG editor, that can be used in Wicket to replace your TextAreas with a Rich Text Editor.
Subscribe to:
Posts (Atom)