Ruoyi 添加 Filter 过滤器并在页面控制器之前执行验证程序
引入需要用到的依赖包
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>11.0.2</version>
</dependency>
引入需要用到的依赖包
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>11.0.2</version>
</dependency>
我们给块元素例如 div 设置 display:inline-block,会发现元素之间存在空隙。原因是所有元素都自带的 white-space 属性在起作用。默认行为就是把换行变成空格。也就是这里的间隙实际上是来自 div 和 div 之间的换行转变成空格导致的。
0x01 MySQL 报 “Error 2006 MySQLserver has gone away” 的解决方法
找到 MySQL 安装目录下的 my.ini(Linux 下为 /etc/my.cnf)配置文件,进行如下配置:
max_allowed_packet=500M
wait_timeout=288000
interactive_timeout = 288000
在 Maven pom.xml 配置文件中加入 spring-boot-starter-mail 依赖。
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-mail</artifactId>
</dependency>