2

我有一个类似于jhipster hot reload failed to register liquibase changelog directory的问题。

这在过去是有效的,但我一直无法让实体创建正常工作:“旧”实体(从上次重新启动之前)会因缺少表而失败,而“新”实体因为没有服务(Did not find handler method for [/app/rest/foo3s]

我想我拥有所有最新版本(generator-jhipster 0.18.1 和<jhipster-loaded.version>0.11</jhipster-loaded.version>.我在 Debian Testing 的 Docker 容器中运行 Oracle Java 7。

我可以构建并运行示例应用程序(来自/jhipster),但是当我尝试时:

yo jhipster:entity foo5

我得到:

The entity foo5 is being created.
appPath: src/main/webapp
appPath: src/main/webapp
appPath: src/main/webapp
create src/main/java/petemiller/domain/Foo5.java
create src/main/java/petemiller/repository/Foo5Repository.java
create src/main/java/petemiller/web/rest/Foo5Resource.java
create src/main/webapp/views/foo5s.html
create src/main/webapp/scripts/foo5/router_foo5.js
create src/main/webapp/scripts/foo5/controller_foo5.js
create src/main/webapp/scripts/foo5/service_foo5.js
create src/test/java/petemiller/web/rest/Foo5ResourceTest.java
jhipster@a3c758365d1b:/jhipster$ 

但是 changelog 文件夹中没有db-changelog-00x.xml生成文件,所以当然,没有其他工作。

热重载似乎没问题,因为在启动时我得到:

[INFO] io.github.jhipster.loaded.JHipsterReloaderAutoConfiguration - Spring Loaded is running, registering hot reloading features
[DEBUG] io.github.jhipster.loaded.reloader.JacksonReloader - Hot reloading Jackson enabled
[DEBUG] io.github.jhipster.loaded.reloader.LiquibaseReloader - Hot reloading JPA & Liquibase enabled
[DEBUG] io.github.jhipster.loaded.reloader.SpringReloader - Hot reloading Spring Beans enabled
[DEBUG] io.github.jhipster.loaded.JHipsterFileSystemWatcher - Directory : 'target/classes' will be monitored for changes
[DEBUG] io.github.jhipster.loaded.JHipsterFileSystemWatcher - Directory : 'target/classes/i18n' will be monitored for changes
[DEBUG] io.github.jhipster.loaded.JHipsterFileSystemWatcher - Directory : 'target/classes/templates' will be monitored for changes
[DEBUG] io.github.jhipster.loaded.JHipsterFileSystemWatcher - Directory : 'target/classes/config' will be monitored for changes
[DEBUG] io.github.jhipster.loaded.JHipsterFileSystemWatcher - Directory : 'target/classes/config/liquibase' will be monitored for changes
[DEBUG] io.github.jhipster.loaded.JHipsterFileSystemWatcher - Directory : 'target/classes/config/liquibase/changelog' will be monitored for changes
[DEBUG] io.github.jhipster.loaded.JHipsterFileSystemWatcher - Directory : 'target/classes/mails' will be monitored for changes
[DEBUG] io.github.jhipster.loaded.JHipsterFileSystemWatcher - Directory : 'target/classes/mails/messages' will be monitored for changes
[DEBUG] io.github.jhipster.loaded.JHipsterFileSystemWatcher - Directory : 'target/classes/petemiller' will be monitored for changes
[DEBUG] io.github.jhipster.loaded.JHipsterFileSystemWatcher - Directory : 'target/classes/petemiller/repository' will be monitored for changes
[DEBUG] io.github.jhipster.loaded.JHipsterFileSystemWatcher - Directory : 'target/classes/petemiller/domain' will be monitored for changes
[DEBUG] io.github.jhipster.loaded.JHipsterFileSystemWatcher - Directory : 'target/classes/petemiller/domain/util' will be monitored for changes
[DEBUG] io.github.jhipster.loaded.JHipsterFileSystemWatcher - Directory : 'target/classes/petemiller/web' will be monitored for changes
[DEBUG] io.github.jhipster.loaded.JHipsterFileSystemWatcher - Directory : 'target/classes/petemiller/web/filter' will be monitored for changes
[DEBUG] io.github.jhipster.loaded.JHipsterFileSystemWatcher - Directory : 'target/classes/petemiller/web/filter/gzip' will be monitored for changes
[DEBUG] io.github.jhipster.loaded.JHipsterFileSystemWatcher - Directory : 'target/classes/petemiller/web/rest' will be monitored for changes
[DEBUG] io.github.jhipster.loaded.JHipsterFileSystemWatcher - Directory : 'target/classes/petemiller/web/rest/dto' will be monitored for changes
[DEBUG] io.github.jhipster.loaded.JHipsterFileSystemWatcher - Directory : 'target/classes/petemiller/web/propertyeditors' will be monitored for changes
[DEBUG] io.github.jhipster.loaded.JHipsterFileSystemWatcher - Directory : 'target/classes/petemiller/config' will be monitored for changes
[DEBUG] io.github.jhipster.loaded.JHipsterFileSystemWatcher - Directory : 'target/classes/petemiller/config/locale' will be monitored for changes
[DEBUG] io.github.jhipster.loaded.JHipsterFileSystemWatcher - Directory : 'target/classes/petemiller/config/apidoc' will be monitored for changes
[DEBUG] io.github.jhipster.loaded.JHipsterFileSystemWatcher - Directory : 'target/classes/petemiller/config/metrics' will be monitored for changes
[DEBUG] io.github.jhipster.loaded.JHipsterFileSystemWatcher - Directory : 'target/classes/petemiller/config/audit' will be monitored for changes
[DEBUG] io.github.jhipster.loaded.JHipsterFileSystemWatcher - Directory : 'target/classes/petemiller/security' will be monitored for changes
[DEBUG] io.github.jhipster.loaded.JHipsterFileSystemWatcher - Directory : 'target/classes/petemiller/aop' will be monitored for changes
[DEBUG] io.github.jhipster.loaded.JHipsterFileSystemWatcher - Directory : 'target/classes/petemiller/aop/logging' will be monitored for changes
[DEBUG] io.github.jhipster.loaded.JHipsterFileSystemWatcher - Directory : 'target/classes/petemiller/service' will be monitored for changes
[DEBUG] io.github.jhipster.loaded.JHipsterFileSystemWatcher - Directory : 'target/classes/petemiller/service/util' will be monitored for changes
[DEBUG] io.github.jhipster.loaded.JHipsterFileSystemWatcher - Directory : 'target/classes/petemiller/async' will be monitored for changes
[INFO] petemiller.Application - Started Application in 19.546 seconds (JVM running for 20.322)

我已经完成了 Maven 清理以及我能想到的所有其他事情,比如检查权限等

下一步的建议,有人吗?

4

0 回答 0