SpringBoot
透晓西桥
这个作者很懒,什么都没留下…
展开
-
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 · 425 阅读 · 0 评论 -
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 · 179 阅读 · 0 评论 -
Springboot+Vue文件上传
1. java@Controllerpublic 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 · 210 阅读 · 0 评论 -
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 · 436 阅读 · 1 评论