@SpringBootApplication - This is the main annotation that is used to start a Spring Boot application. It is a combination of several other annotations, including @Configuration, @EnableAutoConfiguration, and @ComponentScan.
@RestController - This annotation is used to indicate that a class is a RESTful controller that will handle incoming HTTP requests.
@GetMapping, @PostMapping, @PutMapping, @DeleteMapping - These annotations are used to map incoming HTTP requests to specific methods in a controller class.
@Autowired - This annotation is used to automatically wire dependencies between components in the application.
@Value - This annotation is used to inject configuration properties from external configuration files or command-line arguments.
@EnableScheduling - This annotation is used to enable scheduling of tasks within the application.
@Transactional - This annotation is used to mark a method or class as transactional, ensuring that database operations are performed atomically.
No comments:
Post a Comment