摘要:
1.先定义拦截器的文件内容,如interceptor/BingInterCeptor public class BingInterCeptor implements HandlerInterceptor { @Override public boolean preHandle(HttpServlet 阅读全文
摘要:
1.先定义拦截器的文件内容,如interceptor/BingInterCeptor public class BingInterCeptor implements HandlerInterceptor { @Override public boolean preHandle(HttpServlet 阅读全文
摘要:
1.首先引入包 <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.9.2</version> </dependency> <dependency> < 阅读全文
摘要:
1.先在application.properties里声明国际化文件夹位置 spring.thymeleaf.cache=false spring.messages.basename=i18n.login 2.定义文件类 package com.example.mvc01.config; impor 阅读全文
摘要:
有时要为列头增加更多的描述,需要添加tooltips,文档中对Table-column Attributes描述为 render-header 列标题 Label 区域渲染使用的 Function Function(h, { column, $index }) 那么需要在代码中作如果操作 <el-t 阅读全文
摘要:
1.首页在启动文件里开启定时任务注解 @EnableScheduling 2.编写好定时任务类 import org.springframework.scheduling.annotation.Async; import org.springframework.scheduling.annotati 阅读全文
摘要:
时间格式转换 增加注解 @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") 1.在同一DTO中某list里是一个对象,不用新建文件定义子DTO的方法 @ApiModelProperty(value="配置列表") priva 阅读全文
摘要:
1.先新建一个maven项目pom.xml <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.5.2</version 阅读全文
摘要:
1. spring boot 2.3中如何禁用spring security //环境 spring boot 2.3, 依赖spring security版本是5.5.1,增加配置文件 @Configuration public class SecurityConfig extends WebSe 阅读全文
摘要:
理解定义 flex container:对要处理的div开启flex布局 display:flex|inline-flex(指定DIV后面的行内元素也会在同一行内)成为flex container flex items:指container里的多个子项目主(横)轴: main axis-->起点ma 阅读全文
摘要:
1.需求:当需要选择不同的checkBox时,根据不同的值决定要不要增加输入框,这时要用到watch监测 //监测某个值的变化,n是新值,o是老值,注意是字段的值,不对监测对象 watch: { 'form.jumpType': { handler(new, old) { if (new != 3) 阅读全文
|