DEV Community

Discussion on: Is GraphQL better option than Rest ?

Collapse
 
codepunter profile image
codepunter

how to host it using apache?

Collapse
 
arpanforgeek profile image
Arpan Bandyopadhyay • Edited

Spring boot has embedded tomcat . You just need to use some command based on the build tool you are using (gradle/maven)

Here is the documentation :
appsdeveloperblog.com/run-spring-b...

But if you wish to deploy it to external tomcat then first you have to exclude embedded tomcat from build.gradle/pom.xml then deploy it. (But this is not recommended)

Here is the documentation :

codezup.com/deploy-spring-boot-war...