Skip to content

Instantly share code, notes, and snippets.

@stefanotroia
Created November 19, 2019 20:29
Show Gist options
  • Save stefanotroia/5d03b003609a0022542c173c70a905f7 to your computer and use it in GitHub Desktop.
Save stefanotroia/5d03b003609a0022542c173c70a905f7 to your computer and use it in GitHub Desktop.
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