Spring I/O 2015のキーノート「12 Years of Spring: An Open Source Jorney」をベースにしたSpringの歴史を紹介するプレゼンテーションRead less
今回は2015年11月にバージョン1.0.0がリリースされ、2016年4月19日に1.1がリリースされたmybatis-spring-boot-starterの使い方を紹介します。 MyBatisをSpring Boot上で使う際は、mybatis-springから提供されているSqlSessionFactoryBeanやSqlSessionTemplateのBean定義を開発者が行う必要がありましたが、mybatis-spring-boot-starterの登場によりこれらのBean定義は自動コンフィギュレーションによって解決されます まずは、実際にmybatis-spring-boot-starterを利用して簡単なCLI(Command Line Interface)アプリケーションを作ってみます 。 Note: 2019/7/16: 追記 JDK 13で導入予定(現時点ではPrev
spring boot にはデフォルトでロギング機構が付いている。spring-boot-starter-web の依存に spring-boot-starter-logging 入ってるので、web 有効にしてたら自動でロギング機構も依存に入っている。デフォルトのバックエンドは logback である。 パッケージごとの loglevel の設定は application.yml で出来る。 logging.level.org.springframework.web.servlet.PageNotFound: ERROR しかし、例えば logback の appender を追加したいなどの場合、もはや logback.xml を設定するしかない。XML で記述するのは苦行だが、耐え忍ぶしかない。(XML ではなく groovy でも設定できるが、groovy の方が情報量が少なく、辛
今回から数回(全7回を予定)にわけて、2017/7月リリース予定で2017/5/8にRC1がリリースされたSpring Framework 5.0の主な変更点(新機能や改善点など)を紹介していきたいと思います。 本エントリーは「New Features and Enhancements in Spring Framework 5.0」で紹介されている内容を、サンプルコードなどを交えて具体的に説明していく予定です。(逆にいうと、「New Features and Enhancements in Spring Framework 5.0」にのっていない変更点は紹介しないので、あしからず・・・ ) なお、初回である今回は簡単な概要説明(日本語化+α)にとどめておき、次回から具体的な説明を行っていきます。 トピック 本エントリーでは、Spring Framework 5.0の主な変更点を以下の8つ
Spring MVCでコントローラー層のクラスに付与する。 Controller は、主に以下の役割を担う。 ・画面遷移の制御 ・ドメイン層の Service の呼出 (主処理を実行する) @Controller @RequestMapping("findProduct") public class FindProductController { @Inject FindProductService findProductService; @RequestMapping(value="list") public String list(Model model) { Collection<Product> products = findProductService.findAll(); model.addAttribute("products", products); return "pro
In this post, you’re going to learn how to create a Spring Kafka Hello World example that uses Spring Boot and Maven. (Step-by-step) So if you’re a Spring Kafka beginner, you’ll love this guide. Let’s get started. What is Spring Kafka? #The Spring for Apache Kafka (spring-kafka) project applies core Spring concepts to the development of Kafka-based messaging solutions. It provides a ’template’ as
TERASOLUNA Server Framework for Java (5.x) Development Guideline 5.8.1.RELEASE (2023-04-18) Japanese (HTML, ZIP) 5.7.2.RELEASE (2023-03-31) Japanese (HTML, ZIP) 5.7.1.SP1.RELEASE (2022-04-07) Japanese (HTML, PDF) 5.7.1.RELEASE (2022-03-31) Japanese (HTML, PDF) 5.7.0.SP1.RELEASE (2022-04-07) Japanese (HTML, PDF) 5.7.0.RELEASE (2021-03-31) Japanese (HTML, PDF) 5.6.2.SP1.RELEASE (2022-04-07) Japanese
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く