entity BusAssess { id Long , tId Long, replyPic String, storesId Integer, created ZonedDateTime, createTime ZonedDateTime, updateTime ZonedDateTime } entity BusItemAssess { id Long, itemId Long, negativePackingNum Integer, negativeLogisticsNum Integer, storesId Integer, created ZonedDateTime, createTime ZonedDateTime, updateTime ZonedDateTime } // Set pagination options 定義分頁 paginate all with pagination //生成mapper dto * with mapstruct // Set service options to all except few 生成service service all with serviceImpl except All // Set an angular suffix angularSuffix * with mySuffix |
jhipster 工具之 JDL
使用jhipster JDL,我們可以快速的生產實體,業務邏輯層等類,這樣大大提高我們的工作效率,下面就是具體的操作流程
1.用jhipster新建一個項目,這裏就直接跳過了,不懂的直接看文檔
2.然後添加一個jhipster-jdl.jh,文件內容如下
3.文件編寫好後,直接開打cmd,進入項目目錄,執行jhipster import-jdl jhipster-jdl.jh
,執行完後就會出現下面內容
這裏直接回車
選擇Y,後面的操作也是如此,最後這樣就生成好了
這裏需要注意實體的類型,下面是對應類型表
這裏有不懂的可以查看官網文檔https://www.jhipster.tech/jdl/
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.