If specific packages are not defined, scanning will occur from the package of the class that declares this annotation. This flags the application as a web application and activates key behaviors such as setting up a tells Spring to look for other components, configurations, and services in the default package, allowing it to find the controllers. Normally you would add for a Spring MVC application, but Spring Boot adds it automatically when it sees spring-webmvc on the classpath. Let’s understand more about this is an annotation that adds all of the makes the class as a source of bean definitions for the application enables Spring boot to add beans presents in classpath setting and various property setting. We have just added and it does all the work.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |