Spring RESTful Service as a WAR instead of JAR in Tomcat

前端 未结 3 2169
感动是毒
感动是毒 2020-12-15 19:21

I am in the process of creating a REST web service in Java Spring. I\'ve successfully loaded STS and the example detailed at :

\"This guide walks you through the pr

3条回答
  •  太阳男子
    2020-12-15 19:38

    I would expect to see some INFO output when a spring boot application starts so some ideas are:

    Try a regular tomcat instance

    • Download and extract the zip distribution.
    • Start tomcat with bin/startup.sh
    • Copy your war to the webapps directory
    • Check the logs... hope to see some evidence of spring starting up

    Manually inspect the war file

    • Unzip your war file
    • Expect to see WEB-INF/web.xml

提交回复
热议问题