在 gin中,通过默认的函数,构建一个实现了带默认中间件的 *Engine。 r := gin.Default() 默认绑定了Logger和Recovery中间件,帮助我们进行日志输出和错误处理。 func Default() *Engine { debugPrintWARNINGDefault() ...
分类:
其他好文 时间:
2021-01-15 11:55:46
阅读次数:
0
引入pom文件<dependency> <groupId>org.redisson</groupId> <artifactId>redisson-spring-boot-starter</artifactId> <version>3.13.4</version></dependency> publi ...
分类:
其他好文 时间:
2021-01-15 11:53:50
阅读次数:
0
Exchange2016日志路径 邮件跟踪日志: C:\Program Files\Microsoft\Exchange Server\V15\TransportRoles\Logs\MessageTracking ...
分类:
其他好文 时间:
2021-01-15 11:53:30
阅读次数:
0
1、查看日志 用户执行非法命令删除文件,sudo rm -rf share/ [root@check ~]# tail /var/log/secure ...
分类:
其他好文 时间:
2021-01-15 11:51:34
阅读次数:
0
运行展示 正题 Spring boot :2.1.5RELEASE ;数据库(Mysql、Oracle);Mybatis;阿里云的连接池 : Druid ; 步骤 1.POM依赖 <!-- MyBatis --> <dependency> <groupId>org.mybatis.spring.bo ...
分类:
数据库 时间:
2021-01-15 11:48:59
阅读次数:
0
Spring MVC 注解开发 所需pom依赖: <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>5.2.0.RELEASE</version> < ...
分类:
编程语言 时间:
2021-01-14 11:33:10
阅读次数:
0
Spring框架支持以下五种bean的作用域: (1)singleton: bean在每个Springioc容器中只有一个实例。 (2)prototype:一个bean的定义可以有多个实例。 (3)request:每次http请求都会创建一个bean,该作用域仅在基于web的SpringApplic ...
分类:
编程语言 时间:
2021-01-14 11:32:29
阅读次数:
0
Springboot整合web socket 引入包 <dependency> <!-- websocket --> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-websocket</arti ...
分类:
编程语言 时间:
2021-01-14 11:00:20
阅读次数:
0
对比监控出现性能毛刺时间点的GC日志和业务日志,发现JVM停顿了较长时间,且停顿时GC日志中有大量的“Allocation Stall”日志。 原因就是堆内存被占满,导致部分线程阻塞,如下图中的 High used已经达到100% 解决办法: 1.最直接有效的办法就是增加堆大小 2.增加jvm参数 ...
分类:
其他好文 时间:
2021-01-14 10:54:13
阅读次数:
0
.net core 中使用Log4net输出日志到数据库中去 1.使用Nuget安装log4net 和 mysql.data 2.设置log4net 的配置文件 log4net.config 可以设置多个仓库进而插入到数据不同的表中 <?xml version="1.0" encoding="utf ...
分类:
数据库 时间:
2021-01-14 10:45:12
阅读次数:
0