spring2019년 7월 3일1 min read

Q&A Spring Boot Annotation Collection

A collection of Q&A notes on Spring Boot annotations.

FFrank Advenoh
#Q&A#faq#spring

This is material where I personally jot down things I don't know and briefly organize the parts I come to understand. If you know any of the unanswered ones, please leave a comment. Thank you.

Full Q&A List

[Answered]

I organize them in alphabetical order to make them easy to find.

@SpringBootApplication

The @SpringBootApplication annotation is a combination of the @Configuration, @EnableAutoConfiguration, and @ComponentScan annotations.

  • @EnableAutoConfiguration
    • This annotation enables Auto-Configuration in Spring Boot.
    • Spring Boot looks at the classpath, annotations, and configuration files and configures the app by adding the most appropriate technologies for it.

Reference


[Unanswered Questions]

- What is the difference between @SpringBootTest and @DataJpaTest?

관련 글