精心打磨的 Act-1.8.8 出爐了
11 個 RC 版本, 6個月的精心打磨, ActFramework 1.8.8 終於出爐了. 這次版本帶來了 220 個錯誤修復或改進, 其中最主要的特性是
-
自動化測試支援
-
API book 增加了模組的支援
-
內建 CAPTCHA 支援
-
當沒有 Accept 頭是預設使用 JSON 格式
-
無模板輸出 Excel 報表 (而且支援多 sheet)
-
直接通過環境變數設定應用配置項
-
簡單的 XML 支援 - 不支援屬性和校驗
-
更新 osgl-tool 至 1.18.0
-
資料拷貝和對映
-
增強的 IO 庫, 支援使用者插入特定格式的處理器, 比如 xls
ActFramework 1.8.8 的 issue 詳細列表:
ofollow,noindex" target="_blank">https://github.com/actframework/actframework/milestone/57?closed=1
osgl-tool 1.18.0 的 issue 詳細列表:
https://github.com/osglworks/java-tool/milestone/32?closed=1
關於效能
另一個希望與大家分享的訊息是 TechEmpower Framework Benchmark第 17 輪測試報告 剛剛新鮮出爐, 歡迎大家來圍觀 Java 應用框架的效能表現: https://www.techempower.com/benchmarks/#section=data-r17&hw=ph&test=json&l=zik0vz-1&c=4&o=4
啟動 ActFramework 專案的正確姿勢
後端模板支援的專案
mvn archetype:generate -B \ -DgroupId=com.mycom.helloworld \ -DartifactId=helloworld \ -DarchetypeGroupId=org.actframework \ -DarchetypeArtifactId=archetype-quickstart \ -DarchetypeVersion=1.8.8.10
純 RESTful 服務專案
mvn archetype:generate -B \ -DgroupId=com.mycom.helloservice \ -DartifactId=helloservice \ -DarchetypeGroupId=org.actframework \ -DarchetypeArtifactId=archetype-simple-restful-service \ -DarchetypeVersion=1.8.8.10
升級現有 ActFramework 專案
將 act-starter-parent 的版本提升至 1.8.8.8:
<parent> <groupId>org.actframework</groupId> <artifactId>act-starter-parent</artifactId> <version>1.8.8.8</version> </parent>