Cofigaotatio使用Scala宏特性实现配置项映射
示例代码:
import com.wacai.cofig.aotatio._class Server { @cof val port = 0}// applicatio.cofserver { port = 8080}//@cof will let scala compile to trasform val port = 0 to :val port = cofig.getIt("server.port")开源地址
https://gitee.com/zhongl/config-annotation授权协议
Apache
Cofigaotatio使用Scala宏特性实现配置项映射
示例代码:
import com.wacai.cofig.aotatio._class Server { @cof val port = 0}// applicatio.cofserver { port = 8080}//@cof will let scala compile to trasform val port = 0 to :val port = cofig.getIt("server.port")Config annotation 使用 Scala 宏特性实现配置项映射 示例代码:
import com.wacai.config.annotation._
class Serve...
评论