# yy_demo **Repository Path**: wip/yy_demo ## Basic Information - **Project Name**: yy_demo - **Description**: 各种常用Java开发技术案例代码演示 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-01 - **Last Updated**: 2022-03-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 学习演示使用的项目 ### 项目启动条件 ##### 1.更改yml文件mysql配置 ##### 2.更改yml文件rabbitmq配置 ### thymeleaf模板引擎的使用 #### 1.引入thymeleaf a.通过 xmlns:th="http://www.thymeleaf.org"将镜头页面转换为动态的视图,需要动态处理的元素将使用 "th:"为前缀 b.通过"@{}"引入web静态资源 #### 2.访问model中的数据 通过"${}"访问model中的属性 ${person.name} #### 3.model中的数据迭代
  • #### 4.数据判断 th:if="${not #lists.isEmpty(people)}"//判断people是否为空 thymeleaf支持> >= < <= == != ,也支持springEL表达式 #### 5.在JavaScript中访问model #### 6.其他知识 查看官网 http://www.thymeleaf.org