[JAVA] Part2 Part II. How to proceed with Getting Started Spring Boot Reference Guide Note ①

How to proceed with the manual

This time is Part 2. By the way, Part 1 is an overview, so you can skip it. Part2 Part II. Getting Started

Maven and gradle

You can choose either one, but Maven is recommended just for reading the manual. The explanation is basically centered on maven. However, if you look for articles etc., it seems that gradle will be the main in the future, so it is best to try both. At least you shouldn't skip the gradle part.

File creation location

10.2.6 Quick-start Spring CLI Example I will leave the part that I was wondering about doing the above items. The location where the file is created is not written, but if it is Windows, it is better in the user folder. Run spring run app.groovy to the folder where you created the file with cd folder name Do it after the move. (If you are in the user folder at the time of launching the command prompt, you do not need to move it)

The one annotated with @ RestController returns data such as a character string, so basically we are creating a program that simply returns" Hello, World! ".

Creating a POM file

Creating the POM

You should create a dedicated folder

After "Creating the POM", Maven is used to create a folder structure and load libraries, but if you create it in the user folder, multiple folders will be created and it will be messed up. At this stage, it is a good idea to create a folder with a name such as "spring-sample" in the user folder and use cd spring-sample to enter the folder and work on it.

Recommended Posts

Part2 Part II. How to proceed with Getting Started Spring Boot Reference Guide Note ①
Getting Started with Spring Boot
[Note] How to get started with Rspec
How to use MyBatis2 (iBatis) with Spring Boot 1.4 (Spring 4)
How to use built-in h2db with spring boot
How to boot by environment with Spring Boot of Maven
Get started with Spring boot
Introduction to Spring Boot Part 1
I tried to get started with Swagger using Spring Boot
How to get started with slim
How to set Spring Boot + PostgreSQL
How to use ModelMapper (Spring boot)
Message cooperation started with Spring Boot
How to create your own Controller corresponding to / error with Spring Boot
How to apply thymeleaf changes to the browser immediately with #Spring Boot + maven
How to read Body of Request multiple times with Spring Boot + Spring Security
Getting Started with Java Starting from 0 Part 1
How to split Spring Boot message file
How to perform UT with Excel as test data with Spring Boot + JUnit5 + DBUnit
How to make Spring Boot Docker Image smaller
How to use Spring Boot session attributes (@SessionAttributes)
How to add a classpath in Spring Boot
How to get started with Eclipse Micro Profile
Getting started with Kotlin to send to Java developers
How to bind to property file in Spring Boot
[Java] Article to add validation with Spring Boot 2.3.1.
Getting Started with Doma-Introduction to the Criteria API
[Spring Boot] How to refer to the property file
[Introduction to Spring Boot] Authentication function with Spring Security
Spring Boot --How to set session timeout time
Settings for connecting to MySQL with Spring Boot + Spring JDBC
[Note] Configuration file when using Logback with Spring Boot
How to set Dependency Injection (DI) for Spring Boot
Message cooperation started with Spring Boot Apache Kafka edition
How to write a unit test for Spring Boot 2
Automatically map DTOs to entities with Spring Boot API
[Java] How to omit spring constructor injection with Lombok
How to create a Spring Boot project in IntelliJ
[Spring Boot] How to create a project (for beginners)
I tried to get started with Spring Data JPA
Customize REST API error response with Spring Boot (Part 2)
How to use CommandLineRunner in Spring Batch of Spring Boot
Customize REST API error response with Spring Boot (Part 1)
Attempt to SSR Vue.js with Spring Boot and GraalJS
How to use the same Mapper class in multiple data sources with Spring Boot + MyBatis
Let's find out how to receive in Request Body with REST API of Spring Boot
Getting Started with DBUnit
Getting Started with Ruby
Getting Started with Swift
Getting Started with Docker
Getting Started with Doma-Transactions
Download with Spring Boot
Proceed with Rust official documentation on Docker container (1. Getting started)
Output embedded Tomcat access log to standard output with Spring Boot
How to change application.properties settings at boot time in Spring boot
Spring Boot Introductory Guide I tried [Accessing Data with JPA]
Extract SQL to property file with jdbcTemplate of spring boot
Until INSERT and SELECT to Postgres with Spring boot and thymeleaf
How to get started with Gatsby (TypeScript) x Netlify x Docker
How to call and use API in Java (Spring Boot)
Connect to database with spring boot + spring jpa and CRUD operation