jhipster框架使用记录

记录1
dev开发环境数据库
prod生产运行环境中数据库
填好 账号密码,自动生成数据库

记录2
自动创建实体的类: 比如Round实体

domain Round
rest RoundResource 
repository RoundRepository

config CacheConfiguration配置类   cm.createCache(com.mycompany.myapp.domain.Round.class.getName(), jcacheConfiguration);
config 配置xml    20180722013637_added_entity_RoundC.xml   

service 自己创建    打上注解@Service  即可一样使用 RoundService
数据库中的实体表不用自己手动创建
一旦创建了实体,,,目前删除不了

记录3
手动创建实体

domain RoundC
rest RoundCResource 
repository RoundCRepository
service RoundCService

配置文件
config CacheConfiguration   cm.createCache(com.mycompany.myapp.domain.RoundC.class.getName(), jcacheConfiguration);
20180722013637_added_entity_RoundC.xml   
master.xml

注解,配置文件  写好,就可以自己手动创建

记录4
Full authentication is required to access this resource 访问此资源需要完全的身份验证
http://192.168.3.234:8080/api/calculatePi?radius=3

修改 SecurityConfiguration

.antMatchers("/api/**").authenticated()
.antMatchers("/management/health").permitAll()

修改权限
消除访问此资源需要完全的身份验证

编写 2018-8-3 17:55

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值