[JAVA] Spring Boot for the first time

Spring Boot for the first time

Recently, I'm thinking of getting a job aiming to improve my skills, so I'm new to frameworks, but using frameworks I'm thinking of creating a portfolio.

Currently, I am retired, so I plan to create a portfolio in about a month, Post an article as a memorandum at that time.

Build a simple inventory management system using Spring Boot as the content of the portfolio. We plan to continue designing DBs and screens, deploying to AWS, etc. I first read some introductory books because I needed to know the specifications of Spring Boot.

Here, you can use the latest book to read the application even from those who have no experience with Spring Boot. Introducing books that will give you the knowledge to build.

The prerequisite knowledge required to read the books to be introduced is roughly as follows. ・ Knowledge of Java8 language specifications (Oracle qualification Java8 Gold acquisition level) Since the book to be introduced is implemented in Java8, Knowledge of Java 8 is essential. Among them, StreamAPI appears frequently, so Java8 Gold is used to move the functional interface. You should know

・ Basic pattern of Java8 design pattern A basic design pattern is used as the Spring architecture, Many books also explain based on the contents of design patterns. Patterns to keep in mind include singletons, factory methods, adapters, builders, Proxy etc. need to be in advance as knowledge. Some books use simple UML class diagrams to explain. In particular, the concept of delegation used to explain DI must be understood even if you have little experience with Java.

・ Basic knowledge of Linux (LPIC level 1 acquisition level) When building the Spring Boot environment, some explanations are based on command operations, so You need to know the basic commands of Linux As an example, call RestAPI while developing in the local environment. For example, call it from a local process on the command line

・ Basic knowledge of DB The introductory book to be introduced uses H2DB, MYSQL, and POTSGRESQL to perform DB operations. Understanding basic SQL for reading and writing data, connection pool, JDBC specifications, etc. considering Java cooperation It is necessary to know how to read the ER diagram, normalization, isolation level, and propagation level.

・ Basic knowledge of HTML, CSS, JavaScript HTML is written using a template called Timeleaf, which is a function of Spring. To understand the content, it is better to easily understand the simple movements of CSS and JS. HTML cannot be read without knowing how to create table tags. Since CSS is used to explain the screen with simple decoration, it can be handled while searching the net. JS is male, but some are described. How to move the click function You need to understand the behavior of asynchronous requests.

·tool You need to know how to use Eclipse. This is because I feel that there are not many books that explain in a polite manner. As a build tool, it is better to understand the movement of Maven at the command level. Even if you don't, the books introduced below can handle it, but it may get stuck. It is better to have it as knowledge.

Finally, I felt that I needed to read the code of the application using Java in the field. The reason is that Spring Boot books are a tool for building entire applications. Since each chapter of Spring is not related to each other and there are a lot of sample code partially posted, In the first place, if you do not understand what kind of function the application is made up of, This is because I don't understand how to implement the code described and what the code is for.

Based on the above, for those who are planning to learn Spring Boot (Spring) from now on I would like you to read the books introduced from the top in order.

An introductory book to not regret Spring Kaitai Shinsho


The point of this book is that it is excellent and "you can write code that works for the time being". When building an application, it can be read without the prerequisite knowledge required to implement Spring. If you copy the program described in the book, It is written so that you can understand the rough specifications of Spring naturally.

Many of the books introduced below do not work with simple sutras, and you will learn Spring. There are many things that you can't get the prerequisite knowledge, but this book will work if you really copy it.

Some of the Spring versions are older, and some don't work. If you understand the basic specifications of Java and can read the stack trace, you can search the net. Of course, you don't even need to be able to read the Spring framework stack trace at this stage.

As a description of the book, what is the Spring framework, the advantages of DI, the basic movement of Spring MVC, It describes the movement and practical usage of AOP, DB linkage, how to implement RestAPI, and the basics of vulnerability countermeasures using Spring Security.

It is structured so that you can imagine the whole picture of the Spring application if you proceed while copying the sutras. No other book like this is the one I've been looking for, and I can conclude that it's the first book a beginner should read.

I definitely recommend reading from this book first.

Getting Started with Java Build Tools Maven / Gradle / SBT / Bazel


This book explains how to use Java build tools. Even in the book introduced at the beginning, there is a content that starts Maven in Eclipse and acquires the library. You can see what's actually going on on the command line.

Also, some Spring books use Gradle as well as Maven. You need to know the basic movements in this book.

We recommend that you actually operate the command and continue reading.

Spring Boot for the first time


This book is also used to understand the basic Spring movement. The content to be implemented is similar to the book introduced at the beginning, Some write different programs, Some are not in the first book.

It's also a review, and you need to read it to get used to Spring.

Introduction to Spring Data JPA Programming


From here, the level goes up a little. We recommend that you read it together with the following books, You should read this book as a reference.

Throughout the book, database linkage is described. Acquisition of connection pool when linking with database Its behavior when mapping DB tables and Java objects. It describes how Java works with DB.

When dealing with Spring, it is important to know the behavior of EntityManager and TransactionManager I think it's very important, so I felt it was better to read this book early.

