加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
JPA_Thymeleaf.yml 3.02 KB
一键复制 编辑 原始数据 按行查看 历史
yangyang 提交于 2021-11-02 07:51 . jpa_thylemeaf
spring:
datasource:
hikari:
username: root
password: root
url: jdbc:mysql:///test?serverTimezone=GMT%2B8&characterEncoding=utf-8
jpa:
database: mysql
show-sql: true
hibernate:
ddl-auto: update
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: Asia/Chongqing
mail:
host: smtp.qq.com
username: 394610846@qq.com
password: movfuyuwjludbgga
properties.mail.smtp.port: 465
from: 394610846@qq.com
properties.mail.smtp.starttls.enable: true
properties.mail.smtp.starttls.required: true
properties.mail.smtp.ssl.enable: true
default-encoding: utf-8
<dependency>
<groupId>org.webjars</groupId>
<artifactId>bootstrap</artifactId>
<version>4.4.1-1</version>
</dependency>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>jquery</artifactId>
<version>3.5.1</version>
</dependency>
<script src="webjars/jquery/3.5.1/jquery.min.js"></script>
<script src="webjars/bootstrap/4.4.1-1/js/bootstrap.min.js"></script>
<link rel="stylesheet"
href="webjars/bootstrap/4.4.1-1/css/bootstrap.min.css" />
<tr>
<td colspan="20" align="center">
共<span th:text="${pager.totalPages}"></span>页,
当前是第 <span th:text="${pager.number+1}"></span>页。
<a th:href="@{list(offset=0,mohu=${mohu})}">首页</a>
<a th:href="@{list(offset=${pager.number-1},mohu=${mohu})}" th:if="${not pager.isFirst()}">上页</a>
<a th:href="@{list(offset=${pager.number+1},mohu=${mohu})}" th:if="${not pager.isLast()}">下页</a>
<a th:href="@{list(offset=${pager.totalPages-1},mohu=${mohu})}">末页</a>
</td>
</tr>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.15</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.2.1</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>4.2.1</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.6</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-util</artifactId>
<version>9.3.7.v20160115</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.5</version>
<scope>test</scope>
</dependency>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化