陈思成资料上⼀篇博客介绍了怎么运⽤Jhipster快速搭建项⽬:链接:
下⾯讲⼀下怎么运⽤Jhipster快速创建实体类、controler层等
⼀、快速创建实体类、controler层等
1.到项⽬的⽬录
2.创建⼀个 .jhipster的⽂件夹支付宝支付密码被锁定怎么办
3.进⼊ .jhipster的⽂件夹下,创建⼀个json⽂件(名字是你所创建实体类的名字)
4.打开.json⽂件
输⼊⼀下信息,并修改⼀下信息(格式⼀定要正确)
fields:表格的每⼀项
entityTableName:你设计表格的名字
{
郑元畅的女朋友"fluentMethods":true,
"relationships":[],
"fields":[{"fieldName":"applyno","fieldType":"String"},{"fieldName":"applyuser","fieldType":"String"},{"fieldName":"applydept","fieldType":"String"},{"fieldNa me":"applydate","fieldType":"Instant"},{"fieldName":"title","fieldType":"String"},{"fieldName":"content","fieldType":"String"},{"fieldName":"state","fieldType":"St ring"},{"fieldName":"operator","fieldType":"String"},{"fieldName":"makedate","fieldType":"Instant"},{"fieldName":"maketime","fieldType":"String"},{"fieldName" :"modifydate","fieldType":"Instant"},{"fieldName":"modifytime","fieldType":"String"}],
"entityTableName":"zygl_notice",
"dto":"mapstruct",
"searchEngine":false,
"pagination":"pagination",
"service":"serviceClass",
"jpaMetamodelFiltering":true
}
5.运⾏git命令,⾃动⽣成实体类等
在.json⽬录下右键–git bush 输⼊
//jhipster entity 实体类名字--skip-client
jhipster entity ZyglNotice --skip-client
有⼏个回答的问题,默认Y就⾏
新建成功,进⼊项⽬中查看新⽣成的类
⼆、⾃动在数据库⽣成表格清远美食
在上⾯快速创建实体等类之后,同时在项⽬之中创建了⾃动⽣成表格的⽂件下⾯两个就是⾃动⽣成表格的⽂件
吃什么菜可以减肥l:决定是否运⾏changelog下的建表⽂件
changelog下的⽂件,是创建表格的⽂件
张哲瀚电视剧
发布评论