错误异常
hxc_
这个作者很懒,什么都没留下…
展开
-
错误angular2 Error: If ngModel is used within a form tag...
Error: If ngModel is used within a form tag, either the name attribute must be set or the form control must be defined as ‘standalone’ in ngModelOptions. Example 1: <input [(ngModel)]="person.f原创 2017-05-17 20:21:31 · 6218 阅读 · 0 评论 -
错误 Angular2 Can't bind to 'routerLink' since it isn't a known property of 'a'
Can’t bind to ‘routerLink’ since it isn’t a known property of ‘a’解决办法: 检查是否没有 import RouterModuleimport { RouterModule } from '@angular/router';原创 2017-05-14 20:02:46 · 7927 阅读 · 0 评论 -
错误:No qualifying bean of type 'com.mongodb.MongoClient'
今天在配置 springboot 的 sping boot data mongodb 的时候遇到了这个错误,纠结了很久 错误是在配置好后跑单元测试看是否连通时遇到的@RunWith(SpringRunner::class)@BootstrapWith(SpringBootTestContextBootstrapper::class)@ContextConfiguration(classes原创 2017-05-30 17:44:45 · 5702 阅读 · 0 评论 -
angular4: Unhandled Promise rejection Cannot assign to a reference or variable
当我想循环一个数组,并把数组的每个元素放到子组件的 [(ngModel)] 中时,出现了这个错误<app-item *ngFor = "let item of data" [(ngModel)] = "item"></app-item>问题原因是,ngModel 会去查找 ts文件中的 this.item ,然而我们并没有在ts文件中定义 item。 换句话说,ngModel中传入的值必须是文件原创 2017-12-02 14:34:20 · 2962 阅读 · 0 评论 -
java中引用kotlin中的全局变量
kotlin的全局变量val id: Long = 1如果要在java代码中引用这个变量直接写id是肯定会有问题的 public void main(String[] args){ System.out.print(id); }这里会提示你引用了 xx的私有成员 kotlin会给所有的变量提供默认的 get() 方法所以这里应该写成原创 2018-02-06 15:11:01 · 12239 阅读 · 0 评论 -
git clone fatal: Authentication failed for "xxx"
git clone fatal: Authentication failed for “xxx”clone项目时 一直提示这个错误最后发现问题是windows凭证的问题win+s 搜索 “凭据” ,打开凭据管理器删除git 之前保存的凭据,重新clone ,弹出提示框输入新的凭据输完就可以clone了...原创 2018-05-22 11:25:05 · 2445 阅读 · 0 评论