在序列化的对象上增加 [BsonIgnoreExtraElements]…
MongoDB查询转对象是出错Element '_id' does not match any field or property of class   解决方法: 1.在实体类加:[BsonIgnoreExtraElements] 2.或者定义public ObjectId _id { get; set; } 例子: [BsonIgnoreExtraElements] public class BaseData     {         //public ObjectId _id { get…
Mongodb:修改文档结构后出现错误:Element '***' does not match any field or property of class ***. Mongodb是一种面向文档的数据库,即不再有"行"的概念,取而代之的是更为灵活的"文档"(doucument)模型.在开发中,经常需要变更文档字段,比如添加一个字段等. 这时必须保证每个文档中的字段在实体字段中都有,即实体字段多于各个文档字段(每个文档的字段集合都是实体字段的子集).这样便可保证查…
Mysql Field * doesn't have a default value解决方法 MySQL 5中,出现错误提示: Field 'id' doesn't have a default value 解决方法一: 打开my.ini,查找 sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" 修改为 sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE…
使用AFNetworking 2.0 请求数据时出现错误 Request failed: unacceptable content-type: text/html 解决方法 添加一行 manager.responseSerializer.acceptableContentTypes = [NSSet setWithObject:@"text/html"]; 即可 整个代码为: AFHTTPRequestOperationManager *manager = [AFHTTPRequest…
Can't connect to X11 window server using ':0.0' 解决方法 1. 以oracle 用户登陆X window 或者 2. root 身份执行 # xhost + ======================= [oracle@rusky-oracle11g database]$ ./runInstaller //安装报错 Starting Oracle Universal Installer... Checking Temp space: must b…
最近呢说要上线,就去找了下上线的方法...之前做过代码混淆,用的是progarud.cfg,但是呢自己反编译了之后还是无效,然后就丢着先不管了,因为实在不知道什么情况.今天来上线的时候结果总是报错,总是报proguard returned with error code 1.See console错误,到网上查了下情况,分为三种:情况1:Proguard returned with error code 1. See consoleError: C:/Documents (系统找不到指定文件)这…
AS下如何生成自定义的.jks签名文件, 以及如何生成数字签名 链接:http://www.cnblogs.com/smyhvae/p/4456420.html 链接:http://blog.csdn.net/sunbinkang/article/details/74990292 Android support 26.0.0-alpha1 产生的问题 重点在这里,强制使用相同版本的库:在moudle 的build.gradle中 添加上,版本自选. configurations.all { re…
对于前面问题的分析:来源于http://blog.163.com/yuyang_tech/blog/static/216050083201211144120401/ 解决方法1: //来源:http://www.cnblogs.com/yuzhoufeng/archive/2011/12/11/2284200.html 今天学习VC++ 2010 MFC单文档应用程序中动态添加菜单,下面是代码部分: 1 2 3 4 5 6 7 8 9 10 11 12 13 int CMainFrame::On…
方案一:这个方案有问题 <el-table ref="tableTreeRef" :data="tableDate" ...... </el-table> js: watch: { tableDate: function (nv, ov) { this.$nextTick(() => { this.unFoldAll() }) } } /** * 展开所有下级 */ unFoldAll () { let queryResult = this.…