Skip to Content
Java持续交付
book

Java持续交付

by Daniel Bryant, Abraham Marín-Pérez
November 2019
Beginner to intermediate
406 pages
9h 21m
Chinese
Publishing House of Electronics Industry
Content preview from Java持续交付
JAR
文件——为什么我们决定不使用胖
JAR
117
...
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
Spring Boot Maven
插件会在
Maven
的打包阶段,将项目重新打包成一个
JAR
或者
WAR
文件。你只需要去触发一次正常的
Maven
构建。
Spring Boot
中使用
Maven Shade
插件
你可以使用
Maven Shade
插件来构建
Spring Boot
应用程序,但是可能会遇到问题,
尤其是应用程序的入口点和控制器可能无法正常工作(
http://bit.ly/2R1m6li
)。
信所有这些问题都可以解决(只要有足够的时间和精力),但我们建议如果你正
在使用
Spring Boot
,请坚持使用
Spring Boot Maven
插件,除非有充分的理由更
换其他插件。否则,你可能会让自己面临很多不必要的问题。
物料清单
BOM
在处理
Spring
依赖时,你可能会用到与
Maven POM
一起使用的
BOM
文件。物料
清单(
BOM
)是一种特殊的
POM
,用来管理项目依赖项的各个版本,并提供一个
集中定义和更新这些版本的地方。使用
BOM
可以更轻松地管理
Spring
框架中复
杂且相互依赖的库,但一般来说,你不需要自己编写 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Python机器学习案例精解

Python机器学习案例精解

Posts & Telecom Press, Yuxi (Hayden) Liu
Java性能优化实践:JVM调优策略、工具与技巧

Java性能优化实践:JVM调优策略、工具与技巧

Benjamin J. Evans, James Gough, Chris Newland
Python和NLTK实现自然语言处理

Python和NLTK实现自然语言处理

Posts & Telecom Press, Nitin Hardeniya
C++语言导学(原书第2版)

C++语言导学(原书第2版)

本贾尼 斯特劳斯特鲁普

Publisher Resources

ISBN: 9787121374425