jhipster框架使用记录

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_36712111/article/details/83893592

记录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

猜你喜欢

转载自blog.csdn.net/qq_36712111/article/details/83893592