- 博客(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
142
原创 使用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
692
原创 springboot实现文件预览
springboot实现文件预览 如果直接预览.pdf文件由于安全问题,当url为本地路径的时候,前端不能直接使用window.open(url)打开文件。解决方案:写一个config@Configurationpublic class MyConfig implements WebMvcConfigurer { @Override public void addResourceHandlers(ResourceHandlerRegistry registry) { regist
2020-11-29 13:15:33
2459
1
原创 axios进行文件下载
vue axios进行文件下载使用js-file-download安装js-file-downloadnpm 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
552
原创 解决前后端时间转换问题
解决前后端时间转换问题在类属性上加入注解:@DateTimeFormat(pattern="yyyy-MM-dd")@JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
2020-11-17 20:37:24
333
原创 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
145
原创 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
106
原创 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
1096
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人