Spring boot war doesn´t work on Jboss 7.1

后端 未结 2 1566
孤街浪徒
孤街浪徒 2021-01-16 05:42

I´m trying to deploy a Spring boot application on Jboss. I follow this tutorial for convert my jar in to a war file. But when i try to run the application on Jboss it´s give

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-16 05:56

    spring-boot on compile generate two files(.war).

    myapp-0.0.1-SNAPSHOT
    myapp-0.0.1-SNAPSHOT.war.original
    

    If you wan to deploy to JBoss 7.1 you need to rename myapp-0.0.1-SNAPSHOT.war.original to e.g myapp-0.0.1.war(remove .original extension) and deploy to server.

提交回复
热议问题