类 Layers
java.lang.Object
org.springframework.boot.maven.Layers
Layer configuration options.
- 从以下版本开始:
- 2.3.0
- 作者:
- Madhura Bhave
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明The location of the layers configuration file.boolean
Whether alayers.idx
file should be added to the jar.boolean
已过时, 待删除: 此 API 元素将从以后的版本中删除。void
setConfiguration
(File configuration)
-
构造器详细资料
-
Layers
public Layers()
-
-
方法详细资料
-
isEnabled
public boolean isEnabled()Whether alayers.idx
file should be added to the jar.- 返回:
- true if a
layers.idx
file should be added.
-
isIncludeLayerTools
已过时, 待删除: 此 API 元素将从以后的版本中删除。since 3.3.0 for removal in 3.5.0 in favor ofincludeTools
.Whether to include the layer tools jar.- 返回:
- true if layer tools should be included
-
getConfiguration
The location of the layers configuration file. If no file is provided, a default configuration is used with four layers:application
,resources
,snapshot-dependencies
anddependencies
.- 返回:
- the layers configuration file
-
setConfiguration
-
includeTools
.