前端:
<div th:text="'我的第'+${@cms.getPvsAndIps()['ips']} +'位朋友,历经'+ ${@cms.getPvsAndIps()['pvs']}+ '次回眸才与你相遇'"></div>
后端:
public LinkedMap getPvsAndIps(){
int pvs = pvService.selectPvs();
int ips = pvService.selectIps();
LinkedMap blogViewAcountMap = new LinkedMap();
blogViewAcountMap.put("pvs",pvs);
blogViewAcountMap.put("ips",ips);
return blogViewAcountMap;
}