Chase620 Chase620
4年前
记录Vue项目实现axios请求头带上token
在vue项目中首先npm命令安装axios:npminstallaxiosSaxios的封装使用请求带上token,token通过登录获取存在vuex,为防止刷新丢失token使用持久化vuexpersistedstate插件保存数据npmiSvuexpersistedstateimportpersistedStat
翼
5年前
基于Vue的图片浏览v-viewer
第一步,安装npmivviewerS第二步,main.js引用importViewerfrom'vviewer'import'viewerjs/dist/viewer.css'Vue.use(Viewer)Viewer.setDefaults({Options:{'inline':true,'butto
Wesley13 Wesley13
4年前
Java使用Redis学习笔记
如果我们使用Java操作Redis,需要确保已经安装了redis服务及Javaredis驱动。Maven项目可以直接在pom.xml中加入jedis包驱动:<dependency<groupIdredis.clients</groupId<artifactI
Stella981 Stella981
4年前
CentOS7中编译安装redis5.0
1\.环境介绍CentOS7(未安装DevelopmentTools)2\.下载Redis5.0rc3wgetOredis5.0rc3.tar.gzhttps://github.com/antirez/redis/archive/5.0rc3.tar.gz3\
Stella981 Stella981
4年前
Python操作Oracle
Python对Oracle数据库的基本操作1、电脑要安装Oracleserver。2、pipinstallcx\_Oracle3、dbcx_Oracle.connect(username,password,host)连接数据库"host":"localhost:1521/x
Wesley13 Wesley13
4年前
mysql zip install
 NETHELPMSG3534问题:在安装MqSql的5.7.12版本时,在注册服务mysqldinstallMySQLdefaultsfile"mydefault.ini路径"后执行netstartmysql,启动MySql失败。!(https://blog.csdn.net/kerecs/article/details
Stella981 Stella981
4年前
Django使用redis
方式一,使用Djangoredis模块安装:pip3installdjangoredis!(https://oscimg.oschina.net/oscnet/33166ab87a704022602b77dd9352da19f6a.jpg)!(https://oscimg.oschina.net/
Stella981 Stella981
4年前
GreenDao3使用完全解析
1,gradle配置(官网样例地址https://github.com/greenrobot/greenDAO/blob/master/examples/RxDaoExample/build.gradle)Module的gradle里安装如下配置(官方给的配置样例)buildscript{
Wesley13 Wesley13
4年前
mysqldiff差异比较
1.安装mysqlutilities\root@localhostsoft\yuminstall mysqlutilities.noarch2.比较数据库zentao和数据库db\_zentao的差异\root@localhostsoft\mysqldiffserver1root:yeemiao11