I want to deploy my spring boot rest api project , where i used mongodb database,
(1) I created a droplet, (2) then installed java, (3) install tomcat server, (4) installed mongodb server.
then, I generated a war file, and deployed, but it says false.
before generate war file, i have changed my application.properties mongodb configuration.
#spring.data.mongodb.host=localhost #spring.data.mongodb.port=27017 #spring.data.mongodb.database=MultiVendor
#for droplet [I used it for deploy]
spring.data.mongodb.host=206.1**.1**.1** spring.data.mongodb.port=27017 spring.data.mongodb.database=mvdb
when I run this applicaton in intellij idea with droplet host, port, console shows Your localhost (206.1.1*.1**) is not a loopback adress We can NOT send shutdown to mongod, because it is denied from remote.***
also u can check my war file name, it autometically named
and pom.xml file
<groupId>com.cyclicsoft</groupId> <artifactId>multivendorshop</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>war</packaging> <name>multivendorshop</name> <description>Multiventor Rest API</description>
once i have faced a problem, i rename a war file ROOT, it showed false in deployment. is any problem with maven install?
I stucked with this deployment problem last couple of days, please help me.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!