Skip to content

Commit a8fbfb6

Browse files
authored
Update 80.7 Create a non-executable JAR with exclusions.md
1 parent 782b92e commit a8fbfb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

IX. ‘How-to’ guides/80.7 Create a non-executable JAR with exclusions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
### 80.7 使用排除创建不可执行的JAR
22

3-
如果你构建的产物既有可执行的jar和非可执行的jar,那你常常需要为可执行的版本添加额外的配置文件,而这些文件在一个library jar中是不需要的。比如,application.yml配置文件可能需要从非可执行的JAR中排除
3+
如果你构建的产物既有可执行的jar和非可执行的jar,那你常常需要为可执行的版本添加额外的配置文件,而这些文件在一个library jar中是不需要的。比如,`application.yml`配置文件可能需要从非可执行的JAR中排除
44

55
下面是如何在Maven中实现:
66
```xml
@@ -44,7 +44,7 @@
4444
</plugins>
4545
</build>
4646
```
47-
在Gradle中,你可以使用标准任务的DSL(领域特定语言)特性创建一个新的JAR存档,然后在bootRepackage任务中使用withJarTask属性添加对它的依赖
47+
在Gradle中,你可以使用标准任务的DSL(领域特定语言)特性创建一个新的JAR存档,然后在`bootRepackage`任务中使用`withJarTask`属性添加对它的依赖
4848
```gradle
4949
jar {
5050
baseName = 'spring-boot-sample-profile'

0 commit comments

Comments
 (0)