@Test
void contextLoads() {
String s1 = "你好{0}, 我叫{1}";
System.out.println(MessageFormat.format(s1, "张飞", "王菲"));
String s2 = "你好%s, 我叫%s";
System.out.println(String.format(s2, "张1飞", "王1菲"));
}
hmoban主题是根据ripro二开的主题,极致后台体验,无插件,集成会员系统
自学咖网 »
java 占位符