编程知识 cdmana.com

Record the spring boot configuration processor in the application.yml No effect

Record spring-boot-configuration-processor stay application.yml China doesn't work

1. Project description

Multi module project , Root directory pom.xml Management dependence , Submodule inheritance .

2. Dependency statement

An example from the official website :

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-configuration-processor</artifactId>
    <optional>true</optional>
</dependency>

3. Explain the attributes of kengdao

maven-> optional label :<span style="font-size:30px"><!-- Prevent this dependency from being passed to other modules --></span>

General description

If your Project A Some dependence of D Added <optional>true</optional>

When someone else passes through pom rely on Project A When ,D It won't be passed in

When you rely on a project that is huge or likely to be associated with other projects jar It is recommended to add this option in case of package conflict , Can save money , And reduce dependency conflicts

版权声明
本文为[Falling]所创,转载请带上原文链接,感谢
https://cdmana.com/2020/12/20201225114149277G.html

Scroll to Top