@ModelAttribute(“allSeedStarters”)
public List populateSeedStarters() {
return this.accountRepository.findAll();
}
как загрузить в datatable?
Components are server-side agnostic. You need to have some URL that can be called from client side and will return data as JSON, that is all.
In the above case, you need the URL which will return the result of findAll, serialized as JSON. You can use this URL as value for “url” parameter of a datatable.