自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 springboot+shiro+pac4j cas子系统集成单点登录+cas服务端

1、框架版本如下shiro 1.7.1buji-pac4j 5.0.1pac4j-cas 4.5.2cas 5.3.16<shiro.version>1.7.1</shiro.version><io.buji.version>5.0.1</io.buji.version><org.pac4j.version>4.5.2</org.pac4j.version><dependency> &l

2021-08-21 15:20:11 728

原创 bootstrapValidator踩坑记录

1.定义校验触发条件 orderNumber: { trigger: 'blur', validators: { notEmpty: { message: '必填项不能为空' }, callback: { message: '订单编号已存在', callback: function(value, validator) { } } } }这里的trigger: 'blur' 就是触发条件的配置,blur表示失去.

2021-06-24 14:40:13 249

原创 SpringBoot+FreeMarker静态资源版本控制

1、项目环境/** springboot**/<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.1.8.RELEASE</version></parent>/** freemarker **/<dependenc

2020-12-25 10:23:36 335

原创 easypoi自定义模板导出+一对多表关系的导出+自动合并相同单元格+史上最全

1、项目环境<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.3.2.RELEASE</version> <relativePath /></parent>2、easypoi导包注意了,从这里开始坑就来了

2020-09-02 19:40:41 7332 8

原创 SpringBoot+MyBatis/MybatisPlus(SSM框架)采坑记录总结(持续更新)

1、mybatis的xml文件中写动态排序ORDER BY<choose> <when test="field != '0'.toString() and field != '' and field != null"> <!-- 这里不用#是因为#的方式会自动把参数加上双引号 导致无法排序 --> ${field} </when> <otherwise> `entrusttime` </otherwise>&lt

2020-08-24 23:35:04 394

原创 MybatisPlus插入记录时报错统一的一步到位的解决办法(argument type mismatch)

argument type mismatch报错原因这里数据库对应的表如果设置了主键自增时,一定要在对应实体类中加上下面的注解,不然就会报错argument type mismatch,当然了,这只是其中可能的原因之一。 /** * id * 这里添加详细的注解是为了插入数据记录时保证主键正常自增 */ @TableId(value = "id",type = IdType.AUTO) private Integer id;...

2020-08-14 11:53:37 1252

原创 SpringBoot中映射项目文件的真实地址(操作系统磁盘路径)

1、windows操作系统package com.efong.config;import org.springframework.context.annotation.Configuration;import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;import org.springframework.web.servlet.config.annotation.WebMvcConfigure

2020-08-11 13:03:17 805

原创 js中通过map的value找key

1.解决ie浏览器的兼容性问题 // 通过map的value找key(ps:obj是js中的map对象 value就是map中的value) function findKey (obj,value,compare) { // 匿名函数解决ie不兼容问题 var compare = (function(a,b){ return a === b; }); // 匿名函数解决ie不兼容问题 return Object.keys(obj).filter

2020-08-11 11:39:13 5456 2

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除