4 ms·
If you put @AllArgsConstructor from Lombok on that PersonEndpoint class, you should be able to remove the boilerplate `public PersonEndpoint(PersonRepository re
by henning 5y ago
If you put @AllArgsConstructor from Lombok on that PersonEndpoint class, you should be able to remove the boilerplate `public PersonEndpoint(PersonRepository repository) { this.repository = repository; }` constructor entirely since the Lombok annotation will generate it for you. Seems reasonable to do if the point is to show "modern Java".