-
Notifications
You must be signed in to change notification settings - Fork 9
NeoStarterMongo
Grzegorz Poznachowski edited this page Oct 24, 2016
·
5 revisions
Enables and preconfigures MongoDB.
Important
|
MongoDB connection related things should be configured using uri parameter. Providing hostname and port is deprecated since MongoDB Driver >3.0. What’s more replica set connection can be provided only with uri parameter.
|
To enable easier database migrations, we have added MongoBee support out of the box.
To start you just need to add your @ChangeLog
classes to your code.
-
MongoBee uses
spring.data.mongodb.uri
for making the connection by default. You can override it by specifying custom Mongo URI vianeostarter.mongobee.uri
.
Note
|
Only MongoDB URI parameter is supported (MongoDB Driver >3.0 deprecated other styles of defining connection) |
-
MongoBee uses default Spring Boot package to scan for
@ChangeLog
classes. It means that package is specified by location of your@SpringBootApplication
class (@AutoConfigurationPackage
to be exact). You can override it by specifying custom package name vianeostarter.mongobee.packageToScan
. -
MongoBee supports Spring profiles. It is explained here.
To disable MongoBee set neostarter.mongobee.enabled=false