Can't create component 'xxx.xxx.xxx' as it has dependencies to be satisfied

Posted 儿时精神

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Can't create component 'xxx.xxx.xxx' as it has dependencies to be satisfied相关的知识,希望对你有一定的参考价值。

问题描述:

Can\'t create component \'xxx.xxx.xxx\' as it has dependencies to be satisfied.


 问题原由:

没有对新建的实体映射类创建对应的数据库表。

执行add-migration  xxx      update-database

在add-migration前一定要在DbContext中去配置即将映射的实体。搞忘了

 

以上是关于Can't create component 'xxx.xxx.xxx' as it has dependencies to be satisfied的主要内容,如果未能解决你的问题,请参考以下文章

错误代码 1007 Can't create database 'test' database exists

错误代码: 1005 Can't create table 'hibernate.bill' (errno: 150)

mysql can't create threads in threadpool

mysql [ERROR] Can't create IP socket: Permission denied

ERROR 1005 (HY000): Can't create table'matrix.system_log' (errno: 150)

Can't finish GitHub sharing process Successfully created project 'springcloud-parent' o