annotation « Database « Spring Q&A





1. Spring - Annotation Based Controller - RequestMapping based on query string    stackoverflow.com

In Spring annotation-based controller, is it possible to map different query strings using RequestMapping to different methods. for example

@RequestMapping("/test.html?day=monday")
public void writeMonday() {
}


@RequestMapping("/test.html?day=tuesday")
public void writeTuesday() {
}
Thanks.

2. externalizing queries when using annotations?    forum.springsource.org

externalizing queries when using annotations? I'd like to externalize my query strings so that they're in xml files instead of in my java code. My dao configuration is as follows, and ...