![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
工具类
文章平均质量分 92
学习使我快乐@~
Java
展开
-
springboot获取请求映射路径(url)
1.sprongboot获取所有的url和对应类和方法以及请求类型 代码如下:package com.es.config;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.RequestMapping;import org.sprin原创 2020-07-03 00:02:48 · 9520 阅读 · 0 评论 -
获取IP地址工具类
IP地址工具类package com.cy.pj.common.util;import javax.servlet.http.HttpServletRequest;import org.slf4j.Logger;import org.slf4j.LoggerFactory;import org.springframework.util.StringUtils;import org.springframework.web.context.request.RequestContextHolder原创 2020-07-02 23:18:01 · 146 阅读 · 0 评论