Skip to content

Spring Boot

yan li edited this page Jan 2, 2022 · 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.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.

Spring-Boot-Logging

Spring-Boot- Managing Quartz Job with actuator

Clone this wiki locally