Back to Generator Jhipster

spring-boot sub-generator

generators/spring-boot/README.md

9.0.0413 B
Original Source

spring-boot sub-generator

Spring Boot generator.

Customizing

Entities

Notable customizations

Layers

Customize @PreAuthorize annotations at Rest layer. Calculated using (@EntityAuthority)[../app/README.md#Authority] by default.

@EntitySpringPreAuthorize("hasAuthority('ROLE_CUSTOM')")
@EntitySpringReadPreAuthorize("hasAuthority('ROLE_CUSTOM_READ')")
entity CustomPreAuthorize {}