Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有
Config { int a; .... }
和我的服务
MySvc { @Produces(JSON) public Config getConfigData() { return config; } }
我想要用对象名称包装的 json
var MyConfig = {"a":"value" }
这可能吗 ?
目前它返回
{"a":"value"}