Spring Mvc

  • View
    2.681

  • Download
    5

Embed Size (px)

DESCRIPTION

Elaz Frat niversitesinde 21.3.2009 da dzenlenen Yazlm Mimarisi Tasarm Gnne konumac olarak katldm ve Spring MVC isimli bu sunumu yaptim.

Transcript

  • 1. .com Kurumsal Java.com zcan Acar 2009

2. Spring MVC zcan Acaracar@unitedinter.nethttp://www.ozcanacar.com http://www.kurumsaljava.comKurumsal Java.com Kurumsal Java.com zcan Acar 2009 2009 3. zcan Acar Hakknda public class OezcanAcar {public static void main(String[] args){Acar oezcan = new Acar();oezcan.setBirthday(quot;18.07.1974quot;);oezcan.setBirthplace(quot;Izmirquot;);oezcan.setJob(quot;Bilgisayar Mhendisiquot;); oezcan.setPassion(quot;Java EEquot;);} } Kurumsal Java.com Kurumsal Java.com zcan Acar 2009 2009 4. zcan Acar Hakknda Kurumsal Java.com Kurumsal Java.com zcan Acar 2009 2009 5. Java Tasarm ablonlar ve Yazlm MimarileriTasarm ablonu nedir?Interface / Abstract snf nedir?Oluturucu Tasarm ablonlar Factory, Abstract Factory, Builder, Prototype,SingletonYapsal Tasarm ablonlarAdapter, Bridge, Facade,Decorator, Composite,Flyweight,ProxyDavransal Tasarm ablonlar Command, Memento,Strategy, Iterator, State, Observer,VisitorKurumsal Java.comKurumsal Java.comzcan Acar 2009 2009 6. Extreme Programming evik sre nedir? evik manifesto Extreme Programming nedir? XP deerleri ve prensipleri evik proje planlamas evik srelerde iletiim evik tasarm Srekli entegrasyon Test gdml yazlm Yazlm metrikleriKurumsal Java.com Kurumsal Java.com zcan Acar 2009 2009 7. Sunumun erii MVC Tasarm ablonu Spring Framework Spring Dependency Injection Spring Annotations Spring ile web programcl Spring MVC Spring MVC DemoKurumsal Java.comKurumsal Java.comzcan Acar 2009 2009 8. MVC Tasarm ablonuGelenstei requestynlendirmeFront ControllerController ModelGnderilenresponse ModelModelnesnesini oluturma HTML ktsView Kurumsal Java.com Kurumsal Java.com zcan Acar 2009 2009 9. Spring Framework Kurumsal Java.com Kurumsal Java.com zcan Acar 2009 2009 10. Spring Framework Kurumsal Java.com Kurumsal Java.com zcan Acar 2009 2009 11. Spring Framework XML konfigrasyonu Kurumsal Java.com Kurumsal Java.com zcan Acar 2009 2009 12. Spring Annotation @Component- Sinifin komponent oldugunu gsterir@Controller- Spring MVC icinde controller siniflari icin kullanilir@Repository- Spring MVC icinde controller siniflari icin kullanilir@Service- Isletme katmanindaki facade siniflari icin kullanilir.@Autowired- Bir bagimliligin otomatik enjekte edilmesini saglar.Kurumsal Java.comKurumsal Java.comzcan Acar 2009 2009 13. Spring le Web Programcl Spring MVC Spring Web Flow Spring Javascript Spring Faces Spring PortletKurumsal Java.com Kurumsal Java.com zcan Acar 2009 2009 14. Spring MVC Spring frameworknn web modl. Spring IOC container ile entegre ve DI kullanm Gsterim katman iin JSP, Excel, PDF, Freemarker, Velocity kullanlabilir Test gdml almay mmkn klar Basit programlama modeli, grenimi kolay Annotation kullanm Validation ve Data Binding framework Tag LibraryKurumsal Java.comKurumsal Java.comzcan Acar 2009 2009 15. Spring MVCGelenstei requestynlendirmeDispatcherController Servlet CommandGnderilenresponse Model Commandnesnesini oluturma HTML ktsView Kurumsal Java.com Kurumsal Java.com zcan Acar 2009 2009 16. Spring MVC Annotation @Controller- Spring MVC iinde controller snflar iin kullanlr@RequestMapping- Controller snf metotlar ile kullanc isteini (request)ilikilendirir@RequestParam- Bir metot parametresini request iinde bulunan bir deereeitler@SessionAttributes- Controller snflarnca kullanlan session deerlerinibelirler Kurumsal Java.comKurumsal Java.comzcan Acar 2009 2009 17. Spring MVC rnegiKurumsal Java.comKurumsal Java.comzcan Acar 2009 2009 18. Spring MVC rnegiKod rnei:http://www.kurumsaljava.com/2009/03/23/yazilim-mimarisi-tasarimi-gunu-2/Kurumsal Java.comKurumsal Java.comzcan Acar 2009 2009