JPMS عمليًا في الخدمات الخلفية
في هذا الدرس 4 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
decide whether a Spring service should use JPMS.
الموضوعات المخطط لها
- Spring Boot applications mostly run on the classpath; framework reflection, auto-configuration, and many libraries (some without module descriptors) make JPMS costly.
- Benefit is mainly for libraries and some shared modules with clear APIs.
- Alternatives for boundaries: Maven or Gradle multi-module builds, package structure conventions, and ArchUnit rules.
- Check the JPMS support of your framework versions before committing (verify version).
- Choose by cost and benefit, not fashion.
تفاصيل المخطط المبدئي
عرض عملي
a table: Option / enforcement / cost — JPMS: compile and runtime / high with frameworks; multi-module build: compile / medium; ArchUnit: test time / low.
اختبر فهمك
Name one cheaper alternative to JPMS for boundaries.
أظهر الإجابة
ArchUnit tests or build modules.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.