Search:

Type: Posts; User: AuPanner; Keyword(s):

Search: Search took 0.12 seconds.

  1. Old thread, but here is how you do it: ...

    Old thread, but here is how you do it:

    <cache:annotation-driven key-generator="myKeyGenerator" />
    <bean id="myKeyGenerator" class="com.whereever.spring.MyLessSuckyKeyGenerator" />

    As...
  2. Problems with Abstract Controller @ExceptionHandlers

    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 {
    ...
  3. Replies
    3
    Views
    3,047

    Here's an excerpt of what I'm using. INFO is a...

    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...
  4. Ancient question, but following up for posterity....

    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...
  5. Replies
    4
    Views
    1,135

    Unfortunately it is not, but reading through...

    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...
  6. Replies
    4
    Views
    1,135

    Interceptor postHandle skipped on exception

    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...
  7. Handling invalid @RequestParam input

    Catch TypeMismatchException to deal with bad parameters and MissingServletRequestParameterException to deal with invalid/missing parameters (when required != false). For example,



    ...
Results 1 to 7 of 7