samedi 26 décembre 2020

Why iBookService's injection failed in springBoot framwork? thanks

@Service
public interface IBookService {

    public void getDetailInfo(Book book);

    public void getBackBook(Book book);

    public void buyBook(Book book);

}

————————————————————————————————

@SpringBootApplication(exclude = {
        DataSourceAutoConfiguration.class,
        DataSourceTransactionManagerAutoConfiguration.class,
        HibernateJpaAutoConfiguration.class,
        MongoAutoConfiguration.class})
public class Application {

————————————————————————————————

public class AOPTest extends BaseTest {
    @Autowired
    IBookService iBookService;

}

enter image description here

Why iBookService's injection failed in springBoot framwork? thanks.

Aucun commentaire:

Enregistrer un commentaire