Old thread, but here is how you do it:
<cache:annotation-driven key-generator="myKeyGenerator" />
<bean id="myKeyGenerator" class="com.whereever.spring.MyLessSuckyKeyGenerator" />
As...
Type: Posts; User: AuPanner; Keyword(s):
Old thread, but here is how you do it:
<cache:annotation-driven key-generator="myKeyGenerator" />
<bean id="myKeyGenerator" class="com.whereever.spring.MyLessSuckyKeyGenerator" />
As...
I've run into a funny problem where some derived controller classes do not have the parent's @ExceptionHandler applied. Here was the code in question:
abstract class BaseController {
...
Here's an excerpt of what I'm using. INFO is a nice level to start with.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM...
Ancient question, but following up for posterity. It is even more specific than that. As of 3.1.0, the exception parameter of afterCompletion is only defined if an exception is thrown during the...
Unfortunately it is not, but reading through DispatcherServlet gives me a number of ideas about how to make it work.
An interceptor's postHandle is not called if:
any preHandle returns false any...
I have a MVC restful spring application set up. I have an interceptor, @Controller, and @ExceptionHandler. When processing a correct request, everything works fine:
preHandle Controller...
Catch TypeMismatchException to deal with bad parameters and MissingServletRequestParameterException to deal with invalid/missing parameters (when required != false). For example,
...