自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 springboot+vue后端批量获取图片提交给前端

使用了hutool工具类,Result是返回值的统一封装 @RequiresAuthentication @GetMapping("/createdImage") public Result createdImage() throws FileNotFoundException { File[] files = FileUtil.ls( "D:\\myporject\\springboot-vant\\src\\main\\resourc

2021-07-15 17:26:04 719 1

原创 前后端分离统一编码格式

package com.markhub.common.lang; import lombok.Data; import java.io.Serializable; @Data public class Result implements Serializable { private int code; private String msg; private Object data; public static Result succ(Object data) { .

2021-07-06 17:19:08 266

原创 JWT流程

先写jwt工具类 package com.bjpowernode.springboot.Utils; import com.auth0.jwt.JWT; import com.auth0.jwt.JWTCreator; import com.auth0.jwt.algorithms.Algorithm; import com.auth0.jwt.interfaces.DecodedJWT; import java.util.Calendar; import java.util.Map; publi

2021-07-05 12:28:54 405

原创 学习vue不常用容易忘的东西

添加element依赖 import Element from 'element-ui' import 'element-ui/lib/theme-chalk/index.css' 全局引入axios Vue.prototype.$axios = axios 引入mockjs require("./mock.js") //引入mock数据,关闭则注释该行 css相关 /* 弹性布局 */ display: flex; /*垂直方向居中*/ align-items: center; /

2021-07-04 20:19:31 398

原创 Mybatis-Plus用Redis做二级缓存

一,在properties或者yml文件开启二级缓存 #开启mybatis-plus二级缓存 mybatis-plus.configuration.cache-enabled=true 二,在Mapper类上添加CacheNamespace注解 @CacheNamespace(implementation= MybatisPlusRedisCache.class,eviction=MybatisPlusRedisCache.class) public interface StaffMapper..

2021-06-29 13:04:44 1160

原创 前端js获取url里的数据

//获取指定字符或者字符串最后一次出现的位置 let number = location.href.lastIndexOf("="); //截取字符串中的子串 let id = location.href.substring(number + 1);

2021-06-28 08:21:07 422

原创 学习shiro和redis做缓存

redis的配置类 package com.bjpowernode.springboot.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.data.redis.connection.RedisConnectionFactory; import org.spr

2021-06-27 14:19:59 335

原创 学习springboot时的各种工具类

随机盐生成: package com.bjpowernode.springboot.Utils; import java.util.Random; public class SaltUtil { public static String saltUtil(int n) { char[] chars = "ABCDEFGHIJKLNMOPQRSTUVWXYZabcdefghijklnmopqrstuvwxyz1234567890!@#$%^&*()".toCharAr

2021-06-27 14:08:50 670

原创 前后端分离传输文件

button() { //新建formdata对象把数据丢进去 let formData = new FormData(); formData.append("name",this.staff.name); formData.append("salary",this.staff.salary); formData.append("age",this.staff.age); formData.append("photo",this.$refs.photo.fi.

2021-06-27 13:14:49 477

空空如也

空空如也

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

TA关注的人

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