-
Notifications
You must be signed in to change notification settings - Fork 1
Annotation Used
SunilOS edited this page Mar 12, 2019
·
2 revisions
- @SpringBootApplication: defines spring main class
- @ComponentScan: defines base package to discover beans and register with IOC container
- @Configuration: defines configuration class that defines beans
- @RestController: defines a rest controller that exchange JSON
- @RequestMapping: maps controller and its methods with urls
- @GetMapping: maps HTTP GET method with method of controller
- @PostMapping: maps HTTP POST method with method of controller
- @Service: defines a service class
- @Transactional: makes a method or class transactional
- @Repository: defines DAO class
- @Autowired: injects dependency