Angular 2 and Spring Boot - Deploy to War

前端 未结 3 1471
长情又很酷
长情又很酷 2021-02-03 14:48

Let me just start off by saying, I am new to Maven / Spring and am having a hard time figuring out what to do when my directory does not follow the preferred Maven structure.

3条回答
  •  無奈伤痛
    2021-02-03 15:26

    The reference doc contains a detailed description of this. You need war in both your frontend and backed module pom and some Java code. All described here

    With that said, I try to avoid war deploys if not totally necessary. You could just run the built jar file with java -jar your.jar and it will start in an embedded Tomcat.

提交回复
热议问题