我是Spring MVC 3.0的新手,我有struts 2.0的背景.我对xml中的配置很满意.
所以,我正在寻找一种方法来表示springdispatcher-servlet.xml中的@RequestMapping或任何其他依赖的xml.
有没有办法将@RequestMapping注释移动到xml文件?
作为一个附带问题,
@RequestMapping对每个Action的struts单点入口的各个方法有什么好处?
下面是一个示例类:
@Controller
public class ContentController {
@RequestMapping(value="/content", method=RequestMethod.GET)
public ModelAndView getContent() {
// do something
}
@RequestMapping(value="/savecontent", method=RequestMethod.GET)
public ModelAndView getSaveContent() {
// do something
}
}
Run Code Online (Sandbox Code Playgroud)
问候.
我在sybase方面有很好的经验,并且在空闲时间开始研究oracle.我使用过的大多数sybase过程都有临时表,加入两个或多个临时表得到结果集是有意义的.
问题:有没有办法连接两个或多个游标,如逻辑表.
就像是:
SELECT c1.id,
c2.name
FROM cursorEmp c1,
CursorDept c2
WHERE c1.DeptId = c2.DeptId
Run Code Online (Sandbox Code Playgroud)