Spring MVC: A Tutorial : A Tutorial
معرفی کتاب «Spring MVC: A Tutorial : A Tutorial» نوشتهٔ Paul Deck، منتشرشده توسط نشر Brainy Software در سال 2016. این کتاب در 20 صفحه، فرمت pdf، زبان انگلیسی ارائه شده است. «Spring MVC: A Tutorial : A Tutorial» در دستهٔ بدون دستهبندی قرار دارد.
This is a tutorial on Spring MVC, a module in the Spring Framework for rapidly developing web applications. The MVC in Spring MVC stands for Model-View-Controller, a design pattern widely used in Graphical User Interface (GUI) development. This pattern is not only common in web development, but is also used in desktop technology like Java Swing. Sometimes called Spring Web MVC, Spring MVC is one of the most popular web frameworks today and a most sought-after skill. This book is for anyone wishing to learn to develop Java-based web applications with Spring MVC. Sample applications come as Spring Tool Suite and Eclipse projects. Table of Contents Introduction Chapter 1: The Spring Framework Chapter 2: Model 2 and the MVC Pattern Chapter 3: Introduction to Spring MVC Chapter 4: Annotation-Based Controllers Chapter 5: Data Binding and the Form Tag Library Chapter 6: Converters and Formatters Chapter 7: Validators Chapter 8: The Expression Language Chapter 9: JSTL Chapter 10: Internationalization Chapter 11: File Upload Chapter 12: File Download Chapter 13: Testing Your Application Appendix A: Tomcat Appendix B: Using Spring Tool Suite with Maven Appendix C: The Servlet API Appendix D: JavaServer Pages Appendix E: Deployment Index Introduction 10 The Hypertext Transfer Protocol (HTTP) 11 Servlet and JSP Overview 15 Downloading Spring or Using STS with Maven/Gradle 17 About This Book 22 Downloading the Sample Applications 24 Chapter 1: The Spring Framework 25 Dependency Injection 26 XML-Based Spring Configuration 29 Using Spring to Manage Dependencies 30 Summary 40 Chapter 2: Model 2 and the MVC Pattern 41 Model 1 Overview 42 Model 2 Overview 43 Model 2 with A Servlet Controller 45 Model 2 with A Filter Dispatcher 57 Validators 60 Dependency Injection 66 Summary 73 Chapter 3: Introduction to Spring MVC 74 The Benefits of Spring MVC 75 Spring MVC DispatcherServlet 76 The Controller Interface 78 Your First Spring MVC Application 79 The View Resolver 88 Summary 91 Chapter 4: Annotation-Based Controllers 92 Spring MVC Annotation Types 93 Writing Request-Handling Methods 99 Using An Annotation-Based Controller 101 Dependency Injection with @Autowired and @Service 110 Redirect and Flash Attributes 114 Request Parameters and Path Variables 116 @ModelAttribute 119 Summary 121 Chapter 5: Data Binding and the Form Tag Library 122 Data Binding Overview 123 The Form Tag Library 124 Data Binding Example 139 Summary 155 Chapter 6: Converters and Formatters 156 Converters 157 Formatters 162 Choosing Between Converters and Formatters 167 Summary 168 Chapter 7: Validators 169 Validation Overview 170 Spring Validators 171 The ValidationUtils Class 173 A Spring Validator Example 174 JSR 303 Validation 180 A JSR 303 Validator Example 182 Summary 185 Chapter 8: The Expression Language 186 A Brief History of the Expression Language 187 The Expression Language Syntax 188 Accessing JavaBeans 192 EL Implicit Objects 193 Using Other EL Operators 204 Referencing Static Fields and Methods 212 Creating Sets, Lists and Maps 214 Accessing List Elements and Map Entries 215 Manipulating Collections 216 Formatting Collections 229 Formatting Numbers 233 Formatting Dates 234 Configuring the EL in JSP 2.0 and Later Versions 235 Summary 238 Chapter 9: JSTL 239 Downloading JSTL 240 JSTL Libraries 241 General-Purpose Actions 243 Conditional Actions 253 Iterator Actions 257 Formatting Actions 267 Functions 279 Summary 296 Chapter 10: Internationalization 297 Locales 298 Internationalizing Spring MVC Applications 301 Summary 312 Chapter 11: File Upload 313 Client Side Programming 314 The MultipartFile Interface 315 File Upload with Commons FileUpload 316 File Upload with Servlet 3 or Later 324 Upload Clients 327 Summary 335 Chapter 12: File Download 336 File Download Overview 337 Example 1: Hiding A Resource 338 Example 2: Preventing Cross-Referencing 341 Summary 344 Chapter 13: Testing Your Application 345 Unit Testing Overview 346 State Testing vs. Behavior Testing 348 Using JUnit 349 Using Test Doubles 354 Unit Testing Spring MVC Controllers 367 Integration Testing with Spring MVC Test 374 Changing the Web Root in Integration Testing 382 Summary 384 Appendix A: Tomcat 385 Downloading and Configuring Tomcat 386 Starting and Stopping Tomcat 387 Defining A Context 388 Defining A Resource 390 Installing TLS Certificates 391 Appendix B: Using Spring Tool Suite with Maven 392 Installing the Spring Tool Suite (STS) 393 Creating a Spring MVC Application 395 Selecting the Java Version 400 Creating An index.html File 402 Updating the Project 403 Running the Application 404 Appendix C: The Servlet API 406 Servlet API Overview 407 Servlet 409 Writing A Basic Servlet Application 411 ServletRequest 416 ServletResponse 417 ServletConfig 418 ServletContext 421 GenericServlet 422 HTTP Servlets 424 HttpServletRequest 427 Working with HTML Forms 429 Using the Deployment Descriptor 435 Summary 438 Appendix D: JavaServer Pages 439 An Overview of JSP 440 Comments 445 Implicit Objects 446 Directives 450 Scripting Elements 455 Summary 468 Appendix E: Deployment 469 Deployment Descriptor Overview 470 Deployment 484 Web Fragments 485 Summary 487 This is a tutorial on Spring MVC, a module in the Spring Framework for rapidly developing web applications. The MVC in Spring MVC stands for Model-View-Controller, a design pattern widely used in Graphical User Interface (GUI) development. This pattern is not only common in web development, but is also used in desktop technology like Java Swing. Sometimes called Spring Web MVC, Spring MVC is one of the most popular web frameworks today and a most sought-after skill. This book is for anyone who wants to learn how to develop Java-based web applications with Spring MVC. Authored by a seasoned programmer who has been using the Spring MVC technology for years, this resource covers all topics in enterprise web development using Spring MVC, and is ideal for anyone wanting to learn how to develop Java-based web applications using Spring MVC. -- Edited summary from book
دانلود کتاب Spring MVC: A Tutorial : A Tutorial