在web.xml中配置以下内容: <!--配置MVC的乱码过滤--> <filter> <filter-name>encoding</filter-name> <filter-class>org.springframework.web.filter.CharacterEncodingFilter</ ...
分类:
Web程序 时间:
2021-01-15 11:50:19
阅读次数:
0
使用nginx做反向代理的时候,可以简单的直接把请求原封不动的转发给下一个服务。设置proxy_pass请求只会替换域名,如果要根据不同的url后缀来访问不同的服务,则需要通过如下方法: 方法一:加"/" server { listen 8000; server_name abc.com; acce ...
分类:
其他好文 时间:
2021-01-15 11:49:43
阅读次数:
0
Ef Core 快速开始实例 创建一个空的web api 项目 添加 Pomelo.EntityFrameworkCore.Mysql 的nuget包引用 创建实体 创建DbContext 配置连接字符串并且注入DbContext 使用DbContext完成数据查询与插入 #步骤一 创建 netco ...
分类:
Web程序 时间:
2021-01-15 11:47:25
阅读次数:
0
docker run -d \ --name=mstream \ -e PUID=1000 \ -e PGID=1000 \ -e USER=leander806 \ -e PASSWORD=zhangyao13! \ -e USE_JSON=true/false \ -e TZ=Asia/Shan ...
分类:
其他好文 时间:
2021-01-15 11:44:38
阅读次数:
0
Spring框架支持以下五种bean的作用域: (1)singleton: bean在每个Springioc容器中只有一个实例。 (2)prototype:一个bean的定义可以有多个实例。 (3)request:每次http请求都会创建一个bean,该作用域仅在基于web的SpringApplic ...
分类:
编程语言 时间:
2021-01-14 11:32:29
阅读次数:
0
注:使用kube-prometheus安装非常方便,前面的prometheus+grafana+metrics-server都不用安装,已经集成在里面。 1、clone github地址 git clone https://github.com/coreos/kube-prometheus.git ...
分类:
Web程序 时间:
2021-01-14 11:25:19
阅读次数:
0
Springboot整合web socket 引入包 <dependency> <!-- websocket --> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-websocket</arti ...
分类:
编程语言 时间:
2021-01-14 11:00:20
阅读次数:
0
一、概述 1.什么是接口? 连接两个设备,并且进行物质传递。 包括:①API(Application Program Interface):属于一种操作系统或程序接口。 ②GUI(Graphic User Interface):属于一种图形操作系统。 2.接口的类型 两种web协议接口:HTTP协议 ...
分类:
其他好文 时间:
2021-01-14 10:58:43
阅读次数:
0
kubectl is the official Kubernetes CLI and it interacts with your Kubernetes cluster's API server via its API. It is configured by default using the ~ ...
分类:
Web程序 时间:
2021-01-14 10:52:04
阅读次数:
0
今天在看后台的时候,发现登录不上去了,登录页面是可以访问,但是就是登录不上去,上了后台看了一下,说mysql连接超时,然后我重启了一下服务器,发现依然报mysql的错误,我尝试连接mysql, 报了一个 Can't connect to local MySQL server through sock ...
分类:
数据库 时间:
2021-01-14 10:50:21
阅读次数:
0