I have developer Application in Spring boot and exported the war file and placed it in tomcat 9 server. When I try to test the API in Rest client the app is connecting to test DB instead of the DB which I declared in application.property for mongodb, below is my application.property
Database name. spring.data.mongodb.database=IndianFarms Mongo server host. spring.data.mongodb.host=localhost Mongo server port. spring.data.mongodb.port=27017 logging logging.level.org.springframework.data=debug logging.level.=error spring.jackson.default-property-inclusion=NON_NULL
Can any one help me in this.