an opinionated DSL/conventions for spring boot?

Viewed 18

i want to roll out an opinionated version of Spring Boot at my company. And so I want to eliminate all the annotations and decorators. I simply want to be able to have someone say

@MyGetMapping("users/{id}")
public ResponseEntity<User> getById(@PathVariable long id)

and all the entity generation etc is autocreated. it is hardwired to be JSON, so all the produces = MediaType.APPLICATION_JSON_VALUE is unnecessary.

Especially things like Spring Security - i definitely want a pre-defined set of roles and authentication type, without each developer having to do this again.

has anyone done this at their workplace for productivity reasons ? wanted to know how to go about creating this ?

0 Answers
Related