- 博客(8)
- 资源 (2)
- 收藏
- 关注
原创 Swagger学习
Swagger 主要看源码学习 导入依赖 <!-- https://mvnrepository.com/artifact/io.springfox/springfox-swagger2 --> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version&
2020-12-04 17:56:02 122
原创 使用axios实现文件下载
使用aixos实现文件下载 直接使用this.$axios.post(url,args)不能下载文件 解决方案: 安装npm install js-file-download --save 全局注册 import fileDownload from "js-file-download"; Vue.prototype.$fileDownload = fileDownload; 使用 this.$axios.post("/download",this.$qs.stringify({fid:this.f
2020-11-29 13:22:30 632
原创 springboot实现文件预览
springboot实现文件预览 如果直接预览.pdf文件 由于安全问题,当url为本地路径的时候,前端不能直接使用window.open(url)打开文件。 解决方案: 写一个config @Configuration public class MyConfig implements WebMvcConfigurer { @Override public void addResourceHandlers(ResourceHandlerRegistry registry) { regist
2020-11-29 13:15:33 2397
原创 axios进行文件下载
vue axios进行文件下载 使用js-file-download 安装js-file-download npm install js-file-download --save 在main.js中进行全局注册 import fileDownload from "js-file-download"; Vue.prototype.$fileDownload = fileDownload; 使用 downloadFile(fid,fileName){ this.$axios.
2020-11-24 22:05:36 515
原创 解决前后端时间转换问题
解决前后端时间转换问题 在类属性上加入注解: @DateTimeFormat(pattern="yyyy-MM-dd") @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
2020-11-17 20:37:24 305
原创 spring学习笔记
Spring 简介 导包 <!--spring mvc--> <!--会自动下载一些jar包--> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>5.2.9.RELEASE</version> </dependency&
2020-10-26 16:21:34 116
原创 mybatis学习笔记
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.ws.dao.UserDao"> <select id="getAllUser" res
2020-10-13 20:32:52 85
原创 Maven 出现No plugin found for prefix ‘help‘ in the current project and in the plugin groups...
Maven 出现No plugin found for prefix 'help' in the current project and in the plugin groups... cmd控制台输入mvn help:system 出现问题: No plugin found for prefix ‘help’ in the current project and in the plugin groups… 情况1: 在maven目录下的conf/settings.xml里面的镜像没配置好(如果是使用的阿里
2020-07-24 19:05:05 1011
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人