Spring BootによるAPIバックエンド構築実践ガイド 第2版 何千人もの開発者が、InfoQのミニブック「Practical Guide to Building an API Back End with Spring Boot」から、Spring Bootを使ったREST API構築の基礎を学んだ。この本では、出版時に新しくリリースされたバージョンである Spring Boot 2 を使用している。しかし、Spring Boot3が最近リリースされ、重要な変...
![VaadinがHillaを発表し、フロントエンド/バックエンドWeb開発を統合](https://cdn-ak-scissors.b.st-hatena.com/image/square/bc4e67967f32a359f17931acdcb174442dda4949/height=288;version=1;width=512/https%3A%2F%2Fcdn.infoq.com%2Fstatics_s2_20240416075815%2Fstyles%2Fstatic%2Fimages%2Flogo%2Flogo-big.jpg)
前回の続き。 blog1.mammb.com モーダルダイアログで新しい Customer を登録してみる。 モーダルダイアログ ダイアログは Window を作成して setModal(true) にするとモーダルとなる。 今回は Window を継承して Customer 登録用のダイアログを追加する。 src/main/groovy/hello/CustomerEditDialog.groovy package hello import com.vaadin.data.validator.StringLengthValidator import com.vaadin.server.FontAwesome import com.vaadin.ui.* class CustomerEditDialog extends Window { TextField firstName = new
前回の続き。 blog1.mammb.com コード編集の度にコンパイルが面倒なので、ちょっとわき道にそれて、Spring Loaded を入れて Hot Swap が使えるようにしておく。 UIの調整はブラウザで確認しながら調整するので、都度立ち上げ直しは大変ですしね。 springloaded の設定 build.gradle の buildscript の依存に springloaded を追加する。 buildscript { repositories { jcenter() } dependencies { classpath 'org.springframework.boot:spring-boot-gradle-plugin:1.3.1.RELEASE' classpath 'org.springframework:springloaded:1.2.5.RELEASE' }
結構むかしになりますが、Spring boot の Vaadin サポートが出来てきたので簡単なチュートリアル。 プロジェクトの作成 まずは最小限のサンプルを作成します。 gradle でプロジェクト作成。 $ mkdir example-springboot-vaadin $ cd example-springboot-vaadin $ gradle init --type java-library build.gradle を以下のように編集。 buildscript { repositories { jcenter() } dependencies { classpath 'org.springframework.boot:spring-boot-gradle-plugin:1.3.1.RELEASE' } } apply plugin: 'java' apply plugin: '
This guide walks you through the process of building an application that uses a Vaadin-based UI on a Spring Data JPA based backend. You will build a Vaadin UI for a simple JPA repository. What you will get is an application with full CRUD (Create, Read, Update, and Delete) functionality and a filtering example that uses a custom repository method.
前回に続き、JPAで取得したデータをグリットで表示する簡単なサンプル。 blog1.mammb.com 面倒くさいので Groovy で書くことにする。 依存の追加 build.gradle にJPA関連の依存を追加する。 buildscript { repositories { jcenter() } dependencies { classpath 'org.springframework.boot:spring-boot-gradle-plugin:1.3.1.RELEASE' } } apply plugin: 'java' apply plugin: 'groovy' apply plugin: 'idea' apply plugin: 'spring-boot' repositories { jcenter() } sourceCompatibility = 1.8 targe
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く