🏠 الرئيسية
المقاييس
📊 جميع المقاييس 🦖 ديناصور v1 🦖 ديناصور v2 ✅ تطبيقات قائمة المهام 🎨 صفحات حرة إبداعية 🎯 FSACB - العرض النهائي 🌍 مقياس الترجمة
النماذج
🏆 أفضل 10 نماذج 🆓 نماذج مجانية 📋 جميع النماذج ⚙️ كيلو كود
الموارد
💬 مكتبة الأوامر 📖 قاموس الذكاء الاصطناعي 🔗 روابط مفيدة
Expert

Architecture Hexagonale (Ports & Adapters)

#architecture #java #clean-code #backend

Structure un projet Java/Spring selon l'architecture hexagonale.

Je veux structurer mon application Java (Spring Boot) en Architecture Hexagonale. Définis la structure des packages et explique le rôle de chacun : 1. **Domain** (Core) : Entités et logique métier pure. 2. **Application** (Ports) : Interfaces (Input/Output ports). 3. **Infrastructure** (Adapters) : Implémentations (BDD, API REST). Montre un exemple de code pour un Service qui implémente un Port.