C++(异常) int myDevide(int a, int b) { if (b == 0) { //throw - 1;//抛出int类型异常 throw 3.13; } return a / b; } void test01() { int a = 10; int b = 0; try { ...
分类:
编程语言 时间:
2021-04-27 14:40:23
阅读次数:
0
DataAccessException DataAccessException是Mybatis封装的异常,继承了RuntimeException这个类。 步骤 Mapper抛出DataAccessException异常 ServiceImpl抛出DataAccessException异常 Contr ...
分类:
其他好文 时间:
2021-04-27 14:30:41
阅读次数:
0
前言 在上一章节,我们曾提到这样一个问题:当调用服务失败后,我们怎么处理当前的请求?抛出异常亦或是重试? 为了解决这个问题,Dubbo 定义了集群接口 Cluster 以及 Cluster Invoker。集群 Cluster 用途是将多个服务提供者合并为一个 Cluster Invoker,并将这 ...
分类:
其他好文 时间:
2021-04-26 14:10:27
阅读次数:
0
1,下载nginx 2,解压后打开conf/nginx.conf 修改配置 server { listen 8841;#监听端口 server_name localhost;#代理服务地址 location / { #默认访问 root html; index index.html index.ph ...
分类:
其他好文 时间:
2021-04-26 13:57:20
阅读次数:
0
logback简单实现对日志的保存和处理,且保存有效时间,7天, 配置文件 <?xml version="1.0" encoding="UTF-8"?> <configuration> <springProperty scope="context" name="loglevel" source="l ...
分类:
编程语言 时间:
2021-04-26 13:55:32
阅读次数:
0
1.若height是确定的(比如height:100px),则height直接可确定(还受min-height,max-height影响,见height,min-height,max-heigth的作用机制问答)。 2.若width是不确定的(比如width: min-content 或 width ...
分类:
Web程序 时间:
2021-04-26 13:42:04
阅读次数:
0
废话不多说, 直接上代码 需要引入的pom依赖就不多说了, 无非jedis和redis相关的. yml中关于redis的配置文件 spring: # redis配置 redis: # redis数据库索引(默认为0) database: 1 host: localhost port: 111 # r ...
分类:
编程语言 时间:
2021-04-26 13:38:37
阅读次数:
0
应用层DOS Slowhttptest 低带宽应用慢速DOS攻击 擅长打击Apache,Tomcat 攻击方式: Slowloris, Slow HTTP POST 耗尽应用的并发连接池,类似http层的Syn Flood HTTP协议默认的情况下需要接收到全部的请求之后才会开始处理,如果客户端发送 ...
分类:
其他好文 时间:
2021-04-26 13:07:45
阅读次数:
0
CSS link: link是html标签 加载页面的过程是异步的,不会阻塞浏览器的解析过程 举例 html文件: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <link ...
分类:
Web程序 时间:
2021-04-26 13:00:00
阅读次数:
0
Loaded plugins: fastestmirror, langpacks Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error w ...
分类:
Web程序 时间:
2021-04-24 13:53:03
阅读次数:
0