Skip to Content
持續交付|使用Java
book

持續交付|使用Java

by Daniel Bryant, Abraham Marín-Pérez
July 2019
Intermediate to advanced
480 pages
9h 35m
Chinese
GoTop Information, Inc.
Content preview from 持續交付|使用Java
組建 Java app |
79
外部依賴項目
外部依賴項目
包含專案賴以成功組建的其他東西,包括外部可執行檔(或許是
JavaScript 程式碼壓縮器(minifier),或內嵌的驅動程式(而且還會使用外部資源)),
例如集中式安全防護掃描器。組建工具必須能夠讓你包裝、執行或指定與外部資源的
連結。
將用戶端 JavaScript 程式包裝成 WebJars
當你建立需要用到 web 前端的 Java app 時,必須知道,手動加入與管理用
戶端依賴項目通常會導致基礎程式難以維護。WebJars 可讓你採取另一種做
法,因為它們是被包成 JAR 歸檔檔案的用戶端依賴項目,並且可透過 Maven
Central 來使用。它們可以和多數的 JVM 容器與 web 框架合作,例如 Twitter
BootstrapAngular JS Jasmine
使用 WebJars 而不是包裝自己的前端資源的優點有:
JVM 上的 web app 中明確且輕鬆地管理用戶端依賴項目
使用基於 JVM 的組建工具(例如 MavenGradle)來下載用戶端依賴項目
知道目前正在使用哪些用戶端依賴項目
可透過 RequireJS 自動解析與選擇性載入傳遞性依賴項目
要了解更多資訊,包括目前可用的 WebJars,可參考 WebJars 網站(
https://
www.webjars.org/
)。
多模組專案
雖然很少人了解多模組專案(或許也是最被濫用的)這個概念,但如果部署得當,它們
有強大的功能。當 ...
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

精實企業|高績效組織如何達成創新規模化

精實企業|高績效組織如何達成創新規模化

Jez Humble, Joanne Molesky, Barry O'Reilly
管理Kubernetes

管理Kubernetes

Brendan Burns, Craig Tracey
精通機器學習|使用Python

精通機器學習|使用Python

Sarah Guido, Andreas C. Mueller
数字化转型:企业破局的34 个锦囊

数字化转型:企业破局的34 个锦囊

Gary O’Brien, Xiao Guo, Mike Mason

Publisher Resources

ISBN: 9789865021740