我正在与 Spring-Roo 合作。
是否可以从依赖包中添加字段引用?我在脚本的请求中添加了依赖项,
dependency add --groupId com.testroo.platform --artifactId platform --version 0.1.0.BUILD-SNAPSHOT
然后我在添加 jpa 实体时执行此操作
field reference --fieldName city --type ~.domain.City --notNull
但它抱怨以下。
The specified target '--type' does not exist or can not be found. Please create
this type first.
我认为 spring-roo 足够聪明,可以从依赖中解决它。我在这里错过了什么吗?干杯。