Use Autowired to new up repo