我电脑上面的MySQL是5.5.6,而刚开始安装的django版本是3.多,不支持现在MySQL的版本 解决方案是: https://yuntianti.com/posts/fix-django3-mysqlclient-import-error/ 下面进入正题:安装Django3后不想折腾mysq ...
分类:
数据库 时间:
2020-04-03 00:36:10
阅读次数:
122
export default new Router({ mode: 'history', //路由模式,取值为history与hash base: '/', //打包路径,默认为/,可以修改 routes: [ { path: string, //路径 component: Component; / ...
分类:
其他好文 时间:
2020-04-02 19:49:42
阅读次数:
200
在日常使用,还有面试中,经常会涉及到AOP的相关知识,AOP虽好,但是有一些小的细节注意不到,可能会被坑; 1.动态代理类的方法互调,被调用的方法会不会生成代理? 2.静态成员类,调用过程中会不会生成代理? 对以上这些问题进行测试: 首页,这是AOP切面代码 @Component @Aspect p ...
分类:
其他好文 时间:
2020-04-02 16:08:10
阅读次数:
73
1. 下载安装包 https://redis.io/download 当前最新版本为5.0.5 2. 解压安装 $tar xzf redis-5.0.5.tar.gz$cd redis-5.0.5$make 在安装时候如果提示 `invalid active developer path (/Lib ...
分类:
系统相关 时间:
2020-04-01 14:29:31
阅读次数:
85
相关资料: https://www.baidu.com/link?url=yYEHJesIUg6HguekaIW-U0HtjtLn430Dh0NXSc7ej5ixppqcq21rsYMvlCo_qNOP&wd=&eqid=87bf080a00000c50000000035e83f9e4 实例: 接口 ...
分类:
其他好文 时间:
2020-04-01 14:27:23
阅读次数:
68
1. 连接sqlplus 创建一个表 SQL> conn liang/chengce243 Connected. QL> create table T8 as select * from user_objects; Table created. SQL> select count(*) from T ...
分类:
数据库 时间:
2020-04-01 13:10:54
阅读次数:
82
题目: Each month Blake gets the report containing main economic indicators of the company "Blake Technologies". There are n commodities produced by the ...
分类:
其他好文 时间:
2020-04-01 12:47:19
阅读次数:
66
对比一下串行流和并行流的效率: /** * @author WGR * @create 2020/3/31 */ public class Demo07Parallel { private static final int times = 500000000; long start; @Before ...
分类:
其他好文 时间:
2020-03-31 18:53:57
阅读次数:
56
MySQL [(none)]> show variables like '%timeout%'; + + + | Variable_name | Value | + + + | connect_timeout | 10 | | delayed_insert_timeout | 300 | | inn ...
分类:
数据库 时间:
2020-03-31 17:18:57
阅读次数:
74
问题:上次的代码确实解决了一部分用户访问记录的收集,但是还是存在一个问题就是 我们网站的注册 都是新页面打开的,如果用户刚进入网站就点击注册(打开了新的页面) ,我代码里用到的 onbeforeunload 就无法将用户进入的页面存储到本地了,也就是导致 访问了网站 直接点击注册的用户 无法被记录。 ...
分类:
Web程序 时间:
2020-03-31 12:44:16
阅读次数:
73