การผกผันของการควบคุม (IoC) และการฉีดพึ่งพา (DI)

Inversion of Control เป็นหลักการออกแบบ: แทนที่จะสร้างคลาสที่สร้างการขึ้นต่อกันของตัวเอง คลาสจะรับคลาสจากแหล่งภายนอก Dependency Injection เป็นวิธีที่พบได้บ่อยที่สุดในการนำ IoC ไปใช้ — คอนเทนเนอร์จะสร้างอ็อบเจ็กต์และแทรกผู้ทำงานร่วมกัน คอนเทนเนอร์ IoC ของ Spring เป็นเครื่องมือที่ขับเคลื่อนเฟรมเวิร์กทั้งหมด

Full content is available with a subscription.
Get full access to all courses on the platform for one year with a single payment.
Unlike other platforms that charge per course, here you get everything for one price, and after one year of use there will be no automatic charge for the following year.