我認爲你缺少創建項目或jpa設置步驟之一。 首先,您必須創建一個項目,然後在編輯生成的datapase.properties之後設置jpa並執行數據庫內省。提示命令將始終引導您進行下一步。
roo> project com.***.*****
Created ROOT/pom.xml
Created SRC_MAIN_RESOURCES
Created SRC_MAIN_RESOURCES/log4j.properties
Created SPRING_CONFIG_ROOT
Created SPRING_CONFIG_ROOT/applicationContext.xml
roo> hint
Roo requires the installation of a persistence configuration,
for example, JPA.
For JPA, type 'jpa setup' and then hit TAB three times.
We suggest you type 'H' then TAB to complete "HIBERNATE".
After the --provider, press TAB twice for database choices.
For testing purposes, type (or TAB) HYPERSONIC_IN_MEMORY.
If you press TAB again, you'll see there are no more options.
As such, you're ready to press ENTER to execute the command.
Once JPA is installed, type 'hint' and ENTER for the next suggestion.
roo> jpa setup --provider HIBERNATE --database MSSQL