2019年12月24日

postman中 form-data、x-www-form-urlencoded、raw、binary的区别

摘要: 请参考: https://blog.csdn.net/ye1992/article/details/49998511 阅读全文

posted @ 2019-12-24 09:26 滚动的蛋 阅读(1474) 评论(0) 推荐(0)

2019年12月23日

一个项目中:只能存在一个 WebMvcConfigurationSupport (添加swagger坑)

摘要: 问题再现: 1、添加了swagger配置,导致接口响应的中文乱码 2、于是又添加了配置解决中文乱码的配置: 问题来了,添加了CharsetConfig 配置后swagger的配置失效了,访问404,搞了好久才明白,原因时两个配置都继承了WebMvcConfigurationSupport ,而多个继 阅读全文

posted @ 2019-12-23 10:40 滚动的蛋 阅读(2354) 评论(0) 推荐(0)

2019年12月19日

Nginx 转发特点URL到指定服务

摘要: location ^~ /fs/ {#如https://xx.com/fs/upload 转发到文件服务器 proxy_pass http://127.0.0.1:8080/fs/; } 阅读全文

posted @ 2019-12-19 20:58 滚动的蛋 阅读(2077) 评论(0) 推荐(0)

2019年12月17日

nginx反向代理tomcat 时,出现https redirect后变成http的问题解决方法

摘要: 需要修改两个配置 1、nginx配置 location / { proxy_pass http://test-server; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header 阅读全文

posted @ 2019-12-17 15:50 滚动的蛋 阅读(2498) 评论(0) 推荐(0)

2019年12月13日

windows 查看端口占用和杀死进程

摘要: 在windows命令行窗口下执行:C:\>netstat -aon|findstr "3306" 如上图,端口被进程号为5056的进程占用,继续执行下面命令:C:\>taskkill /f /t /im 5056 阅读全文

posted @ 2019-12-13 16:20 滚动的蛋 阅读(309) 评论(0) 推荐(0)

2019年12月7日

springboot 集成swagger2.x 后静态资源报404

摘要: package com.bgs360.configuration; import org.springframework.context.EnvironmentAware; import org.springframework.context.annotation.Bean; import org. 阅读全文

posted @ 2019-12-07 09:27 滚动的蛋 阅读(2511) 评论(0) 推荐(0)

2019年12月5日

Nginx 配置https

摘要: 1、准备好网站域名的https证书,后缀名如下,上传到服务器上。 xxx.pem xxx.key 2、配置nginx.conf server { listen 443 ssl; server_name scm.xxx.com; ssl on; ssl_certificate ./cert/cert. 阅读全文

posted @ 2019-12-05 17:41 滚动的蛋 阅读(478) 评论(0) 推荐(0)

Nginx 配置访问静态资源

摘要: 做个简单的配置: 以txt/png/mp4结尾的请求都会按照如下规则寻找返回文件 关键词: location、root location ~ \.(mp4|png|txt) { root /usr/local/tomcat9/webapps/scm; autoindex on; } 主义root代表 阅读全文

posted @ 2019-12-05 17:28 滚动的蛋 阅读(2606) 评论(0) 推荐(0)

2019年12月2日

[jenkins] 启动错误 Failed to start LSB: Jenkins Automation Server.

摘要: 解决办法见https://blog.csdn.net/qq_34208844/article/details/87865672 阅读全文

posted @ 2019-12-02 10:42 滚动的蛋 阅读(2274) 评论(0) 推荐(0)

2019年11月21日

JS !function 稀奇古怪的写法

摘要: !function(){alert("Execute after ()fun!")}(alert("Execute Firstly!")) 注意上面的执行顺序 阅读全文

posted @ 2019-11-21 12:00 滚动的蛋 阅读(207) 评论(0) 推荐(0)

导航