1/17
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Springboot
An open source Java Framework that simplifies the configuration and setup of Java applications. Provides a faster and easier way to set up, configure, and run applications.
Spring Tool Suite (STS)
It is an integrated development environment (IDE) specifically designed for creating Spring applications.
Static Folder
The folder where it is a special directory used for serving static resources in web applications.
Templates Folder
Where you store server-side templates (usually written in HTML or other template languages).
application.properties
configuration file where you can define this to customize your application behavior, includes database connection details, server port, and logging settings.
main
This is where our HTML or J.S.X file will load out.
test
essential for writing unit tests, integration tests, and other types of automated tests. It helps maintain code quality and ensures that your application behaves as expected.
spring.mvc.view.prefix: /WEB-INF/
It is a property used to specify the prefix for the views in a Spring MVC application. It allows us to define a common directory for our views which makes it easier to organize and manage.
@Controller
Capable of loading actual content pages.
@RestController
Loads string only.
<%@ taglib prefix="c" uri="jakarta.tags.core" %>
It is a tag library that allows .jsp files to recognize java elements.
Model
Its purpose is to transfer data to .JSP
mv.addAttribute()
The syntax to transfer data from Java to .jsp
.addAttribute() method
It is a part of the Model interface, it adds an attribute to the model, making it accessible to the view. First argument is the attribute name to be called in your HTML pages, Second is the variable name that provides the value.
@RequestParam
Annotation used to extract query parameters from the URL in a GET request
@PathVariable
Annotation that is used to capture dynamic value from the URL path
@GetMapping
Annotation used to handle HTTP GET requests. It maps a specific URL to a method in the controller, typically for retrieving or displaying data.
@PostMapping
Annotation used to handle HTTP POST requests. It maps a specific URL to a method in the controller, typically for submitting data (e.g., form submissions).