@Controller(value="resourceRequestService") @RequestMapping(value="/resources") @LoginStatusChecker(required=false) public class ResourcesRequestService extends java.lang.Object
构造器和说明 |
---|
ResourcesRequestService() |
限定符和类型 | 方法和说明 |
---|---|
void |
getResources(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String path)
获取图标字体等资源
|
@RequestMapping(method=GET, produces="*/*") @ResponseBody public void getResources(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, @RequestParam(value="path") java.lang.String path) throws java.lang.Exception
req
- http请求res
- http响应path
- 资源路径java.lang.Exception
- 资源获取失败则抛出此异常