摘要: 感谢: https://www.cnblogs.com/niuxiaoxian/p/9443873.html 当我们用v-html渲染页面的时候会发现样式并没有添加上,如下 复制代码 <template> <div > <div v-html="some_html" class="box" ></d 阅读全文
posted @ 2021-01-31 14:27 皮豪 阅读(338) 评论(0) 推荐(0)
摘要: 需求:每次请求的时候都设置token为headers非常不方便 axios提供配置全局headers 这里我主要使用的是加 一个token验证 Global axios defaults axios.defaults.baseURL = 'https://api.example.com'; // I 阅读全文
posted @ 2021-01-28 12:00 皮豪 阅读(5305) 评论(3) 推荐(0)
摘要: 本文参考: https://blog.csdn.net/csdn_x_w/article/details/108027940 我发现走的都是OPTIONS协议,然后JWT 却把OPTIONS拦截了,于是参考上文 放行了OPTION请求 拦截器 package com.pipihao.piyu.int 阅读全文
posted @ 2021-01-28 10:48 皮豪 阅读(591) 评论(0) 推荐(0)
摘要: Vditor文件上传跨域 官网是发了一次请求,而我这里发了两次请求。 有一个option请求,形成了跨域。 虽然我在后端配置了允许跨域,但事实上,我用JWT的拦截器把文件上传的接口给拦截了。 且走的是OPTION,然后报错了跨域。 我的MVC拦截器 this.vditor = new Vditor( 阅读全文
posted @ 2021-01-27 19:06 皮豪 阅读(666) 评论(4) 推荐(0)
摘要: 下面是该组件的使用数据的格式 options: [ { value: 'zhejiang', label: 'Zhejiang', children: [ { value: 'hangzhou', label: 'Hangzhou', children: [ { value: 'xihu', lab 阅读全文
posted @ 2021-01-24 12:43 皮豪 阅读(2219) 评论(0) 推荐(0)
摘要: 需要导入SpringBoot test和junit的包 @RunWith(SpringRunner.class) @SpringBootTest(classes = PiYuApplication.class) public class UserServiceTest { @Autowired Us 阅读全文
posted @ 2021-01-16 15:05 皮豪 阅读(95) 评论(0) 推荐(0)
摘要: Apache commons 介绍 这是apache commons lang3的工具类的截图 这个工具,小皮一般用在业务层较多 这是apache commons codec下面的工具 这个工具包,今天发现的,小皮主要用来加密 maven地址 <!--apache 工具类--> <dependenc 阅读全文
posted @ 2021-01-16 10:35 皮豪 阅读(315) 评论(0) 推荐(0)
摘要: ![](https://img2020.cnblogs.com/blog/2146100/202101/2146100-20210110150921563-384808864.png) 阅读全文
posted @ 2021-01-10 15:09 皮豪 阅读(8269) 评论(0) 推荐(0)
摘要: 使用SpringBoote+mybatis在mybatis-config.xml的配置文件内配置的驼峰命名不生效 然后我就将mybatis的配置写在application.yml内,然后就生效了 用注解 ,和xml配置的Mapper接口类,都 是可以的 遇到的坑 下面红色指的两个配置不能同时出现 阅读全文
posted @ 2021-01-07 22:15 皮豪 阅读(560) 评论(0) 推荐(0)
摘要: main.ts中的 createApp(App),只作用于一个,如果,有两个,则并不是一个对象,另一个会不生效 阅读全文
posted @ 2021-01-07 10:40 皮豪 阅读(319) 评论(0) 推荐(0)