C#操作mongodb简记 官方文档地址:https://mongodb.github.io/mongo-csharp-driver/2.10/getting_started/quick_tour/ 我只是想用mongodb来存系统日志而已,只需要会插入和分页查询就好了 1. 新建类 2. 控制器页 ...
分类:
数据库 时间:
2020-05-08 12:42:45
阅读次数:
70
Recently when I do self study on Vue I find many articles in the internet with full of praise on "Vue" ‘s reactive Two Way Data binding trait. This fa ...
分类:
其他好文 时间:
2020-05-07 22:47:49
阅读次数:
138
find find() 方法返回通过测试(函数内判断)的数组的第一个元素的值。 find() 方法为数组中的每个元素都调用一次函数执行: 当数组中的元素在测试条件时返回 true 时, find() 返回符合条件的元素,之后的值不会再调用执行函数。 如果没有符合条件的元素返回 undefined 注 ...
分类:
其他好文 时间:
2020-05-07 19:45:55
阅读次数:
56
我在使用springboot时,当代码有问题时,发现控制台打印下面信息: Connected to the target VM, address: '127.0.0.1:42091', transport: 'socket' log4j:WARN No appenders could be foun ...
分类:
编程语言 时间:
2020-05-07 17:02:54
阅读次数:
98
大侠你的类写错了,mysql 8以上要用新的类: xaDataSourceClassName: com.mysql.cj.jdbc.MysqlXADataSource 现在很多教程都用的mysql 5.x版本,在mysql配置上面有很多都和现在的8.x不一样,比如这个atomikos,还比如mysq ...
分类:
数据库 时间:
2020-05-07 17:01:06
阅读次数:
140
Selenium编写用例的时候,需要不断的运行调试debug,但正常情况会每次重新打开一个Chrome运行,是全新的浏览器,没有任何历史记录和Cookie。如果你要完全运行所有测试用例,包括登陆,那这样很好,如果你不想运行所有用例或是在调试,就很麻烦,下面介绍2个免登陆的方法。 方法一:通过加coo ...
分类:
其他好文 时间:
2020-05-07 15:51:59
阅读次数:
95
1.模块查找规则-当模块拥有路径但没有后缀时:(require(‘./find’)) require方法根据模块路径查找模块,如果是完整路径,直接引入模块; 如果模块后缀省略,先找同名JS文件,再找同名JS文件夹; 如果找到了同名文件夹,找文件夹中的index.js; 如果文件夹中你那个没有inde ...
分类:
Web程序 时间:
2020-05-07 15:43:18
阅读次数:
75
常用命令: 1.文件内容包含指定字符串 find . | xargs grep string 查找当前目录下文件内容包含字符串string的文件 为什么要这样写,因为管道命令符是把上一部的结果传递给下一步来处理,在 find . | grep string中虽然看似和find . | xargs g ...
分类:
系统相关 时间:
2020-05-07 15:33:23
阅读次数:
110
spring-cloud-starter-gateway依赖与mvc是不兼容的,如果要引用spring-boot-starter-web需要把mvc排除 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spri ...
分类:
编程语言 时间:
2020-05-07 13:56:50
阅读次数:
142
Description: Flyway failed to initialize: none of the following migration scripts locations could be found: classpath:db/migration Action: Review the ...
分类:
其他好文 时间:
2020-05-07 13:43:30
阅读次数:
300