Chapter 04: Developing a Spring Boot Application: Difference between revisions

Line 167: Line 167:
     runApplication<MyFirstAppApplication>(*args)
     runApplication<MyFirstAppApplication>(*args)
}</syntaxhighlight>
}</syntaxhighlight>
The <code>@SpringBootApplication</code> annotation is actually three annotations in one: - <code>@Configuration</code>: Marks this as a configuration class - <code>@EnableAutoConfiguration</code>: Enables Spring Boot’s auto-configuration - <code>@ComponentScan</code>: Enables component scanning from this package
The <code>@SpringBootApplication</code> annotation is actually three annotations in one:  
* <code>@Configuration</code>: Marks this as a configuration class  
* <code>@EnableAutoConfiguration</code>: Enables Spring Boot’s auto-configuration  
* <code>@ComponentScan</code>: Enables component scanning from this package


<span id="exploring-build.gradle.kts"></span>
<span id="exploring-build.gradle.kts"></span>
== 4.2 Exploring build.gradle.kts ==
== 4.2 Exploring build.gradle.kts ==