Siva
By:
Siva

Should I change value of mongo bean of a Spring Web App when deploying in digitalOcean server?

October 22, 2014 1.7k views

So, I am deploying my spring web app in tomcat server in production environment. I have my production server ip address. Should I replace the value of mongo bean from localhost to my ipaddress, in order to access the db?

<bean id="mongo" class="org.springframework.data.mongodb.core.MongoFactoryBean">
    <property name="host" value="localhost" />
</bean>

What else should I change, in order to make my web app work with mongodb in production environment?

1 comment
  • Are running the MongoDB instance on the same server? If so, you will most likely want to leave localhost.

1 Answer

This question was answered by @asb:

Are running the MongoDB instance on the same server? If so, you will most likely want to leave localhost.

View the original comment

Have another answer? Share your knowledge.