https://github.com/Priyansusahoo/Spring_Hibernate_Mastery
Learning SpringBoot
https://github.com/Priyansusahoo/Spring_Hibernate_Mastery
Last synced: 26 days ago
JSON representation
Learning SpringBoot
- Host: GitHub
- URL: https://github.com/Priyansusahoo/Spring_Hibernate_Mastery
- Owner: Priyansusahoo
- Created: 2024-04-05T08:51:57.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-06T13:13:22.000Z (over 1 year ago)
- Last Synced: 2024-04-07T10:46:03.369Z (over 1 year ago)
- Language: Java
- Homepage:
- Size: 80.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Learning SpringBoot (Chad Darby)
## - Spring Starter
## - Maven
## - @Controller Vs @RestController
## - @GetMapping
## - @Value
## - application.properties.
## - [Actuator Endpoint - (e.g. health, info)](https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#actuator.endpoints)
e.g. of endpoint - (/actuator/info)
Go to this section => (13.1. Enabling Production-ready Features -> 13.2. Endpoints)
## - [SpringBean scope](https://docs.spring.io/spring-framework/reference/core/beans/factory-scopes.html) :
### - singleton :
(Default) Scopes a single bean definition to a single object instance for each Spring IoC container.
### - prototype :
Scopes a single bean definition to any number of object instances.
### - request :
Scopes a single bean definition to the lifecycle of a single HTTP request. That is, each HTTP request has its own instance of a bean created off the back of a single bean definition. Only valid in the context of a web-aware Spring ApplicationContext.
### - session :
Scopes a single bean definition to the lifecycle of an HTTP Session. Only valid in the context of a web-aware Spring ApplicationContext.
### - globalSession :
This creates a single bean instance per global HTTP session. It is valid only in the context of a portal application.
### - application :
Scopes a single bean definition to the lifecycle of a ServletContext. Only valid in the context of a web-aware Spring ApplicationContext.
### - websocket :
Scopes a single bean definition to the lifecycle of a WebSocket. Only valid in the context of a web-aware Spring ApplicationContext.