自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 Shiro + Redis + Jwt

1. ShiroConfig 配置安全管理器 配置Session管理器 配置缓存 配置过滤路径 package com.yang.server.config.shiro; import org.apache.shiro.mgt.DefaultSubjectDAO; import org.apache.shiro.mgt.SessionStorageEvaluator; import org.apache.shiro.mgt.SubjectDAO; import org.apache.shiro..

2021-03-23 17:35:54 386

原创 Swagger

1. 相关依赖 <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.7.0</version> </dependency> <dependency> <groupId>com.github.xiao

2021-03-21 20:10:37 133

原创 Vuex

1. 下载安装 npm i vuex -S 2. 配置index import Vuex from 'vuex' import Vue from 'vue' Vue.use(Vuex) const store = new Vuex.Store({ // 多个模块 modules: { }, // 变量 state: { menus: {} }, // 计算属性 getters: { }, // 方法,非异

2021-03-09 21:00:27 162

原创 Axios

1. 安装 npm i axios -S 2. 配置 utils/api.js import axios from "axios"; axios.defaults.baseURL = 'http://localhost:8080' /** * 创建axios实例 * @type {AxiosInstance} */ const http = axios.create({ timeout: 10 * 1000, headers: { 'Content-Type':

2021-03-07 10:22:12 290

原创 Springboot+Vue文件上传

1. java @Controller public class FileUploadController { SimpleDateFormat sdf = new SimpleDateFormat("/yyyy/MM/dd/"); @ResponseBody @PostMapping("upload") public Map<String, Object> upload(@RequestParam("file") MultipartFile file, Ht

2021-03-06 21:30:35 158

原创 SpringBoot中Log4j的使用

1. 导入包 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <version>2.1.3.RELEASE</version> <exclusions> <exclusion>

2021-03-03 20:19:18 402 1

原创 日期相关类

1. Date类 1.1 创建日期对象 Date date = new Date();:默认为当前系统时间 public Date() { this(System.currentTimeMillis()); } Date date = new Date(1000);:可以传入一个参数,为毫秒数,从1970年1月1日计起的毫秒数 public Date(long date) { fastTime = date; } Date date = new Date(10, 0, 1);

2021-03-03 19:14:19 92 1

空空如也

空空如也

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

TA关注的人

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