- 博客(5)
- 收藏
- 关注
原创 nginx正向代理、反向代理https
- 反向代理https若代理出口为http,正常proxy_pass代理即可如:代理https://www.baidu.com/......listen 80;resolver 114.114.114.114 valid=30s;...... location / { proxy_pass https://www.baidu.com; }...... 访问http://localhost即可代理到https://www.baidu.com代理出口为https
2020-11-26 16:08:20 699
原创 mybatis in超过1000报错解决方案
<delete id="deleteByMsgIds"> DELETE FROM message WHERE msg_id in <trim suffixOverrides=" OR id IN ()"> <foreach item="item" index="index" collection="list" open="(" close=")"> &
2020-09-15 11:08:26 513
转载 SpringBoot拦截异常并统一处理-@ControllerAdvice
Spring Boot 系列(八)@ControllerAdvice 拦截异常并统一处理在spring 3.2中,新增了@ControllerAdvice 注解,可以用于定义@ExceptionHandler、@InitBinder、@ModelAttribute,并应用到所有@RequestMapping中。参考:@ControllerAdvice 文档一、介绍创建 MyControllerAdvice,并添加 @ControllerAdvice注解。package com.sam.demo.co
2020-08-25 15:27:23 349
原创 脚本方式本地仓库jar包批量导入maven私服
脚本内容,将以下内容保存为mavenimport.sh,放置于需要上传的目录下,可以是顶层目录,或者某个分包的目录,若私服已有待上传的包,则执行会被替换#!/bin/bash# copy and run this script to the root of the repository directory containing files# this script attempts to exclude uploading itself explicitly so the script name is
2020-05-09 14:18:56 2447 1
原创 k8s部署服务请求的CPU超出了节点的能力范围
k8s启动pod时状态:kubectl get pod cpu-demo-2 --namespace=cpu-exampleNAME READY STATUS RESTARTS AGEcpu-demo-2 0/1 Pending 0 7m查看pod状态:kubectl -n cpu-example describe...
2020-04-16 09:18:55 1720
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人