atitit.spring3 mvc url配置最佳实践
1. Url-pattern bp 1
2. 通用星号url pattern的问题 1
3. Other code 1
4. 参考 2
1. Url-pattern bp
Default <url-pattern>/</url-pattern>
<url-pattern>/*</url-pattern>
中间容易的冲突....spr十为了restful风格,,才默认中配置的..
跟个dwr3雅十... <url-pattern>/spr/*</url-pattern>
访问 http://localhost/gialen/spr/process.json
2. 通用星号url pattern的问题
Override zaid cfg mvc like...
作者:: 老哇的爪子 Attilax 艾龙, EMAIL:[email protected]
转载请注明来源: http://blog.csdn.net/attilax
3. Other code
@Controller
public class FileUploadController
Todox /process.json jeig zeush startChar match d path..
@RequestMapping(value = "/process.json", method = RequestMethod.GET)
@ResponseBody
public Object process(HttpServletRequest request,
HttpServletResponse response) throws Exception {
core.log("=========process.json");
return ( ProcessInfo)request.getSession().getAttribute("proInfo");
}
4. 参考
paip.spring3 mvc servlet的配置以及使用最佳实践 - attilax的专栏 - 博客频道 - CSDN.NET
atitit.spring3 mvc url配置最佳实践