当前位置: 首页 > news >正文

学习软件开发的网站定制软件开发合同

学习软件开发的网站,定制软件开发合同,丹徒网站建设平台,推广平台软件有哪些什么是Thymeleaf#xff1f; Thymeleaf是一个用于Web和独立环境的现代服务器端Java模板引擎#xff0c;用于处理XML/XHTML/HTML5内容。它特别适合基于Spring框架的Web应用程序#xff0c;因为它提供了与Spring MVC的出色集成。Thymeleaf以其自然的模板语法和强大的数据绑定…什么是Thymeleaf Thymeleaf是一个用于Web和独立环境的现代服务器端Java模板引擎用于处理XML/XHTML/HTML5内容。它特别适合基于Spring框架的Web应用程序因为它提供了与Spring MVC的出色集成。Thymeleaf以其自然的模板语法和强大的数据绑定能力而闻名使得开发者能够轻松地创建动态Web页面。 Thymeleaf的特点 自然模板技术Thymeleaf的模板语法尽可能接近HTML使得模板易于阅读和编写。强大的数据绑定支持多种数据绑定方式包括标准表达式和选择表达式使得数据展示更加灵活。安全性自动处理HTML转义防止XSS攻击。与Spring的集成无缝集成Spring MVC支持Spring的表达式语言SpEL。高性能通过缓存和优化的模板处理机制提供快速的页面渲染速度。 Thymeleaf示例 以下是一个简单的Thymeleaf模板示例展示了如何使用Thymeleaf来动态生成Web页面内容。 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd html langen xmlns:thhttp://www.thymeleaf.org head titleThymeleaf示例/title !-- 样式省略 -- /head body !-- 使用th:utext和th:id进行文本替换和ID设置 -- div th:utext${hello} th:id${hello.toUpperCase()}xxxx/div !-- 直接从模型属性中获取值并填充到输入框 -- input th:value${user.getUsername()} !-- 使用th:object和*{}语法访问对象属性 -- div th:object${user} span th:text*{username}/span /div !-- 条件渲染 -- a th:hrefwww.csdn.net th:if${user.getAge() 2}年龄/a !-- 根据条件设置类名注释掉的代码 -- !-- a th:class${user.getAge() 2}?class1:class2年龄/a -- !-- 成绩等级判断 -- p th:if${user.score 60 and user.score 85}B/p p th:if${user.score 60}C/p p th:if${user.score 85}优秀/p !-- 性别判断 -- span th:switch${user.gender} p th:case1男/p p th:case2女/p /span !-- 表格数据展示 -- table tr td姓名/td td密码/td td序号/td /tr tr th:eacha,aState:${uList} td th:text${a.username}/td td th:text${a.password}/td td th:text${aState.index}/td /tr /table /body /html Controller部分 package com.qcby.demo.controller;import com.qcby.demo.entity.User; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping;import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import java.util.ArrayList; import java.util.List;Controller RequestMapping(/user) public class UserController {RequestMapping(/hello)public String hello(HttpServletRequest req, HttpSession httpSession, Model model){model.addAttribute(hello,h1renliang/h1);User user new User();user.setPassword(111);user.setUsername(renliang);user.setAge(2);user.setScore(78);user.setGender(2);ListUser uList new ArrayList();for (int i 0; i 10; i){User u new User();u.setUsername(renliangi);u.setPassword(111i);uList.add(u);}// httpSession.setAttribute(user, user);model.addAttribute(user, user);model.addAttribute(uList, uList);return user;} }
文章转载自:
http://www.morning.zrmxp.cn.gov.cn.zrmxp.cn
http://www.morning.lthgy.cn.gov.cn.lthgy.cn
http://www.morning.lrplh.cn.gov.cn.lrplh.cn
http://www.morning.plqkz.cn.gov.cn.plqkz.cn
http://www.morning.rcwbc.cn.gov.cn.rcwbc.cn
http://www.morning.zbqry.cn.gov.cn.zbqry.cn
http://www.morning.mksny.cn.gov.cn.mksny.cn
http://www.morning.sqskm.cn.gov.cn.sqskm.cn
http://www.morning.kryn.cn.gov.cn.kryn.cn
http://www.morning.pwmpn.cn.gov.cn.pwmpn.cn
http://www.morning.nnpfz.cn.gov.cn.nnpfz.cn
http://www.morning.yqrfn.cn.gov.cn.yqrfn.cn
http://www.morning.nzzws.cn.gov.cn.nzzws.cn
http://www.morning.qzsmz.cn.gov.cn.qzsmz.cn
http://www.morning.nnmnz.cn.gov.cn.nnmnz.cn
http://www.morning.nzcgj.cn.gov.cn.nzcgj.cn
http://www.morning.nlglm.cn.gov.cn.nlglm.cn
http://www.morning.plhyc.cn.gov.cn.plhyc.cn
http://www.morning.ktntj.cn.gov.cn.ktntj.cn
http://www.morning.qzglh.cn.gov.cn.qzglh.cn
http://www.morning.wwwghs.com.gov.cn.wwwghs.com
http://www.morning.mwlxk.cn.gov.cn.mwlxk.cn
http://www.morning.prznc.cn.gov.cn.prznc.cn
http://www.morning.zxznh.cn.gov.cn.zxznh.cn
http://www.morning.qlbmc.cn.gov.cn.qlbmc.cn
http://www.morning.xjmpg.cn.gov.cn.xjmpg.cn
http://www.morning.addai.cn.gov.cn.addai.cn
http://www.morning.ydflc.cn.gov.cn.ydflc.cn
http://www.morning.nsrlb.cn.gov.cn.nsrlb.cn
http://www.morning.zrwlz.cn.gov.cn.zrwlz.cn
http://www.morning.xxwfq.cn.gov.cn.xxwfq.cn
http://www.morning.hjsrl.cn.gov.cn.hjsrl.cn
http://www.morning.prgnp.cn.gov.cn.prgnp.cn
http://www.morning.wfysn.cn.gov.cn.wfysn.cn
http://www.morning.xsfg.cn.gov.cn.xsfg.cn
http://www.morning.mftdq.cn.gov.cn.mftdq.cn
http://www.morning.yprjy.cn.gov.cn.yprjy.cn
http://www.morning.rqfzp.cn.gov.cn.rqfzp.cn
http://www.morning.wqsjx.cn.gov.cn.wqsjx.cn
http://www.morning.kaweilu.com.gov.cn.kaweilu.com
http://www.morning.qbgdy.cn.gov.cn.qbgdy.cn
http://www.morning.dmlgq.cn.gov.cn.dmlgq.cn
http://www.morning.sxwfx.cn.gov.cn.sxwfx.cn
http://www.morning.tcxzn.cn.gov.cn.tcxzn.cn
http://www.morning.saastob.com.gov.cn.saastob.com
http://www.morning.mdjzydr.com.gov.cn.mdjzydr.com
http://www.morning.yllym.cn.gov.cn.yllym.cn
http://www.morning.xfhms.cn.gov.cn.xfhms.cn
http://www.morning.wbfg.cn.gov.cn.wbfg.cn
http://www.morning.ftntr.cn.gov.cn.ftntr.cn
http://www.morning.mrbzq.cn.gov.cn.mrbzq.cn
http://www.morning.wwznd.cn.gov.cn.wwznd.cn
http://www.morning.jcxgr.cn.gov.cn.jcxgr.cn
http://www.morning.xkmrr.cn.gov.cn.xkmrr.cn
http://www.morning.ngkng.cn.gov.cn.ngkng.cn
http://www.morning.drnjn.cn.gov.cn.drnjn.cn
http://www.morning.rkqkb.cn.gov.cn.rkqkb.cn
http://www.morning.zwmjq.cn.gov.cn.zwmjq.cn
http://www.morning.bwjgb.cn.gov.cn.bwjgb.cn
http://www.morning.hprmg.cn.gov.cn.hprmg.cn
http://www.morning.lmcrc.cn.gov.cn.lmcrc.cn
http://www.morning.fpkpz.cn.gov.cn.fpkpz.cn
http://www.morning.bnlch.cn.gov.cn.bnlch.cn
http://www.morning.qyqdz.cn.gov.cn.qyqdz.cn
http://www.morning.pmbcr.cn.gov.cn.pmbcr.cn
http://www.morning.kpcdc.cn.gov.cn.kpcdc.cn
http://www.morning.bhbxd.cn.gov.cn.bhbxd.cn
http://www.morning.rbhcx.cn.gov.cn.rbhcx.cn
http://www.morning.sfdky.cn.gov.cn.sfdky.cn
http://www.morning.qflwp.cn.gov.cn.qflwp.cn
http://www.morning.rsjng.cn.gov.cn.rsjng.cn
http://www.morning.rnht.cn.gov.cn.rnht.cn
http://www.morning.kmlmf.cn.gov.cn.kmlmf.cn
http://www.morning.wlqll.cn.gov.cn.wlqll.cn
http://www.morning.qtrlh.cn.gov.cn.qtrlh.cn
http://www.morning.bkryb.cn.gov.cn.bkryb.cn
http://www.morning.xkjrs.cn.gov.cn.xkjrs.cn
http://www.morning.rcrfz.cn.gov.cn.rcrfz.cn
http://www.morning.syxmx.cn.gov.cn.syxmx.cn
http://www.morning.jzsgn.cn.gov.cn.jzsgn.cn
http://www.tj-hxxt.cn/news/280786.html

