打印结果如下:
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:2.4.3:compile [INFO] | +- org.springframework.boot:spring-boot-starter:jar:2.4.3:compile [INFO] | | +- org.springframework.boot:spring-boot-starter-logging:jar:2.4.3:compile [INFO] | | | +- ch.qos.logback:logback-classic:jar:1.2.3:compile [INFO] | | | | \- ch.qos.logback:logback-core:jar:1.2.3:compile [INFO] | | | +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.13.3:compile [INFO] | | | | \- org.apache.logging.log4j:log4j-api:jar:2.13.3:compile [INFO] | | | \- org.slf4j:jul-to-slf4j:jar:1.7.30:compile [INFO] | | \- org.yaml:snakeyaml:jar:1.27:compile [INFO] | +- org.springframework.boot:spring-boot-starter-json:jar:2.4.3:compile [INFO] | | +- com.fasterxml.jackson.core:jackson-databind:jar:2.11.4:compile [INFO] | | | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.11.4:compile [INFO] | | | \- com.fasterxml.jackson.core:jackson-core:jar:2.11.4:compile [INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.11.4:compile [INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.11.4:compile [INFO] | | \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.11.4:compile [INFO] | +- org.springframework:spring-web:jar:5.3.4:compile [INFO] | | \- org.springframework:spring-beans:jar:5.3.4:compile [INFO] | \- org.springframework:spring-webmvc:jar:5.3.4:compile [INFO] | +- org.springframework:spring-aop:jar:5.3.4:compile [INFO] | +- org.springframework:spring-context:jar:5.3.4:compile [INFO] | \- org.springframework:spring-expression:jar:5.3.4:compile
直接依赖的4个Jar:
1、spring-boot-starter
2、spring-boot-starter-json
3、spring-web
4、spring-webmvc
Spring框架最核心的一些Jar包都是由Spring-web和Spring-webmvc带入的,比如beans、aop、context、expression。
另外,spring-boot-starter-json所引用的三方Json类库是Jackson,足见Jackson类库的强大。
spring-boot-starter这个最常用的stater依赖了spring-boot-starter-logging,看来日志还是不可或缺的重要一部分,并且使用的Jar包是logback,还包含了Log4j
对于application.yaml的解析任务,就落在了snakeyaml的头上。