Well for an over simplified example with XML.
If you hit the controller the service will execute and the before advice will run resulting in the following output:
INFO : com.sample.app.advice.BeforeAdvice - Advice before the service
INFO : com.sample.app.service.SampleServiceImpl - Hello World!
I assume you are using STS, if you are create a new project from the spring-mvc project template that will generate the structure and the
jsp and controller and most of the config. I started with this so you could easily reproduce it. I did change the spring version to 3.1.2
Now here is what I put in my root context
servlet-context
My Service interface and implementation
My advice
Controller