【发布时间】:2014-05-30 22:32:33
【问题描述】:
我做了以下事情:
- 在development guide 之后创建了新的 jhipster 应用程序
- 根据来自 IntelliJ 的here 启动了具有热重载 VM 选项的应用程序类;命令行
C:\dev\jdk1.8.0\bin\java -javaagent:spring_loaded/springloaded-jhipster.jar -noverify -Dspringloaded=plugins=io.github.jhipster.loaded.instrument.JHipsterLoadtimeInstrumentationPlugin -Didea.launcher.port=7538 "-Didea.launcher.bin.path=C:\dev\IntelliJ IDEA\bin" -Dfile.encoding=UTF-8 -classpath "*snip very long classpath" com.intellij.rt.execution.application.AppMain com.mysoftware.Application - 根据here 使用
yo jhipster:entity project创建新实体 - 预期结果 - 一切正常
- 获得的结果 - 转到
http://localhost:8080/#/project得到org.h2.jdbc.JdbcSQLException: Table "T_PROJECT" not found -
/src/main/resources/config/liquibase/changelog只有db-changelog-001.xml - 重启没有帮助
所以看起来像一步
If you have used hot reload in the previous step, JHipster has automatically created a new file named src/main/resources/config/liquibase/changelog/db-changelog--002.xml.
来自here 并没有真正发生。
我做错了什么?
手动调用生成 db-changelog-002.xml 的最简单方法是什么;由于我不热衷于手动编写它,实体类已经拥有所有信息。
【问题讨论】: