摘要:
在同一控制器类中处理多个请求的MultiActionController.具体调用的方法通过MethodNameResolver决定(InternalPathMethodResolver, ParameterMethodNameResolver, PropertiesMethodResolver)方法签名:public (ModelAndView | Map | String | void) actionName(HttpServletRequest request, HttpServletResponse response, [,HttpSession] [,AnyObject]);Inte 阅读全文
摘要:
开始学习springMVC首先下载springMVCjar包 在web.xml里注册servlet test org.springframework.web.servlet.DispatcherServlet test *.abc 然后根据web.xml文件里的test名字创建test-servlet.xml文件springMVC主要有DispatcherServlet----->controller----->modelandview实例代码:startControlleraddControlleraddEmpControllerorg.springframework.web.p 阅读全文
摘要:
private bool SaveAll() { TransactionOptions transactionOption = new TransactionOptions(); transactionOption.Timeout = new TimeSpan(0, 0, 600); using (TransactionScope tscope = new TransactionScope(TransactionScopeOption.Required, transactionOption)) ... 阅读全文