1)@SpringBootApplication
It used to mark a configuration class that declares one or more @Bean methods and also triggers auto-configuration and component scanning.
It used to mark a configuration class that declares one or more @Bean methods and also triggers auto-configuration and component scanning.
2)@RestController
It helps to determine the class as controller class on rest API perspective.
3)@Autowired
It helps to create a object for class at one time. It located on global arena of required class and whenever this class executed the object will be created.
4)@PostMapping
It defines the request type is POST (Ex: Save or update).
@GetMapping
It defines the request type is GET (Ex: Fetch).
5)@RequestBody
It is used to read the request data and bind it automatically to the parameter present in the provided method.
6)@MappedSuperclass
It defines the parent classes and tells parent class can't be entities
7)@Getter
8)@Setter
It take care of the getter and setter declaration and tasks
9)@Id
It helps to create primary key for table
10)@GeneratedValue
It helps to generate sequences for primary key
11)@Column
It creates the column in table
12)@Entity
It defines the class as entity class
13)@Table
It helps to create table in database
Previous session: Click to know - How To use MySql Workbench?
Context page: Click here
Home page: Click here
Thanks, I hope you enjoyed this session !!!.
-Somasundar Kanakaraj