What is the spring.main.banner-mode property in Spring Boot?
spring.main.banner-mode controls whether Spring Boot prints its startup banner to the console, to the log, or not at all. Learn the values and how to customise it.
Spread Your Knowledge. Questions with answers, tutorials and articles, newest first.
spring.main.banner-mode controls whether Spring Boot prints its startup banner to the console, to the log, or not at all. Learn the values and how to customise it.
Learn where Spring Boot reads application.properties, which common keys to set, and how profiles, environment variables and ConfigurationProperties override them.
spring-boot-starter is the core Spring Boot starter with auto-configuration, logging and YAML support. See what it includes and how other starters build on it.
Set up application.yml in Spring Boot 3: server and datasource settings, profile documents, typed custom properties, external imports and secrets.
@SpringBootApplication is shorthand for configuration, auto-configuration and component scanning. See what each part does and how to tune it.
Run mvn clean package from the folder with pom.xml to compile, test and package your project. This guide covers phases, options and common build errors.
mvn clean deletes the target directory so the next Maven build starts from scratch. See the clean lifecycle, when to use it and how to configure it.
Compile, provided and runtime scopes decide which classpath a Maven dependency joins and whether it ships in your artifact. Learn when to use each.
Set up a Maven parent POM and child modules, understand inheritance versus aggregation, and share versions with dependencyManagement.
dependencyManagement in Maven centralises dependency versions across modules. Learn parent POM usage, BOM imports, overrides and how to check resolved versions.
Declare a dependency in pom.xml, choose the right scope, manage versions with a BOM, exclude transitive jars, and debug conflicts with the tree.
Learn what the Maven pom.xml file does: project coordinates, dependencies, plugins, profiles and the effective POM, with examples for Java 21.
Install Maven, generate a quickstart project or write the pom.xml yourself, set the Java release and add JUnit 5. Build with mvn clean package.
Understand how Maven declares, resolves and versions dependencies, from scopes and transitive libraries to dependencyManagement and BOM imports.
Define a ThreadPoolTaskExecutor bean, tune its pool and queue, use it with @Async, and switch to virtual threads on Java 21 and later.
@Scheduled(fixedRate) starts a Spring task at a steady interval measured between run starts. See setup, units, fixedDelay differences and overlap handling.
Schedule a cron job in Spring or Spring Boot with @Scheduled, understand the six-field expression, set the time zone and avoid duplicate runs on several instances.
@EnableScheduling registers the post-processor that runs @Scheduled methods. See trigger types, thread pool sizing and common production pitfalls.
Schedule jobs in Spring with @Scheduled, cron and TaskScheduler, size the scheduler pool, schedule dynamically and avoid duplicate runs across instances.
Runnable returns nothing, Callable returns a result and can throw checked exceptions. See both with ExecutorService, Future and exception handling.