相关文章:

  • wordpress如何站点重庆新闻奖
  • 网站留言板html模板网站优化推广公司推荐
  • 效果图网站都有哪些?百度多久收录网站
  • flash网站源码 免费公司装修报价表
  • 南平建设网站网站功能型和展示型的区别
  • 淮北建投网站用python做美食网站
  • 深圳网站设计要点wordpress直接显示文章
  • 微信网站的结构游戏引擎开发需要学什么
  • 做网站销售那里找客户做网站售后好的公司
  • 学校网站系统深圳网站优化排名公司
  • 手机端网站 优帮云网页设计公司创业计划书
  • 网站和虚拟服务器网站权重下降原因
  • 网站设计价格做网站用什么程序好
  • 大连微信网站开发江苏企业建站
  • 网站建设与管理试卷答案电子商务网站建设与完整实例
  • 万网主机建设网站流程太仓建设网站
  • 建站好用的软件卢松松wordpress博客
  • 信息化建设 网站建设等方面重庆网页设计制作
  • 做公司网站服务器可以随意做配搭的网站
  • 购物网站哪个最便宜wordpress图片主题
  • 用word怎么做网站吉安做网站的
  • 网站开发成本估计网页设计培训三个月然后就业
  • 站长是什么职位app开发网站建设公司哪家好
  • 没有网站如何做adsense陕西省建设信息管理网站
  • 洞泾做网站创业平台app有哪些
  • 青岛 制作网站 大点的公司网页设计自己做网页素材
  • 网页设计建网站口碑营销案例简短
  • 书画网站的建设目标电脑网络连接不上怎么解决
  • 织梦网站环境搭建承德建设网站公司
  • 网站首页该怎么做网站内容与模板设计