Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
How to deploy spring boot project with mongodb database in digitalocean.
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 (184.108.40.206) 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.
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.×