基础版 写2个路由和视图函数,一个是登录,写入cookie,访问order,必须登录以后才能访问,否则重定向到登录页面,order页面实现退出功能,清除cookie,利用登录认证装饰器,必须登录之后获取到了cookie才能进入order函数 模板文件:login页面三个input标签,分别为用户名, ...
分类:
其他好文 时间:
2020-12-05 10:53:22
阅读次数:
9
前言 在本机模拟器的ubuntu18版本上进行的部署测试,参考的官方文档: hadoop: 链接地址 hive: 链接地址 使用的版本: hadoop: 3.2.1 hive: 3.1.2 全程是使用root账号进行的配置。 hadoop安装配置 hadoop使用的是虚拟集群,即单机模拟集群,dat ...
分类:
其他好文 时间:
2020-12-05 10:52:38
阅读次数:
7
关于ftp上传changeWorkingDirectory()方法的路径切换问题在上传时FTPClient提供了upload方法,对于upload(file,path)的第二个参数path,上传到哪里的这个路径,ftp是利用changeWorkingDirectory()方法来代替CMD中的命令cd的,在对于上传的过程中,path可能不存在,那么就需要来判断是否存在,存在就不创建,不存在就创建,代
分类:
Web程序 时间:
2020-12-04 11:43:26
阅读次数:
17
this.$router.options.routes[5].children[0].children.push({ path: '/resourcesMenu/host/asibc_statistics_detail', meta: { name: '2-2', path: '/resources ...
分类:
其他好文 时间:
2020-12-04 11:28:39
阅读次数:
6
转自:https://www.cnblogs.com/students/p/10826822.html 和https://mp.weixin.qq.com/s/RSSOJBm4KsU4EwX6J6Nt7w(这是参考的代码2) 1.登录百度云平台,创建应用 2.编写代码 1 from aip impo ...
分类:
其他好文 时间:
2020-12-04 11:22:37
阅读次数:
4
huacnlee/gobackup 是一个很不错的多数据库的备份工具,但是对于minio支持不太好(path 路径格式),同时也 不支持定时任务备份,所以基于cron 包支持定时任务处理 修改的代码 main.go 添加cron支持 { Name: "start", Flags: []cli.Fla ...
分类:
其他好文 时间:
2020-12-02 12:31:30
阅读次数:
4
Linux Bash基础特性 1、 命令补全 bash执行命令: 内部命令:help命令 外部命令:bash根据PATH环境变量定义的路径,自左而右在每个路径搜寻以给定命令名命名的文 件,第一次找到即为要执行的命令; 直接补全:Tab,用户给定的字符串只有一条惟一对应的命令; 以用户给定的字符串为开 ...
分类:
系统相关 时间:
2020-12-02 12:29:48
阅读次数:
7
const { resolve } = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); module.exports = { entry: './src/js/index.js', output: ...
分类:
Web程序 时间:
2020-12-02 12:28:54
阅读次数:
11
一、watch监听路由的方法 通过watch监听,当路由发生变化的时候执行。 方法一: watch:{ $router(to,from){ console.log(to.path) } } 方法二: watch: { $route: { handler: function (val, oldVal) ...
分类:
其他好文 时间:
2020-12-02 12:06:49
阅读次数:
5
//加载插件 private void LoadPlugins() { string path = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "addons"); //搜索该目录下的所有 ...