-
Notifications
You must be signed in to change notification settings - Fork 1
Spring Boot
- 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.
- 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.
What is anotation: Annotation used at the field or method/constructor parameter level that indicates a **default value expression **for the annotated element.
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.properties or application.yml.
Test, whether docker config error or spring-boot project self config error at first, start spring-boot project with mvn spring-boot:run, if the start without error, that means, docker config error
Spring Boot application.yml application and application.properties Spring boot read application.yml,then read application.properties. If a property is configured in both files, the config of application.yml can be replaced from a config of application.properties.