springboot传1到html显示是
- 在Controller中定义一个请求处理方法,该方法返回一个ModelAndView对象。
- 在ModelAndView中设置要传递的数据,比如:modelAndView.addObject("value", 1);
- 在html中使用Thymeleaf模板引擎获取该值,比如:${value}。
原文地址: https://www.cveoy.top/t/topic/ffTP 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
原文地址: https://www.cveoy.top/t/topic/ffTP 著作权归作者所有。请勿转载和采集!