Created
November 19, 2019 20:29
-
-
Save stefanotroia/5d03b003609a0022542c173c70a905f7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BaseController<E extends BaseEntity> { | |
@Autowired | |
private BaseService<E> baseService; | |
@PostMapping("/save") | |
public Mono<E> save(Authentication auth, | |
@RequestBody E entity) { | |
return baseService.save(getTenant(auth),entity); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment