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

Doma2とMVC1.0でJava EE Webアプリを作ろう!

Doma2とMVC1.0でJava EE Webアプリを作ろう!

2016-07-09 Doma勉強会のLT資料です。

5dbaf4015e7f249ab21b195ced8e9e46?s=128

Masatoshi Tada

July 09, 2016
Tweet

More Decks by Masatoshi Tada

Other Decks in Technology

Transcript

  1. Doma2ͱMVC 1.0Ͱ Java EE WebΞϓϦΛ࡞Ζ͏ʂ 2016-07-09(Sat) Doma Tokyo ଟాਅහ(@suke_masa)

  2. ςΩετ ʮJava DomaʯͰάάΔͱ ▸ Domaެࣜ υΩϡϝϯ τͷ࣍ʹ
 ๻ͷϒϩά ͕ɻ

  3. ४උ ▸ GradleΛ࢖͏ ▸ DomaͷઃఆΫϥεΛ࡞Δ ▸ DI༻ͷΞϊςʔγϣϯΛ࡞Δ

  4. DomaͰDBΞΫηε ▸ SQLϑΝΠϧΛ࡞Δ ▸ ΤϯςΟςΟΛ࡞Δ ▸ DaoΠϯλϑΣʔεΛ࡞Δˠgradle build͢Δͱ XxxDaoImplΫϥε͕࡞ΒΕΔ

  5. ϏδωεϩδοΫ ▸ XxxDaoΛInject ▸ @javax.transaction.TransactionalͰτϥϯβΫγϣ ϯ؅ཧ

  6. ίϯτϩʔϥʔ ▸ MVC 1.0ʂ ▸ JAX-RSϦιʔεΫϥεʹ@Controller෇͚Δͩ ͚ʂ

  7. Ϗϡʔ ▸ ͔ͤͬ͘ͳͷͰThymeleaf 3ʂ ▸ thymeleaf-extras-java8timeΛ࢖͑͹LocalDateͷ දࣔ΋Մೳʂ ▸ Optional͸ThymeleafͷDialectΛࣗલ࣮૷͢Ε͹ ࢖͑Δɾɾɾ͸ͣ

  8. ࣮ߦ ▸ ͔ͤͬ͘ͳͷͰPayara Microʂ ▸ ͞Βʹ͔ͤͬ͘ͳͷͰ࣮ߦՄೳJARʂ

  9. σʔλιʔε ▸ web.xmlʹఆٛ͢Ε͹ɺPayara MicroͰ΋ਾ͑ஔ͖ Java EEαʔόʔͰ΋OKʂ

  10. Java EE 7ඪ४͸Ͳ͜΁ߦͬͨʁ ▸ Doma2 ▸ MVC 1.0 ▸ Thymeleaf3

    ▸ ඪ४ͳͷ͸CDIͱJTAͱJAX-RS͘Β͍ɾɾɾʁ ▸ ·͋झຯͳͷͰڐ͍ͯͩ͘͠͞ɻ
  11. ݁࿦ ▸ Domaָ͍͠ʂ ▸ MVC 1.0ָ͍͠ʂ ▸ Thymeleafָ͍͠ʂ ▸ Payara

    Microָ͍͠ʂ ▸ Gradleා͘ͳ͍ʂ ▸ ιʔεˠhttps://github.com/MasatoshiTada/doma2- thymeleaf3-mvc10