Project Defaults & Reload
Infers the source/resource/package path when settings are omitted and updates the reload trigger when the classpath changes.
Values provided by ProjectDefaults
SRC_MAIN_JAVA
src/main/java under the project root.
SRC_MAIN_RESOURCES
src/main/resources.
BASE_PACKAGE
Inferred from system property or source/package location.
ROUTER_PACKAGE / HANDLER_PACKAGE / ENTITY_PACKAGE
Convention based on the base package.
SWAGGER_OUTPUT_FILE
Default Swagger JSON output path. AsyncAPI output has a separate default in the RSocket watcher builder.
Specify base package
In projects where inference is ambiguous due to multi-module or library class locations, it is safer to specify the package and output path in the watcher config.
Reload trigger
WatchForMainRun can create or update .reloadtrigger under the default classpath root. It connects the trigger to reload flows like Spring Boot Devtools when classpath-related changes are detected.