Files
spring-boot-demo/project-structure/output/05-scan-starts-at-the-app-class.txt

11 lines
374 B
Plaintext

# The controller is found only if it is in or below the @SpringBootApplication class's package
--- app class in scan.broken.app, controller in scan.broken.web (a sibling) ---
GET /hello -> 404
HelloController registered as a bean: false
--- app class in scan.fixed, controller in scan.fixed.web (below it) ---
GET /hello -> 200
HelloController registered as a bean: true