Spring Boot Concepts: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 5: Line 5:
=Spring Project Structure=
=Spring Project Structure=


For both Maven and Gradle-based projects, the source code is placed under:
{{Internal|Spring_Initializr#Spring_Project_Structure|Spring Initializr Project Structure}}
src/main/java
 
The test code is placed under
src/test/java


=Autoconfiguration=
=Autoconfiguration=

Revision as of 05:10, 8 October 2018

Internal

Spring Project Structure

Spring Initializr Project Structure

Autoconfiguration

Also see Spring Framework's configuration model.

Developer Tools

Additional set of tools that come as part of Spring Boot, and which can make, according to the documentation, "development experience a little more pleasant". The artifacts are identified as org.springframework.boot:spring-boot-devtools. They include the following development-time features:

  • ?
  • ?
  • ?

Development tools are disabled when running as a fully packaged application (such as with java -jar). They should be declared optional in Maven or "compileOnly" in Gradle.

Configuration Processor

TO process: https://docs.spring.io/spring-boot/docs/2.0.5.RELEASE/reference/htmlsingle/#configuration-metadata-annotation-processor.

Caching

Spring Boot automatically configures a suitable cache manager to serve as provider for the relevant cache.

TODO: https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-caching.html. Also see Spring Framework Cache Abstraction.

Spring Boot Starter Dependency

IntelliJ Support

IntelliJ IDEA Plugin for Spring Boot