作者:谁的淡笑丶_227 | 来源:互联网 | 2023-08-06 16:47
一、不传参调用后台service接口1、后台需要在service接口定义一个名称2、thymeleaf界面直接调用二、动态传参数调用后台service接口thymeleaf界面
一、不传参调用后台service接口
1、后台需要在service接口定义一个名称

2、thymeleaf 界面直接调用

二、动态传参数调用后台service接口
thymeleaf 界面直接调用

${}里面则是动态的数据,需要的注意的是带‘’是字符串,不带则是数字