NutzCN Logo
问答 PropertiesProxy读取配置文件 并没有paths这个属性,为什么是按fields注入呢?
发布于 2950天前 作者 lusparioTT 2664 次浏览 复制 上一个帖子 下一个帖子
标签:
    // 读取配置文件
    config : {
        type : "org.nutz.ioc.impl.PropertiesProxy",
        fields : {
            paths : ["myapp.properties"]
        }
    },
4 回复

有setPaths方法

@wendal 这样可以不

 config : {
        type : "org.nutz.ioc.impl.PropertiesProxy",
        args : [
            ["myapp.properties"]
        ]
    },

@wendal 哈哈这样可以了 3q

 config : {
        type : "org.nutz.ioc.impl.PropertiesProxy",
        args : ["myapp.properties","...","..."]
    },
添加回复
请先登陆
回到顶部