Skip to Content
Spring Boot:立ち上げて実行する
book

Spring Boot:立ち上げて実行する

by Mark Heckler
March 2025
Beginner to intermediate
328 pages
5h 36m
Japanese
O'Reilly Media, Inc.
Content preview from Spring Boot:立ち上げて実行する

第2章. ツールを選び、始める

この作品はAIを使って翻訳されている。ご意見、ご感想をお待ちしている:translation-feedback@oreilly.com

Spring Bootアプリの作成を始めるのは簡単だ。最も難しいのは、利用可能なオプションの中からどれを選ぶかを決めることかもしれない。

この章では、Spring Bootアプリケーションを作成するために利用できる、ビルドシステム、言語、ツールチェーン、コードエディタなど、優れた選択肢のいくつかを検証する。

MavenかGradleか?

歴史的に、Javaアプリケーション開発者はプロジェクト・ビルド・ツールの選択肢をいくつか持っていた。いくつかのツールはタイムアウトになり、現在では2つのツールを中心にコミュニティが形成されている:MavenとGradleだ。Spring Bootはこの2つを見事にサポートしている。

アパッチ・メイブン

Mavenは、ビルド自動化システムとして人気があり、堅実な選択肢だ。2002年に始まり、2003年にはApache Software Foundationのトップレベルプロジェクトとなった。pom.xmlというXML形式のファイルを作成し、必要な依存関係やプラグインを記述するだけだ。pom.xmlというXML形式のファイルを作成し、必要な依存関係やプラグインを記述するだけである。mvn 、完了する「フェーズ」を指定し、コンパイル、事前出力の削除、パッケージ化、アプリケーションの実行など、必要なタスクを実行することができる:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
		xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
		xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
		https://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>2.4.0</version>
		<relativePath/> <!-- lookup parent from repository -->
	</parent>
	<groupId>com.example</groupId>
	<artifactId>demo</artifactId>
	<version>0.0.1-SNAPSHOT</version>
	<name>demo</name>
	<description>Demo project for Spring Boot</description>

	<properties>
		<java.version>11</java.version>
	</properties>

	<dependencies>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter</artifactId>
		</dependency> ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

実用 Git 第3版

実用 Git 第3版

Prem Kumar Ponuthorai, Jon Loeliger, 萬谷 暢崇, 長尾 高弘
Javaによる関数型プログラミング ―Java 8ラムダ式とStream

Javaによる関数型プログラミング ―Java 8ラムダ式とStream

Venkat Subramaniam, 株式会社プログラミングシステム社
Java 開発者向け DevOps ツール

Java 開発者向け DevOps ツール

Stephen Chin, Melissa McKay, Ixchel Ruiz, Baruch Sadogursky

Publisher Resources

ISBN: 9798341626911