Docsity

Introduction to Spring Boot and Maven: A Comprehensive Guide, Study notes of Computer science

Partial preview of the text

Download Introduction to Spring Boot and Maven: A Comprehensive Guide and more Study notes Computer science in PDF only on Docsity!

JAVA WEB APPLICATION

TECHNOLOGIES

Introduction to Spring boot

Spring in a Nutshell

  • Very popular framework for building Java applications
  • Provides a large number of helper classes and annotations

What Are Spring “Projects”

Spring Boot Solution

  • Make it easier to get started with Spring development
  • Minimize the amount of manual configuration
  • Perform auto-configuration based on property files and JAR classpath
  • Help to resolve dependency conflicts (Maven or Gradle)
  • Provide an embedded HTTP server so you can get started quickly
  • Tomcat, Jetty, Undertow,

Spring Boot and Spring (Relationship)

  • Spring Boot uses Spring behind the scenes
  • Spring Boot simply makes it easier to use Spring
  • Spring Boot FAQ #
  • Spring Boot FAQ #
  • Spring Boot FAQ #

Spring Boot Embedded Server

  • Provide an embedded HTTP server so you can get started quickly
    • Tomcat, Jetty, Undertow, …
  • No need to install a server separately

What is Maven?

  • Maven is a Project Management tool
  • Most popular use of Maven is for build management and dependencies

Maven Solution

  • Tell Maven the projects you are working with (dependencies)
    • Spring, Hibernate etc ….
  • Maven will go out and download the JAR files for those projects for you
  • And Maven will make those JAR files available during compile/run
  • Think of Maven as your friendly helper / personal shopper

My Project without Maven

How Maven works

Handling JAR Dependencies