Read the whole thing once, copy the exercise program, and if necessary We recommend that you reread the important parts.

Actually, when you have trouble writing SQL or Entity class when you make your own application It may be good to read as needed to understand the detailed specifications.

However, since there are many explanations of isolation level and propagation level, it is necessary to understand these specifications first.

Since it also explains the architecture of Spring DATA JPA, I felt that it was a must-read book to improve my applied skills.

While learning frameworks, which language and which framework can be used A book that I felt was not very important. Being aware of the architecture, why frameworks are preferred I think it will be a good opportunity to develop applied skills while understanding little by little.

The behavior of the architecture may not be understood from this book alone We recommend that you read the relevant parts of the following books together.

A thorough introduction to Spring


The content of this book is very difficult for beginners. Based on the architecture, not a book that specializes in writing programs This is because many of them explain the flow from the abstract concept to the implementation of the actual class.

At this stage, there are a lot of places that I can't read, Not just in a position to handle frameworks When I was in a position to implement the framework from now on It seems to be very useful as a model case.

In this book, there is a part that explains each function of Spring separately from the function of Spring Boot alone. Since it accounts for the majority, it is recommended that you read the contents of the Servlet while searching the net.

In this book, especially because the content of the architecture may not be understood suddenly We recommend that you read it together with the following books.

An introduction to Spring MVC / Roo programming


This book is a little old. Therefore, we recommend that you read the necessary parts based on the books introduced above.

In the above book, such as application server parameter settings, etc. I felt that there were many things that were lacking in words, so I recommend reading this book as a supplement.

At the moment, it seems that many of them have become legacy writing styles, It seems to be important for understanding the basic movement and architecture of MVC.

There are many parts I haven't read, but as a supplement to deepen my understanding of Spring. I think you need to read it as needed.


That's all, but it's been about a month and a half since I started learning Spring Boot. I was able to grasp the overall movement of Spring in the above book.

In the future, I especially want to deepen my understanding of the architecture without being obsessed with legacy writing. I would like to encourage you to read the thorough introduction to Spring.

Even if you are new to the framework, please read it in the order of introduction above.

that's all

Recommended Posts

Spring Boot for the first time
Spring AOP for the first time
Introduction to java for the first time # 2
Learning for the first time java [Introduction]
First Spring Boot (DI)
I tried using Docker for the first time
Walls hit by Rspec for the first time
Android Studio development for the first time (for beginners)
I tried touching Docker for the first time
Spring Boot for annotation learning
Learn for the first time java # 3 expressions and operators
Oreore certificate https (2020/12/19) for the first time with nginx
Try running Spring Cloud Config for the time being
Learning memo when learning Java for the first time (personal learning memo)
How to study kotlin for the first time ~ Part 2 ~
How to study kotlin for the first time ~ Part 1 ~
Change the injection target for each environment with Spring Boot 2
[Rails] I tried using the button_to method for the first time
Frequent annotations for Spring Boot tests
Memo after the first Spring project-MVC-
Use DBUnit for Spring Boot test
Memo after the first Spring project-Database-
Modeling a Digimon with DDD for the first time Part 1
Think when Rails (turbolinks) doesn't load the page for the first time
Be aware that the default for Spring boot redirect is http
Memo after the first Spring project-What is Spring-
Touching kotlin for the first time-Enum Classes
WebMvcConfigurer Memorandum of Understanding for Spring Boot 2.0 (Spring 5)
Change session timeout time in Spring Boot
Use the l method for time notation
[Spring Boot] Post files and other data at the same time [Axios]
[First Java] Make something that works with Intellij for the time being
Challenge Spring Boot
The story of releasing the Android app to the Play Store for the first time.
Spring Boot Form
[Socket communication (Java)] Impressions of implementing Socket communication in practice for the first time
Creating an app and deploying it for the first time on heroku
Spring Boot Memorandum
[For internal use] For those assigned to the Spring Boot project (under construction)
gae + spring boot
Programming for the first time in my life Java 1st Hello World
Book introduction: Spring Boot Recommended reference book for beginners!
The story of raising Spring Boot 1.5 series to 2.1 series
Let's check the feel of Spring Boot + Swagger 2.0
Install Amazon Corretto (preview) for the time being
Annotation notes when writing tests for Spring Boot
Use Java external library for the time being
[Spring Boot] How to refer to the property file
Run Dataflow, Java, streaming for the time being
View the Gradle task in the Spring Boot project
Spring Boot --How to set session timeout time
The story of intentionally using try catch for the first time in my life
Impressions and doubts about using java for the first time in Android Studio
A story about a super beginner participating in the AtCoder contest for the first time (AtCoder Beginner Contest 140)
Plans to support JDK 11 for Eclipse and Spring Boot
Settings for connecting to MySQL with Spring Boot + Spring JDBC
[Spring Boot] POST file array / list and other data at the same time [Axios]
Specify the encoding of static resources in Spring Boot
How to set Dependency Injection (DI) for Spring Boot
How to write a unit test for Spring Boot 2
[For beginners] DI ~ The basics of DI and DI in Spring ~