How to use dependency injection in Scala without Play Framework?
问题 I have experience of developing a web-based application with Scala and Play. Play supports Guice out of the box, so it is very easy to do DI with Play. I'm currently working on a Scala project that is not a web application and it does not use Play. I want to dynamically inject the config object into a few places. How do I do this? If it is necessary to use some library to do DI, what library is good for this purpose? Any sample code? Is it possible to implement this with plain Scala not using