兵兵有你

人品好,气质差.丢了工作就回家...

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 2 3 4 5 6 ··· 10 下一页

2021年11月3日

摘要: 1.先定义拦截器的文件内容,如interceptor/BingInterCeptor public class BingInterCeptor implements HandlerInterceptor { @Override public boolean preHandle(HttpServlet 阅读全文
posted @ 2021-11-03 21:53 greatbing 阅读(114) 评论(0) 推荐(0) 编辑

摘要: 1.首先引入包 <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.9.2</version> </dependency> <dependency> < 阅读全文
posted @ 2021-11-03 08:55 greatbing 阅读(301) 评论(0) 推荐(0) 编辑

2021年10月31日

摘要: 1.先在application.properties里声明国际化文件夹位置 spring.thymeleaf.cache=false spring.messages.basename=i18n.login 2.定义文件类 package com.example.mvc01.config; impor 阅读全文
posted @ 2021-10-31 16:22 greatbing 阅读(103) 评论(0) 推荐(0) 编辑

2021年10月18日

摘要: 有时要为列头增加更多的描述,需要添加tooltips,文档中对Table-column Attributes描述为 render-header 列标题 Label 区域渲染使用的 Function Function(h, { column, $index }) 那么需要在代码中作如果操作 <el-t 阅读全文
posted @ 2021-10-18 16:06 greatbing 阅读(447) 评论(0) 推荐(0) 编辑

2021年10月14日

摘要: 1.首页在启动文件里开启定时任务注解 @EnableScheduling 2.编写好定时任务类 import org.springframework.scheduling.annotation.Async; import org.springframework.scheduling.annotati 阅读全文
posted @ 2021-10-14 09:41 greatbing 阅读(50) 评论(0) 推荐(0) 编辑

2021年9月27日

摘要: 时间格式转换 增加注解 @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") 1.在同一DTO中某list里是一个对象,不用新建文件定义子DTO的方法 @ApiModelProperty(value="配置列表") priva 阅读全文
posted @ 2021-09-27 12:00 greatbing 阅读(62) 评论(0) 推荐(0) 编辑

2021年9月17日

摘要: 1.先新建一个maven项目pom.xml <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.5.2</version 阅读全文
posted @ 2021-09-17 17:31 greatbing 阅读(151) 评论(0) 推荐(0) 编辑

2021年9月16日

摘要: 1. spring boot 2.3中如何禁用spring security //环境 spring boot 2.3, 依赖spring security版本是5.5.1,增加配置文件 @Configuration public class SecurityConfig extends WebSe 阅读全文
posted @ 2021-09-16 10:21 greatbing 阅读(192) 评论(0) 推荐(0) 编辑

2021年9月15日

摘要: 理解定义 flex container:对要处理的div开启flex布局 display:flex|inline-flex(指定DIV后面的行内元素也会在同一行内)成为flex container flex items:指container里的多个子项目主(横)轴: main axis-->起点ma 阅读全文
posted @ 2021-09-15 14:46 greatbing 阅读(33) 评论(0) 推荐(0) 编辑

2021年8月30日

摘要: 1.需求:当需要选择不同的checkBox时,根据不同的值决定要不要增加输入框,这时要用到watch监测 //监测某个值的变化,n是新值,o是老值,注意是字段的值,不对监测对象 watch: { 'form.jumpType': { handler(new, old) { if (new != 3) 阅读全文
posted @ 2021-08-30 15:46 greatbing 阅读(36) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 10 下一页