I'm trying to use the flapdoodle embedded mongo database ('de.flapdoodle.embed:de.flapdoodle.embed.mongo') for local manual testing the way I'd use H2 for relational database testing. I only want the embedded mongo to start up when running under the 'local' profile, but I can't figure out how to make it happen -- it just always starts under any profile.
I've tried adding @SpringBootApplication(exclude=EmbeddedMongoAutoConfiguration.class)
to my application (thinking I could reimport that autoconfig to a single profile later) but that doesn't seem to have any affect.
Anyone know how to limit it to a single profile?
Aucun commentaire:
Enregistrer un commentaire