Spring Boot· 35 min

Spring Boot Application Model

Use starters, auto-configuration, configuration properties, profiles, logging, and Actuator in a maintainable service.

Java interview lesson
Question 19 · Not reviewed

Spring Boot · application

Can you explain this clearly in an interview?

Use the strong answer as your reference, explain it aloud in your own words, then choose how soon you want to review it again.

Interview prompt

Spring Boot Application Model

Explain it aloud in your own words

Strong answer

Spring Boot provides conventions, starters, auto-configuration, and production tooling around Spring. Auto-configuration is conditional and can be inspected; it should accelerate a known application model rather than become magic that nobody can debug.

Key points

  • Starters manage compatible dependency groups.
  • Configuration properties should be externalized per environment.
  • Profiles are useful for environment differences, not for hiding major behavior.
  • Actuator endpoints need their own exposure and security policy.

Interviewer looks for

Explain what Boot adds to Spring and how you would diagnose unexpected auto-configuration.

Java example

1@SpringBootApplication
2public class Application {
3  public static void main(String[] args) {
4    SpringApplication.run(Application.class, args);
5  }
6}

Topic interview questions

Revise this topic like an interviewer

These questions are tied to this lesson. Read each question aloud, then compare your explanation with the strong answer.

5 questions
Q1Intermediate

What does Spring Boot add to Spring?

Strong answer

Boot supplies conventions, starters, conditional auto-configuration, an embedded runtime, externalized configuration, and operational tooling. It reduces setup while keeping the underlying Spring model inspectable.

Q2Intermediate

How does auto-configuration work?

Strong answer

Auto-configuration creates conditional bean definitions based on the classpath, existing beans, properties, and application context. It can be inspected and overridden when the defaults do not match the application.

Q3Basic

What are starters?

Strong answer

Starters are curated dependency descriptors for common capabilities such as web, data, or security. They simplify dependency selection and help keep compatible transitive versions together.

Q4Intermediate

How should configuration properties be managed?

Strong answer

Keep environment-specific values outside code, bind them into typed configuration objects, validate required values, and avoid committing secrets. Make the active configuration observable without exposing credentials.

Q5Intermediate

How would you diagnose unexpected auto-configuration?

Strong answer

Inspect the condition evaluation report, startup logs, active profiles, dependency graph, and registered beans. Then exclude or override the specific configuration only after identifying why it matched.

How well do you know this?

Your review choice is saved locally and synced to your learner profile when signed in.