Java Code Examples for com.ruoyi.common.utils.ServletUtils#getRequest()
The following examples show how to use
com.ruoyi.common.utils.ServletUtils#getRequest() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ServerConfig.java From supplierShop with MIT License | 4 votes |
/** * 获取完整的请求路径,包括:域名,端口,上下文访问路径 * * @return 服务地址 */ public String getUrl() { HttpServletRequest request = ServletUtils.getRequest(); return getDomain(request); }
Example 2
Source File: BaseController.java From supplierShop with MIT License | 4 votes |
/** * 获取request */ public HttpServletRequest getRequest() { return ServletUtils.getRequest(); }
Example 3
Source File: ServerConfig.java From RuoYi-Vue with MIT License | 4 votes |
/** * 获取完整的请求路径,包括:域名,端口,上下文访问路径 * * @return 服务地址 */ public String getUrl() { HttpServletRequest request = ServletUtils.getRequest(); return getDomain(request); }
Example 4
Source File: ServerConfig.java From RuoYi with Apache License 2.0 | 2 votes |
/** * 获取完整的请求路径,包括:域名,端口,上下文访问路径 * * @return 服务地址 */ public String getUrl(){ HttpServletRequest request = ServletUtils.getRequest(); return getDomain(request); }