@Autowired public AccountsController(AccountRepository accountRepository){
  this.accountRepository=accountRepository;
  logger.info("AccountRepository says system has " + accountRepository.countAccounts() + " accounts");
}

@ Autowired public AccountsController ( AccountRepository accountRepository ) { this . accountRepository = accountRepository ; logger . info ( "AccountRepository says system has " + accountRepository . countAccounts ( ) + " accounts" ) ; }
create an instance plugging in the respository of accounts .
