Spring Tutorial

Spring Boot Hello World Example In STS

Spring boot is used to help developer to develop spring application quickly and easily. It can help you in following aspects. Create spring project file structure and related source files with wizard. Get and add correct dependencies jars into your spring project automatically from spring repository. You do not need to care about the dependency …

Spring Boot Hello World Example In STS Read More »

Spring Autowire Use @Component, @Repository, @Service and @Controller Annotations

Besides define Spring beans in a configuration file, Spring also provides some java annotation interface for you to make Spring bean declaration simple and easy. These interfaces are also called stereotype annotation. They are @Component, @Repository, @Service, and @Controller. If you want to reference such a bean, you just need to annotate that field with …

Spring Autowire Use @Component, @Repository, @Service and @Controller Annotations Read More »