Skip to content

Spring Boot

yan li edited this page Aug 13, 2020 · 10 revisions

Spring boot deplyment

  1. BOOT-INF folder

Spring Boot application load form Boot-INF folder . Application classes should be placed in a nested BOOT-INF/classes directory. Dependencies should be placed in a nested BOOT-INF/lib directory.

  1. The META-INF folder

the home for the MANIFEST.MF file. This file contains meta data about the contents of the JAR. For example, there is an entry called Main-Class that specifies the name of the Java class with the static main() for executable JAR files.

Spring boot anotation:

What is anotation: Annotation used at the field or method/constructor parameter level that indicates a **default value expression **for the annotated element.

@Value

This Annotation is used to inject a system property from application.properies or application.yml to a config class, the property is configued in application.proerties or application.yml.

Clone this wiki locally