Spring MVC Part 2 - Backend Web Development Utilization Technology
You can understand and master all the web technologies required for web application development from the basics. In Part 2 of MVC, you can learn all the utilization technologies required for practical web development on top of the core principles and structure of Part 1 of MVC.
If you know the principle, you will see the core! Kim Young-han's Spring MVC Utilization Guide ðšâð»
ð Please check before taking the class!
This lecture is the fifth in the "Complete Java Spring Mastery" series. First, check out the Spring Mastery Roadmap from Younghan Kim, the youngest technical director at Woowa Brothers. (Go to)
The most popular web frameworks
Most modern applications are web applications that operate in a web environment. Java backend developers often use Spring MVC when developing these web applications. Spring MVC is the most popular web framework, facilitating the rapid and easy development of complex web applications.
Why Backend Web Technologies Are Difficult to Learn
Java backend web technologies are vast and require extensive study. Spring MVC, in particular, offers extensive functionality and a complex architecture. To truly master these web technologies, you must first understand the core principles and structure of Spring MVC, then build on that foundation to master a vast array of web-based technologies one by one.
â Please check the player's knowledge.
Please check whether you understood the core principles and structure of Spring MVC required for web development through the previous lecture, <Spring MVC Part 1> .
1. From the beginning of Java web technology to the latest practical technology 2. Developing the MVC framework directly in code
Course Objectives
So far, we've been learning about Java backend and Spring MVC-based technologies. In this lecture, we'll build on what we've learned so far and learn essential practical skills .
In the lecture <Spring MVC Part 2>,
In Part 2 of Spring MVC, you can completely conquer a vast range of web utilization technologies such as view templates , messages , internationalization , validation , cookies , sessions , filters , interceptors , exception handling , type converters , and file uploads , which are essential for practical use, through examples, based on the Spring MVC learned in Part 1.
We will help you develop a wide range of web utilization technologies through practical example code on top of Spring MVC and its core principles and structures, and help you grow into a more in-depth backend web developer .
Objective : The goal of this course is to master all the web technologies required to develop practical backend web applications.
From Web Fundamentals to Practice : While this course contains extensive practical development material, it's structured in a step-by-step format so even developers without web application development experience can easily adapt. (You should first read Spring MVC Part 1 before learning Part 2.)
From concept to application : Rather than simply explaining how to use the technology, we explain the core principles and application methods of why this technology is needed and how it came to be.
Focused on practical examples : Learn all the steps required to develop web applications with Spring in a natural way through examples, and we will teach you practical best practices.
Conciseness : We've boldly excluded outdated Spring MVC features that aren't used in practice. This explanation focuses on the most commonly used features in modern practice.
Recommended Learners
Spring MVC First-time developer
backend developer job seekers
Spring MVC in depth Developers in the field who want to understand
Web App with Spring Developers who want to create
Contents covered
Timeleap
Thymeleaf is a server-side view template for backend developers. With Thymeleaf, backend developers can quickly and easily create dynamic HTML without the need for a separate frontend developer.
In this course, you will learn everything from the basic functions of Thymeleaf to integration with Spring and complex form management features such as check boxes, radio buttons, and select boxes, all through examples.
Message, Internationalization
As web applications grow larger and more complex, the various messages they use must be managed consistently and in a single location. For example, changing the word "product name" to "product name" requires editing the source code of numerous files. Spring's messaging functionality allows you to manage and modify these messages in one place.
Internationalization refers to the ability for a website to appear in English for English speakers and in Korean for Korean speakers. Spring already provides this internationalization functionality. In this lecture, we will learn about Spring's messaging and internationalization features step-by-step through real-world examples.
Validation
If a customer enters incorrect values in a form during membership registration and submits them to the server, the server must verify those values, re-present the form to the customer, and provide helpful guidance on what was entered incorrectly. This is a necessary feature for all web services.
In this lecture, we'll first develop these validation functions ourselves. We'll also use Spring's validation features, and we'll go further and learn step-by-step through examples, including Bean Validation, which conveniently performs validation with a single annotation.
Cookies, Sessions
HTTP is a stateless protocol. Therefore, concepts like cookies and sessions are necessary to maintain login functionality. In this lecture, we'll first create a login function using only cookies. We'll then examine security vulnerabilities and then create and implement sessions.
By creating sessions directly like this, you'll gain a deeper understanding of how cookies and sessions work. Additionally, you'll learn about and apply sessions provided by servlets.
Filter, Interceptor
We will learn about the Filter provided by Servlet and the Interceptor provided by Spring through examples.
First, we'll create a filter and interceptor to log all HTTP requests, the simplest of which is to use filters and interceptors. Later, we'll also create a filter and interceptor for authentication processing. By using both together, we'll clearly understand the pros and cons of each.
Exception handling
When learning web applications, exception handling is often the most difficult part to understand. This is because the servlet container (WAS) and Spring MVC each provide their own exception handling methods. In reality, these two mechanisms are intertwined, resulting in a complex exception handling mechanism. Therefore, it's extremely difficult for developers to accurately understand and use the internal workings of Spring and the servlet container when an exception occurs in a controller.
This lecture will explain exception handling in a step-by-step manner, from servlet container exception handling to Spring MVC exception handling. After attending, you'll gain a clear understanding of how server internals work when an actual exception occurs and what changes need to be made. Additionally, exception handling when using the API will be covered.
Spring type converter
Just as you need to convert characters to numbers or vice versa, developing applications often requires type conversion. For example, even if the string "10" is passed in an HTTP request, Spring can receive it as the integer 10 using @RequestParam . Spring provides a feature called type converters to support consistent type conversion.
Type converters are a frequently mentioned topic when learning Spring, but understanding how they actually work can be challenging. This lecture will provide a step-by-step understanding of type converters, from the basics to their practical application, through examples.
File upload
There are countless file upload examples available online. This lecture goes beyond simply explaining the file upload functionality. It delves into the protocols used for file uploads and explains the principles that make file uploads possible over HTTP. Furthermore, through examples, you'll learn the file upload functionality step-by-step, from servlets to convenient file upload methods provided by Spring.
Spring MVC Lecture Structure
The Spring MVC lecture is divided into two parts. This lecture is Spring MVC Part 2 - It is a technology that utilizes backend web development .
Cover the core concepts of Java web technology and Spring MVC, and understand the basic features of Spring MVC. Part 1 introduces Java backend web technologies, then covers the full spectrum of web technologies, including Servlets, JSP, the MVC pattern, and the MVC framework. After understanding the background of web technologies, we'll solidify a solid foundation in the core concepts of Spring MVC. We'll then explore the basic features of Spring MVC and develop a web page capable of basic CRUD operations using Spring MVC.
Learn various techniques for utilizing Spring MVC. Part 2 gradually develops a single example, learning various Spring MVC utilization techniques through code, including Thymeleaf, messaging, internationalization, validation, cookies, sessions, filters, interceptors, exception handling, common features, and extension points.
To be continued in the future Spring Complete Conquest Series
We're preparing a series designed to help you master Spring completely. We'll focus on core Spring features used in real-world applications, boldly omitting obsolete or outdated features, and provide practical know-how.