Web Application With Spring Boot
Web Application With Spring Boot
SPRING BOOT
JAVA FULL STACK
SPRING BOOT AND CAPABLITIES
Java Spring Framework (Spring Framework) is a popular, open source, enterprise-
level framework for creating standalone, production-grade applications that run on
the Java Virtual Machine (JVM).
Java Spring Boot (Spring Boot) is a tool that makes developing web application
and microservices with Spring Framework faster and easier through three core
capabilities:
Autoconfiguration
An opinionated approach to configuration
The ability to create standalone applications
SPRING BOOT WEB APPLICATIONS
o One of the main challenges to starting up a new project is an initial setup for
the project.
o We need to take a call about the different directory structure and also need to
make sure we are following all the industry standards.
o For creating a web application with Spring Boot, we need following tools
Our preferred IDE (I will be using IntelliJ)
Maven
JDK 1.8+
CREATING PROJECT STRUCTURE
@SpringBootApplication annotation.
• @Controller annotation indicates that an annotated class is a "Controller" (e.g. a web controller).
• @RequestMapping annotation ensures that HTTP requests to /welcome are mapped to
the welcome() method.
• We have not specified any method to the @RequestMapping annotation as default maps
all HTTP operations by default.
1 UI TEMPLATE
• With Maven, we can run the application using mvn spring-boot:run command.
• we can build the JAR file with mvn clean package command and run jar by using java -jar
target/demo-app-0.1.0.jar.