# Spring Boot Auto-Configuration (Spring Boot) > Automatyczna konfiguracja Spring Boot, @SpringBootApplication, startery, beany warunkowe, spring.factories - 20 pytań z rozmów - Junior - [Pytania z rozmów: Spring Boot](https://sharpskill.dev/pl/technologies/spring-boot/pytania-rekrutacyjne.md) ## 1. Czym jest automatyczna konfiguracja w Spring Boot? **Odpowiedź** Automatyczna konfiguracja automatycznie konfiguruje beany Springa na podstawie zależności obecnych w classpath. Na przykład, jeśli obecny jest spring-boot-starter-data-jpa, Spring Boot automatycznie konfiguruje DataSource, EntityManagerFactory i TransactionManager. To znacznie redukuje wymaganą konfigurację ręczną. ## 2. Która adnotacja włącza automatyczną konfigurację w Spring Boot? **Odpowiedź** @EnableAutoConfiguration włącza mechanizm automatycznej konfiguracji Spring Boot. Ta adnotacja jest zawarta w @SpringBootApplication, która łączy @Configuration, @EnableAutoConfiguration i @ComponentScan. Skanuje classpath, aby wykryć klasy automatycznej konfiguracji. ## 3. Co łączy adnotacja @SpringBootApplication? **Odpowiedź** @SpringBootApplication to adnotacja złożona, która łączy trzy podstawowe adnotacje: @Configuration (deklaruje klasę konfiguracyjną), @EnableAutoConfiguration (włącza automatyczną konfigurację) i @ComponentScan (skanuje komponenty w bieżącym pakiecie). Pozwala to uniknąć deklarowania tych trzech adnotacji osobno. ## Jeszcze 17 dostępnych pytań - Jak wykluczyć konkretną automatyczną konfigurację? - Jaki jest cel @ConditionalOnClass? Zarejestruj się za darmo: https://sharpskill.dev/pl/login ## Inne tematy rekrutacyjne Spring Boot - [Spring Core - IoC & DI](https://sharpskill.dev/pl/technologies/spring-boot/pytania-rekrutacyjne/spring-core-ioc-di.md): 22 pytań, Junior - [Spring Boot Starters](https://sharpskill.dev/pl/technologies/spring-boot/pytania-rekrutacyjne/spring-boot-starters.md): 18 pytań, Junior - [Application Properties & YAML](https://sharpskill.dev/pl/technologies/spring-boot/pytania-rekrutacyjne/application-properties-yml.md): 16 pytań, Junior - [Logowanie z SLF4J i Logback](https://sharpskill.dev/pl/technologies/spring-boot/pytania-rekrutacyjne/logging.md): 20 pytań, Junior - [Spring Boot DevTools](https://sharpskill.dev/pl/technologies/spring-boot/pytania-rekrutacyjne/spring-boot-devtools.md): 15 pytań, Junior - [Spring MVC Basics](https://sharpskill.dev/pl/technologies/spring-boot/pytania-rekrutacyjne/spring-mvc-basics.md): 20 pytań, Mid-Level - [Spring REST Controllers](https://sharpskill.dev/pl/technologies/spring-boot/pytania-rekrutacyjne/spring-rest-controllers.md): 20 pytań, Mid-Level - [Request & Response Handling](https://sharpskill.dev/pl/technologies/spring-boot/pytania-rekrutacyjne/request-response-handling.md): 20 pytań, Mid-Level - [Obsługa wyjątków](https://sharpskill.dev/pl/technologies/spring-boot/pytania-rekrutacyjne/exception-handling.md): 25 pytań, Mid-Level - [Bean Validation](https://sharpskill.dev/pl/technologies/spring-boot/pytania-rekrutacyjne/bean-validation.md): 25 pytań, Mid-Level - [Podstawy Spring Data JPA](https://sharpskill.dev/pl/technologies/spring-boot/pytania-rekrutacyjne/spring-data-jpa-basics.md): 25 pytań, Mid-Level - [Encje JPA i relacje](https://sharpskill.dev/pl/technologies/spring-boot/pytania-rekrutacyjne/jpa-entities-relationships.md): 30 pytań, Mid-Level - [Zapytania JPA](https://sharpskill.dev/pl/technologies/spring-boot/pytania-rekrutacyjne/jpa-queries.md): 30 pytań, Mid-Level - [Spring Data Repositories](https://sharpskill.dev/pl/technologies/spring-boot/pytania-rekrutacyjne/spring-data-repositories.md): 25 pytań, Mid-Level - [Podstawy Spring Security](https://sharpskill.dev/pl/technologies/spring-boot/pytania-rekrutacyjne/spring-security-basics.md): 25 pytań, Mid-Level - [Spring Boot Actuator](https://sharpskill.dev/pl/technologies/spring-boot/pytania-rekrutacyjne/spring-boot-actuator.md): 20 pytań, Mid-Level - [Testy jednostkowe z JUnit i Mockito](https://sharpskill.dev/pl/technologies/spring-boot/pytania-rekrutacyjne/testing-junit-mockito.md): 30 pytań, Mid-Level - [Testowanie Spring Boot](https://sharpskill.dev/pl/technologies/spring-boot/pytania-rekrutacyjne/spring-boot-testing.md): 30 pytań, Mid-Level - [Profiles i Environment](https://sharpskill.dev/pl/technologies/spring-boot/pytania-rekrutacyjne/profiles-environment.md): 20 pytań, Mid-Level - [RestTemplate i WebClient](https://sharpskill.dev/pl/technologies/spring-boot/pytania-rekrutacyjne/resttemplate-webclient.md): 24 pytań, Mid-Level - [Async i Scheduling](https://sharpskill.dev/pl/technologies/spring-boot/pytania-rekrutacyjne/async-scheduling.md): 25 pytań, Mid-Level - [Caching ze Spring](https://sharpskill.dev/pl/technologies/spring-boot/pytania-rekrutacyjne/caching.md): 25 pytań, Mid-Level - [Spring WebFlux (Reactive)](https://sharpskill.dev/pl/technologies/spring-boot/pytania-rekrutacyjne/spring-webflux.md): 25 pytań, Mid-Level - [Transakcje Spring](https://sharpskill.dev/pl/technologies/spring-boot/pytania-rekrutacyjne/transactions.md): 30 pytań, Senior - [Zaawansowane uwierzytelnianie i autoryzacja](https://sharpskill.dev/pl/technologies/spring-boot/pytania-rekrutacyjne/authentication-authorization.md): 30 pytań, Senior - [JWT i bezpieczeństwo stateless](https://sharpskill.dev/pl/technologies/spring-boot/pytania-rekrutacyjne/jwt-stateless-security.md): 20 pytań, Senior - [OAuth2 i Authorization Server](https://sharpskill.dev/pl/technologies/spring-boot/pytania-rekrutacyjne/oauth2-authorization-server.md): 20 pytań, Senior - [Spring Boot i Docker](https://sharpskill.dev/pl/technologies/spring-boot/pytania-rekrutacyjne/spring-boot-docker.md): 19 pytań, Senior - [Microservices ze Spring](https://sharpskill.dev/pl/technologies/spring-boot/pytania-rekrutacyjne/microservices-basics.md): 25 pytań, Senior - [Spring Cloud Config](https://sharpskill.dev/pl/technologies/spring-boot/pytania-rekrutacyjne/spring-cloud-config.md): 19 pytań, Senior - [Optymalizacja wydajności](https://sharpskill.dev/pl/technologies/spring-boot/pytania-rekrutacyjne/performance-optimization.md): 30 pytań, Senior - [GraalVM Native Images](https://sharpskill.dev/pl/technologies/spring-boot/pytania-rekrutacyjne/graalvm-native-images.md): 20 pytań, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/pl/technologies/spring-boot/pytania-rekrutacyjne/spring-boot-auto-configuration