Open the configuration From more options, enable parallel running. And then set the port for each instance. From left-top corner, duplicate the instance.
@RequestMapping, @GetMapping and @PostMapping in Spring
@RequestMapping Originally, Spring had only @RequestMapping annotation for mapping all the incoming HTTP request URLs to the corresponding controller methods. @RequestMapping(value = "/users", method = RequestMethod.GET) public Users getUsers() { } @RequestMapping(value = "/users", method = RequestMethod.POST) public User createUser(User user) { } @RequestMapping(value = "/users/{id}", method = RequestMethod.GET) public User getUser(@PathVariable("id") String id) { …
Continue reading “@RequestMapping, @GetMapping and @PostMapping in Spring”
Spring – AOP
Aspect Oriented Programming with Spring Aspect-oriented Programming (AOP) complements Object-oriented Programming (OOP) by providing another way of thinking about program structure. The key unit of modularity in OOP is the class, whereas in AOP the unit of modularity is the aspect. Aspects enable the modularization of concerns (such as transaction management) that cut across multiple …
Spring – IoC
Introduction This Blog covers the Spring Framework implementation of the Inversion of Control (IoC) principle. From Spring official document, IoC is also known as dependency injection (DI). It is a process whereby objects define their dependencies (that is, the other objects they work with) only through constructor arguments, arguments to a factory method, or properties …
How To Customize Spring Project Launch Banner
When we luanch Spring Project, we could saw Spring Banner in our console as below: What if we want to customize this banner using personal name、company name or even some interesting picture? First we should use this website to transfer text to ASCII. Then we could copy the ASCII content generated and paste it into …
Continue reading “How To Customize Spring Project Launch Banner”