Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 903 Bytes

local_tomcat_deploy.md

File metadata and controls

31 lines (22 loc) · 903 Bytes

LOCAL DEPLOY ON TOMCAT SERVER

  • Install Tomcat Server: Follow the installation instructions for your operating system. 🛠️

  • Configuration in pom.xml: Update the scope of spring-boot-starter-tomcat to provided.

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-tomcat</artifactId>
    <scope>provided</scope>
</dependency>
  • <tomcat-users>
      <user username="username" password="password" roles="role"/>
    </tomcat-users>
  • Generate WAR File: Use Maven or your preferred build tool to generate the WAR file:

    mvn clean package
  • Access Application Manager: Go to the Application Manager in your browser.

  • Deploy Application: Select "Deploy" and upload the generated WAR file.

  • Get Application URL: Once deployed, you'll receive a URL to access the application. 🚀