问题描述
我正在使用
@Value("${name}")
private String name;
//application.yaml
spring:
profiles:
active: prod
name: prod-YAML
---
spring:
profiles:
active: qa
name: qa-YAML
---
spring:
profiles:
active: dev
name: dev-YAML
进行漂亮的打印,并且似乎只处理了XML的一部分。
此代码
xmlData(options: [.nodePrettyPrint,.nodeCompactEmptyElement])
导致此输出
print(fcpxxml2.xmlString)
let data2 = fcpxxml2.xmlData(options: [.nodePrettyPrint,.nodeCompactEmptyElement])
let str2 = String(data: data2,encoding: .utf8)!
print(str2)
标记缩进了,但是之后没有。我在做什么错了?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)