2023/4/13

springboot logback.xml 配置

springboot logback.xml 配置 <?xml version="1.0" encoding="UTF-8"?> <configuration debug="false"> <!--定义日志文件的存储地址 --> <property na…

  • springboot
  • 2023/4/13
  • 604
  • 2022/11/1

    nginx 反向代理 websocket连接失败

    在反向代理中增加如下配置 关键配置 start proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; 关键配置 end

  • nginx springboot websocket
  • 2022/11/1
  • 650
  • 2022/7/11

    springboot 获取ip

    String ip = request.getHeader("x-forwarded-for");         if (ip == null || ip.length() == 0&nbs…

  • springboot
  • 2022/7/11
  • 828
  • 2022/6/29

    nginx 转发wss连接失败 springboot wss连接失败 jeecg-boot连接失败

    location ^~ / { proxy_pass              http://127.0.0.1:8081/; proxy_set_header     &n…

  • jeecgboot nginx springboot
  • 2022/6/29
  • 637
  • 2022/6/18

    Springboot发送http\post\get请求(使用RestTemplate)

    Springboot发送http请求(使用RestTemplate) 零、关键类介绍 public class HttpEntity<T> {     public static final HttpEntity<?> EMPTY = new HttpEntity();     private final HttpHeaders headers;…

  • springboot
  • 2022/6/18
  • 815
  • 2022/5/10

    springboot事务

    @Transactional //出现异常就回滚 @Transactional(rollbackFor = Exception.class) //捕获异常也回滚 TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); //手…

  • springboot
  • 2022/5/10
  • 762
  • 2022/4/8

    spring 非 controller调用service类

    org.jeecg.modules.activiti.listenerlombok.extern.slf4j.org.flowable.engine.HistoryServiceorg.flowable.engine.RuntimeServiceorg.flowable.engine.delegate.DelegateExecutionorg.flowable.engine.delegate.E…

  • springboot
  • 2022/4/8
  • 717