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
前言 @Configuration 用于定义配置类,可替换XML配置文件,被注解的类内部包含一个或多个@Bean注解方法。可以被AnnotationConfigApplicationContext或者AnnotationConfigWebApplicationContext 进行扫描。用于构建bea ...
分类:
其他好文 时间:
2021-01-14 10:40:59
阅读次数:
0
###方法一: 通过PHPOffice(推荐) 1: composer require phpoffice/phpword ``` /* 通过composer安装 PHPOffice 需要 或者用中国镜像:https://www.phpcomposer.com/ */ ``` 2: 安装成功可看到 ...
分类:
Web程序 时间:
2021-01-14 10:30:45
阅读次数:
0
<!-- 引入自己封装的 Ajax文件 测试下怎么用 --> <script src="myAjax.js"></script> <script> window.addEventListener('load', function() { var btn = document.querySelecto ...
分类:
Web程序 时间:
2021-01-13 11:30:00
阅读次数:
0
宿主机Nginx使用php容器解析php请求 环境说明 首先,我在宿主机上已经运行了一个nginx [root@localhost html]# nginx -v nginx version: nginx/1.18.0 宿主机上也安装运行了docker [root@localhost html]# ...
分类:
Web程序 时间:
2021-01-13 11:24:19
阅读次数:
0
springmvc零xml配置原理与Servlet3.0SPI机制 传统springmvc项目,如果要采用xml文件的方式配置,则需要web.xml、spring-mvc.xml文件。 web.xml文件用来引入springmvc的配置文件contextConfigLocation,以及spring ...
分类:
编程语言 时间:
2021-01-13 11:15:41
阅读次数:
0
Acrtion 隆重推出专为金融科技开发的?HTML5 JavaScript charts?, 用于构建金融和交易应用程序的图表控件库。 轻松集成到网站,Intranet应用程序或可安装的桌面应用程序。 ...
分类:
Web程序 时间:
2021-01-13 11:05:54
阅读次数:
0