bld spring boot
1.0.1
要安裝,請參考擴展文檔。
從當前項目創建一個彈簧引導可執行的Java存檔(JAR):
@ BuildCommand ( summary = "Creates an executable JAR for the project" )
public void bootjar () throws Exception {
new BootJarOperation ()
. fromProject ( this )
. execute ();
} ./bld compile bootjar從當前項目創建一個春季啟動可執行的Web存檔(WAR):
@ BuildCommand ( summary = "Creates an executable WAR for the project" )
public void bootwar () throws Exception {
new BootWarOperation ()
. fromProject ( this )
. execute ();
} ./bld compile bootwar不要忘記將彈簧啟動加載器依賴性包括在您的項目中:
scope ( standalone )
. include ( dependency ( "org.springframeworkboot:spring-boot-loader:3.4.1" ));請檢查所有可用配置選項的Bootjaroperation文檔或Boot Waroperation文檔。
您可能還希望查看BLD模板的Spring Boot Web應用程序示例。