总结错误 No mapping for GET /swagger-ui.html 在SpringBoot项目引入Swagger2后,在浏览器地址里输入地址:http://ip:port/swagger-ui.html 报错:Whitelabel Error PageThis application has no explicit mapping for /error, so you are seeing this as a fallback.Mon Dec 06 15:48:30 CST 2021There was an unexpected error (type=N
nginx加载配置invalid PID number错误 当重载配置时,报进程错误:# nginx -s reloadnginx: [error] invalid PID number "" in "/var/run/nginx.pid"由于修改了配置文件的指定,则需使用如下命令,只能nginx配置:# nginx -c /usr/local/nginx/conf/nginx.conf但由于修改导致该命名在启动时可能会报:nginx: [emerg] bind() to 0.0.0.0:3000 failed (98: Addr.
Vue改用history模式后Nginx代理报404 由于以前VUE采用hash模式:hash—— 即地址栏 URL 中的#符号(此 hash 不是密码学里的散列运算)比如:http://abc.example.com/abc/#/hello,hash 的值为#/hello现采用history模式:history—— 利用了 HTML5 History Interface 中新增的pushState()和replaceState()方法。(需要特定浏览器支持)比如:http://abc.example.com/a...
RSA加解密在Android中注意 问题:当在做普通接口开发时,一般在PC前后端加解密都没有问题,但是在Android中使用相同接口,发现无法解密!解决方案:这是由于java与android的加密算法不同导致,修改下android加密方法即可。有文章还提到android系统的RSA实现是"RSA/None/NoPadding",而标准JDK实现是"RSA/None/PKCS1Padding" ,这就是造成了在android机上加密后无法在服务器上解密的真正原因。我们实际采用的是如下解决,实测可用:J..
[记录]curl命令笔记 1、普通接口调用curl -H ‘Content-Type:application/json; charset=utf8’ -X POST http://10.10.10.22:8088/api/test2、测试接口响应时间curl -w "time_connect: %{time_connect}time_starttransfer: %{time_starttransfer}time_total: %{time_total}" -d "username=ea24943b&.