@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;
}
Why iBookService's injection failed in springBoot framwork? thanks.
Aucun commentaire:
Enregistrer un commentaire