- 博客(5)
- 收藏
- 关注
原创 Command failed with error 9: 'The 'cursor' option is required, except for aggregate with the explain
首先上异常com.mongodb.MongoCommandException: Command failed with error 9: 'The 'cursor' option is required, except for aggregate with the explain argument' on server 193.112.59.74:28017. The full response i
2018-05-04 14:57:38
8424
原创 子类实例化是否会实例化父类?不会
关于对java中Class,AbstractClass,Interface的理解 首先关于类,我们可以把它当成一个瓶子模具,这里的模具只是用它的概念,不需要带入真正的模具(因为瓶子没有模具),当我们在 java中使用new来新建一个对象bottle时,可以想象成用这个模具去造了一个新瓶子,这个新瓶子是纯粹一个瓶子,什么花 纹都没有,我们当成这个就是这个bottle的属性的初始值,然后我们开始对
2017-09-25 16:17:55
10091
6
原创 使用邻接矩阵实现图结构
关于图的一些特点就不说了,现在我们先展示的是顶点的实现/** * Created by 西皮 on 2017/9/15 19:58. * 图的顶点类 */public class MyVertex<VItem> { private VItem data;//数据 private int inDegree,outDegree;//出入度数 private VStatus
2017-09-17 09:25:25
1021
原创 使用SolrCloud出现org.apache.solr.common.SolrException: Collection not found: my_solr2
首先,我是用的是solr5.5.4,但是我的solrj使用的4.10.3,这样在使用SolrCloud时,就会出现 org.apache.solr.common.SolrException: Collection not found: my_solr2 这样的异常,collection确定是存在,这时候,我们需要把solrj的版本修改为5.5.4,来保持一致。这时候我单独测试没有问题了,
2017-08-24 15:47:27
6286
原创 利用bootstrap和js完成一个简易的文件上传按钮
今天需要找一个和页面比较搭的上传文件的样式,但是很可惜没有找到比较合适的,于是只能自己写一个简单的。 为了偷懒用了bootstrap自带的样式 代码如下:<form action="#" method="post" enctype="multipart/form-data"> <input class="btn btn-xlarge btn-clean
2017-07-28 17:59:52
2095
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人