SpringBoot中占位符的使用

1、占位符的写法:${}

2、“{}”中可以写能取到的各类数据和框架提供的方法如:random.int等;
3、可以为占位符配置默认值 如:${person.name:李四},当person.name未有值时,显示“李四”;

猜你喜欢

转载自blog.csdn.net/weixin_40404189/article/details/88682008