3 ms·
Spring (and particularly Spring Boot) requires no XML for configuration — everything can be done with annotations and plain Java (or Kotlin).
by shock-value 6y ago
Spring (and particularly Spring Boot) requires no XML for configuration — everything can be done with annotations and plain Java (or Kotlin).
- BoorishBears 6y agoThe canonical way to use Profiles, even with Kotlin is with your Maven XML or a web.xml You can set them up other ways, but it just ends up making a lot of sense to define them there. To be fair, Ktor is pretty similar with the "application.conf" if you use the built-in Profiles equivalent: https://ktor.io/docs/configurations.html#hocon-overview https://ktor.io/docs/configurations.html#hocon-overview I just prefer that if I'm using DI, the concept of environments be handled by DI. Scoping is what DI does best after all...