Learning Spring Boot 2.0 - Second Edition by Greg L. Turnquist

Learning Spring Boot 2.0 - Second Edition by Greg L. Turnquist

Author:Greg L. Turnquist
Language: eng
Format: epub
Tags: COM051280 - COMPUTERS / Programming Languages / Java, COM051000 - COMPUTERS / Programming / General, COM051390 - COMPUTERS / Programming / Open Source
Publisher: Packt
Published: 2017-11-02T07:47:19+00:00


LearningSpringBootApplication embodies the entire app, so it should stay at the top level. This isn't just a semantic statement. That class contains our SpringBootApplication annotation, which enables the application's autoconfigured behaviors like component scanning. Component scanning should start at the top level and search all subpackages.

HomeController represents an interesting concept. Even though it calls into ImageService, since it serves the application's top-level view, let's leave it at the top level as well.

As for LearningSpringBootHealthIndicator, a similar case could be made to keep it at the root. Since we are shooting to keep things light at the top, why don't we create a separate module to encompass all Ops-based features that aren't specific to any one module, ops.

Given all these decisions, our new structure now looks like this:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.