Config annotation 使用 Scala 宏特性实现配置项映射
示例代码:
import com.wacai.config.annotation._ class Server { @conf val port = 0 } // application.conf server { port = 8080 } //@conf will let scala compile to transform val port = 0 to : val port = config.getInt("server.port")