All posts by 龙生
【JavaEE初阶系列】——Cookie和Session应用之实现登录页面
//3.登录成功了,给这个用户创建一个会话出来
//可以给会话中保存一些自定义的数据,通过Attribute的方式来保存
HttpSession session=req.getSession(true);
//此处Attribute也是键值对,这里的内容存储什么都可以,程序员自定义
//这样的数据存储了之后,后续跳转到其他页面,也随时可以把这个数据从会话中取出来
session.setAttribute("username",username);
session.setAttribute("loginTime",System.currentTimeMillis());
//此时相当于登录成功了,让页面跳转到网站首页
resp.sendRedirect("index");
SpringBoot集成Session详解
Session是一个在Web开发中常用的概念,它表示服务器和客户端之间的一种状态管理机制,用于跟踪用户在网站或应用程序中的状态和数据。
View Details使用Docker安装MySQL
docker pull mysql:5.7
sudo docker run -p 3306:3306 --name mysql -e MYSQL_ROOT_PASSWORD=123456 -d mysql:5.7
Docker 安装 LogStash的详细过程
Logstash,作为Elastic Stack家族中的核心成员之一,是一个功能强大的开源数据收集引擎。它专长于从各种来源动态地获取、解析、转换和丰富数据,并将这些结构化或非结构化的数据高效地传输到诸如Elasticsearch等存储系统中进行集中分析和可视化展现。在本文中,我们将详细介绍如何借助Docker容器技术快速安装配置Logstash,以实现日志及各类事件数据的无缝集成与实时处理。
View DetailsDocker 部署 RocketMQ
1.拉取RocketMQ镜像
2.创建容器共享网络
3.启动NameServer
4.启动 Broker+Proxy
5.SDK测试消息收发
6. 停止容器
Configure NGINX Proxy for MinIO Server
The following documentation provides a baseline for configuring NGINX to proxy requests to MinIO in a Linux environment. It is not intended as a comprehensive approach to NGINX, proxying, or reverse proxying in general. Modify the configuration as necessary for your infrastructure. This documentation assumes the following: An existing NGINX deployment An existing MinIO deployment A DNS hostname which uniquely identifies the MinIO deployment There are two models for proxying requests to the MinIO Server API and the MinIO Console: Create or configure a dedicated DNS name for the MinIO service. For […]
View DetailsDocker 搭建 Minio 容器 (完整详细版)
Minio 是一个基于Apache License v2.0开源协议的对象存储服务,虽然轻量,却拥有着不错的性能。它兼容亚马逊S3云存储服务接口,非常适合于存储大容量非结构化的数据。
例如图片、视频、日志文件、备份数据和容器/虚拟机镜像等,而一个对象文件可以是任意大小,从几 kb 到最大 5T 不等。
View Details使用minio上传文件后,访问文件出现“AccessDenied ”的错误提示的解决办法
1. 上传一张图片到minio,成功后,访问时却提示“AccessDenied ”的如下错误: 2. 因为我是本地测试,不存在跟服务器时间差异的问题,也不存在nginx配置的问题(没用nginx),所以我就猜测这个肯定是权限的问题,于是就发现Buckets中确实有个配置Access Policy的地方 打开一看,果不其然,设置为public,然后保存 3. 再刷新刚才访问的地址,能正常访问了 from:https://blog.csdn.net/LT_1029/article/details/135602460
View Detailsnginx反向代理spring admin后,admin页面无法显示,静态资源加载不了
解决方法: spring boot admin设置配置:
1 |
spring.boot.admin.ui.public-url: http://xxx.xx.xxx.xxx:xxxx/ |
这个地址就是你ngnix代理的ip和端口 from:https://blog.csdn.net/qq_41032824/article/details/107392998
View Details.net core WebRequest请求报错The SSL connection could not be established
解决方案,添加证书忽略
1 2 3 |
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); request.ServerCertificateValidationCallback = (_s, _x509s, _x509c, _ssl) => { return (true); }; HttpWebResponse response = (HttpWebResponse)request.GetResponse(); |
from:https://www.cnblogs.com/real9527/p/17030336.html
View Details