![]() maven-clean-plugin:2.6.1:clean (default-clean) SpringBootHelloWorldExample. Building SpringBootHelloWorldExample Maven Webapp 0.0.1-SNAPSHOT Step 5: Create a property file named application.properties as below and put it in src/main/resoures.Ībove two properties are very much similar to used in springmvc-dispatcher-servlet.xml in Spring MVC example. 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 |