アプリケーションコンテキストの取得の仕方

619 views

Published on

社内勉強会資料

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
619
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide



























  • アプリケーションコンテキストの取得の仕方

    1. 1. How to get an ApplicationContext Spring Framework Workshop 2nd
    2. 2. Spring Framework • Bean • • Bean
    3. 3. DI
    4. 4. • public static void main(String[] args) {} • Web Application • Test Code
    5. 5. • Spring Framework •
    6. 6. public static void main ( String[] args ) { } • Bean • Bean
    7. 7. public static void main ( String[] args ) { } • FileSystemXmlApplicationContext () • ClasspathXmlApplicationContext()
    8. 8. public static void main ( String[] args ) { } • example basic-dependency-injection
    9. 9. Web Application • Bean
    10. 10. Web Application
    11. 11. Web Application • web.xml Bean • Bean
    12. 12. Web Application • ContextLoaderListener • XmlWebApplicationContext
    13. 13. Web Application • example jpetstore
    14. 14. Test Code • • JUnit •
    15. 15. Test Code • AbstractTransactionalJUnit4SpringContext Tests
    16. 16. Test Code • example petclinic
    17. 17. Test Code • • @RunWith(SpringJUnit4ClassRunner.class) • @ContextConfiguration
    18. 18. Test Code • + “- context.xml”
    19. 19. Test Code • example basic-dependency-injection
    20. 20. • Bean • static main(String[]) • Web Application • Test Code
    21. 21. • ApplicationContext.xml Bean
    22. 22. • Java Bean • XML
    23. 23. • @Configuration • @Bean • AnnotationConfigApplicationContext()
    24. 24. • example configuration-basic
    25. 25. • OSGi •
    26. 26. Resources • http://www.springsource.org/download • https://src.springframework.org/svn/spring- samples/ • http://svn.springbyexample.org
    27. 27. Thanks

    ×