1.DispatcherServlet 全名是org.springframework.web.servlet.DispatcherServlet,在web配置一下就好了 2.Controller 控制器类上需要 实现Controller接口或者 使用@Controller注解 注解是org.spri ...
分类:
编程语言 时间:
2020-06-17 23:44:29
阅读次数:
71
@ControllerAdvice public class GlobalExceptionHandler extends ResponseEntityExceptionHandler { /** * 在controller里面内容执行之前,校验一些参数不匹配啊,Get post方法不对啊之类的 * ...
分类:
其他好文 时间:
2020-06-17 23:37:07
阅读次数:
69
SpringMVC是Spring的一个模块。MVC=Model+View+Controller,用于与前端交互,处理前端请求。 1.eclipse创建项目 File->New->Dynamic Web Project->输入名称->next->next->勾选Generate web.xml dep ...
分类:
编程语言 时间:
2020-06-17 23:05:29
阅读次数:
60
在文档里有直接渲染一个html的文件 , 但是我的需求是渲染html的字符串 , 因为我的html要打包进二进制 , 不能只是外部文件的形式 engine := gin.Default() //登陆界面 engine.GET("/login",controller.PageLogin) engine ...
分类:
Web程序 时间:
2020-06-17 20:16:44
阅读次数:
98
MongoDB服务器CPU一直很高,最高达到900%,可能是哪些原因? 答:可能原因如下: 1、高并发场景下,服务器开启numa 2、mongo查询无索引,消耗大量内存和io 3、服务器硬件故障,例如CPU 内存 raid卡等。 3、高并发写入下开启读写分离+oplog应用加锁。 4、高并发短链接+ ...
分类:
数据库 时间:
2020-06-17 16:42:22
阅读次数:
98
创建RAID(以RAID5为例)1、首先,我们要先创建新磁盘分区#fdisk /dev/hda创建3个500MB的分区(hda7,hda8,hda9),然后在fdisk命令下输入t,选择刚创建好的分区,输入fd,将刚创建好的3个分区转换为fd格式。输入w保存退出 2、激活刚创建好的分区#partpr ...
分类:
系统相关 时间:
2020-06-17 11:11:43
阅读次数:
86
Building an OpenFlow Switch with Integrated Controller and IDS/IPS This post describes steps to build an OpenFlow switch using Open vSwitch on a serve ...
分类:
其他好文 时间:
2020-06-17 10:57:18
阅读次数:
49
實驗描述 OpenFlow is a communications protocol that gives access to the forwarding plane of a network switch or router over the network. 利用Controller 控制其底 ...
分类:
其他好文 时间:
2020-06-17 10:32:47
阅读次数:
53
参考:https://blog.csdn.net/caiqiiqi/article/details/79698143 一、实验步骤 1、创建拓扑 参数说明: --controller 自己指定一个控制器,一般用remote指定远程控制器。还可以用--ip 与 --port 指定地址和端口号 --ma ...
分类:
其他好文 时间:
2020-06-17 01:57:29
阅读次数:
188
Vue MVVM模式和第一个Vue程序 什么是MVC? MVC模式代表Model-View-Controller(模型-视图-控制器)模式,这种模式用于应用程序的分层开发 Model(模型)-模型代表一个存取数据的对象或JAVA POJO,它也可以带有逻辑,在数据变化时更新控制器 View(视图)- ...
分类:
其他好文 时间:
2020-06-17 01:33:38
阅读次数:
54