來看看如何使用Spring DI 的功能,將〈在DI 之前〉中相依注入的職責,委由Spring 來完成。 為了要能使用Spring DI,可以在build.gradle 設定、管理Spring 相關模組:
確定! 回上一頁