240 发简信
IP属地:重庆
  • outputStream.close();后面得加converter.shutDown();关闭转化器不然运行一段时间会卡死。

    springboot中Word转PDF技巧

    最近两天在弄office套餐的各种转换,刚开始用了easypoi对excel进行了各种操作,十分的方便。但是有个新需求是上传word文档,然后下载的时候是原word文档,预览...

  • mybatis-plus代码生成器

    1.代码生成器代码 2.pom文件依赖

  • public class HttpContextUtils {
    public static HttpServletRequest getHttpServletRequest() {
    return ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
    }
    }

    import javax.servlet.http.HttpServletRequest;

    public class IPUtils {
    public static String getIpAddr(HttpServletRequest request) {
    String ip = request.getHeader("x-real-ip");

    if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
    ip = request.getHeader("x-forwarded-for");
    if (ip != null) {
    ip = ip.split(",")[0].trim();
    }
    }

    if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
    ip = request.getHeader("Proxy-Client-IP");
    }

    if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
    ip = request.getHeader("WL-Proxy-Client-IP");
    }

    if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
    ip = request.getRemoteAddr();
    }

    return ip;
    }
    }
    网上找的utils可以用

    springboot—spring aop 实现系统操作日志记录存储到数据库

    记录系统用户的操作日志 采用方案: 使用spring 的 aop 技术切到自定义注解上,针对不同注解标志进行参数解析,记录日志缺点是要针对每个不同的注解标志进行分别取注解标志...

  • springboot—spring aop 实现系统操作日志记录存储到数据库

    记录系统用户的操作日志 采用方案: 使用spring 的 aop 技术切到自定义注解上,针对不同注解标志进行参数解析,记录日志缺点是要针对每个不同的注解标志进行分别取注解标志...

个人介绍
let's see who is the real evil genius ?