I have a Spring Boot 3 application where a controller depends on a service annotated with @Service , but the application fails to start because Spring cannot find the OrderService bean. Error Field orderService in com.mycompany.app.controller.OrderController required a bean of type ‘com.mycompany.app.service.OrderService’ that could not be found. Project structure src/main/java/com/mycompany/app/ ├── Application.java ├── controller/ │ └── OrderController.java └── service/ └── OrderService.java Application.java package com.mycompany.app; import org.springframework.boot.SpringApplication; import