Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Dr. Springlove

Dr. Springlove

09387cf644abcfd34e981378f9e70541?s=128

zhanpon

May 18, 2019
Tweet

Transcript

  1. Dr. Springlove ·ͨ͸ࢲ͸೗Կʹͯ͠৺഑͢ΔͷΛࢭ ΊͯDIΛѪ͢ΔΑ͏ʹͳ͔ͬͨ

  2. ࣗݾ঺հ: @zhanpon » ࢓ࣄ1. Spring BootͰϨίϝϯσʔγϣϯγεςϜ։ൃ » ࢓ࣄ2. ࣾ಺ͷ਺ֶಉ޷ձͷΦʔΨφΠβʔ

  3. ͜ͷLTͰ఻͍͑ͨ͜ͱ

  4. "Dependency Injection: Principles, Practices, and Patterns"ͱ͍͏ຊ͕ ૉ੖Β͍͠ͷͰ঺հ͍ͨ͠ʂ

  5. None
  6. ग़ձ͍

  7. ڈ೥ͷ4݄ࠒ ͳΜ͔ม਺ʹ@Autowired͚ͬͯͭΔͱϑϨʔϜϫʔΫ͕ͦͷػೳΛఏڙ ͯ͘͠ΕΔΒ͍͠ɻSpring Bootͬͯศརͩͳʙ

  8. ڈ೥ͷ5݄ࠒʢͦͷ1ʣ ͋͋ɺ·ͨjava.lang.IllegalStateException: Failed to load ApplicationͩʂΞϊςʔγϣϯͩΒ͚ͰԿ΋Θ͔Βͳ͍ʔʔ

  9. ڈ೥ͷ5݄ࠒʢͦͷ2ʣ ;Ή;ΉɺDIͷઐ໳ॻ͕͋ΔΒ͍͠ɺಡΜͰΈΑ͏ɻ

  10. ͦͯ͠……։؟

  11. DIຊͷ͍͍ͱ͜Ζ 1. ߟ࡯͕ଟ໘త 2. ϑϨʔϜϫʔΫʹཔΒͳ͍

  12. ߟ࡯͕ଟ໘త

  13. None
  14. ߟ࡯͕ଟ໘త ʮDI͚͖ͬͯͬΐ͘{஗ԆόΠϯσΟϯά,୯ମςετ}ͷͨΊʹ͋ΔΜͰ ͠ΐʯΈ͍ͨͳ୯७ͳ݁࿦ʹඈͼ͔ͭͳ͍

  15. ߟ࡯͕ଟ໘త ͜ͷຊͰ͸3ͭͷ࣠Ͱߟ࡯͞Ε͍ͯΔ 1. Object Composition 2. Object Lifetime 3. Interception

  16. ϑϨʔϜϫʔΫʹཔΒͳ͍ » Part 1: DIͷશମ૾ » Part 2: Χλϩά »

    Part 3: ७ਮͳDI » Part 4: DIίϯςφ
  17. ϑϨʔϜϫʔΫʹཔΒͳ͍ » Ch. 10: Aspect-Oriented Programming by design » Ch.

    11: Tool-based Aspect-Oriented Programming
  18. ϑϨʔϜϫʔΫʹཔΒͳ͍ ʮͳΜ͔ΨνϟΨνϟΞϊςʔγϣϯ෇͚ͨΒ௚ͬͨʯͱ͍͏ࢥߟ͔Β ൈ͚ग़ͤͨɻ

  19. ͱ͜ΖͰ…

  20. ୈ1൛

  21. None
  22. C#ͷຊͰͨ͠ʂ ͝ΊΜ ͳ͍͞ʂʂ

  23. ׬