deploy springboot to external container(JBoss)

deploy springboot war to jboss

Era note (2026): This 2019 walkthrough pins WildFly 18.0.1.Final / JDK 11 / Gradle 5.6 - all long EOL (WildFly 18 is unsupported; current is WildFly 41, released Jul 2026). Packaging a Spring Boot WebFlux app as a WAR for an external app server is no longer the recommended deployment model - prefer a self-executable JAR or a GraalVM native image. The mechanics below still work for legacy environments.

Wildfly: 18.0.1.Final

JDK: 11.0.2

Gradle: 5.6.2

Web: Webflux

Source Code

create springboot demo project by initializer

1569844794129

1569844973320

1569845032989

1569845140007

1569846771715

write a test case

1569846460212

build package

1570622045669

deploy it to JBoss

You can put boot.war to $JBOSS_HOME/standalone/deployments/, then run $JBOSS_HOME/bin/standalone.bat by administrator.

https://localhost:8443/boot/

http://localhost:8080/boot/

It will output hello world, springboot.

Licensed under CC BY-NC-SA 4.0
Last updated on Aug 14, 2026 00:00 UTC