الـ Profiles وأولوية الإعدادات
في هذا الدرس 4 موضوعات
محتوى هذا الدرس مكتوب وينتظر المراجعة. يعرض المخطط أدناه ما سيغطيه، وسيُنشر بعد اعتماده.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
explain which value wins and how environments differ.
الموضوعات المخطط لها
- A profile is a named set of settings, such as
dev,test,prod. - Precedence: the more specific or later source wins.
- Typical order, weakest to strongest: defaults in the file, profile file, environment variable, command-line option.
- Frameworks (like Spring Boot, later) define this order; read their documentation (verify before recording).
- Document the order in the README.
تفاصيل المخطط المبدئي
عرض عملي
a table: source / strength. For example application.yml < application-prod.yml < env var < command line.
اختبر فهمك
If the file says 0.19 and the env var says 0.07, which wins?
أظهر الإجابة
The environment variable.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.