码迷,mamicode.com
首页 >  
搜索关键字:thymeleaf    ( 794个结果
解决Error resolving template template might not exist or might not be accessible问题
thymeleaf + Spring Boot 在开发环境正常,但用jar运行时报错 Error resolving template template might not exist or might not be accessible; 这个问题我们都很好明白,就是模板页不存在,但是实际上它能找 ...
分类:数据库   时间:2020-01-03 00:40:41    阅读次数:171
springboot+thymeleaf处理带搜索条件的分页问题解决思路
一开始写项目的时候,没用ajax,导致做搜索分页功能的时候废了好大的劲,在这里分享一下处理这个问题的思路。 框架用的springboot,通过thymeleaf模板和前端交互,没有使用ajax,所以数据都是在域对象放的。分页用的springdatajpa的分页,他个其他的分页工具大同小异,优点在于不 ...
分类:编程语言   时间:2020-01-01 20:51:08    阅读次数:274
学习码匠社区-spring boot 使用bootstrap + thymeleaf 制作导航栏
spring boot 使用 bootstrap + thymeleaf 制作导航栏 1. 添加 thymeleaf 依赖 org.springframework.boot spring boot starter thymeleaf 配置 application.properties,使得 spri ...
分类:编程语言   时间:2019-12-27 00:07:29    阅读次数:249
springboot整合freemark,thymeleaf
先在pom文件引入freemark,thymeleaf的依赖,thymeleaf的html文件放在Resource-templates-thymeleaf目录下,freekmarker的ftl文件放在Resource-templates-freemarker目录下,再properties文件设置各自 ...
分类:编程语言   时间:2019-12-25 23:44:27    阅读次数:117
获取项目根路径
传统的jsp页面js获取项目路径的写法: var contextPath = '${pageContext.request.getContextPath()}'; 1 使用thymeleaf是这样获取 <script> var ctx = "[[@{/}]]"; </script> ...
分类:其他好文   时间:2019-12-23 17:16:36    阅读次数:88
springboot自定义错误页
静态错误页放在 动态可以放在freemaker或者thymeleaf 匹配规则: 先找动态页面再找静态页面 先找精确错误页面再找模糊页面 注:精确错误页面=500.html/400html 模糊页面=5xx.html/4xx.html ...
分类:编程语言   时间:2019-12-22 13:06:23    阅读次数:61
springboot2.0整合freemarker快速入门
[TOC] 是一个用Java开发的模板引擎 常用的java模板引擎还有哪些? 、`Freemarker Thymeleaf Velocity` 等。 1. 快速入门 1.1 创建工程 文件如下 1.2 编辑application.yml 1.3 创建模型类 在 的测试工程下创建模型类型用于测试 1. ...
分类:编程语言   时间:2019-12-20 20:56:16    阅读次数:94
SpringBoot开发准备工作,保存备用,
application.properties server.port=8080 spring.thymeleaf.prefix = classpath:/static/ spring.thymeleaf.suffix=.html spring.thymeleaf.mode=HTML spring.t ...
分类:编程语言   时间:2019-12-20 15:22:48    阅读次数:62
Thymeleaf入门与基础语法
1.简介 Thymeleaf 是用来开发Web和独立环境项目的现代服务器端Java模板引擎。 Thymeleaf的主要目标是为您的开发工作流程带来优雅的 自然模板 HTML。可以在直接浏览器中正确显示,并且可以作为静态原型,从而在开发团队中实现更强大的协作。 借助Spring Framework的模 ...
分类:其他好文   时间:2019-12-17 22:35:45    阅读次数:156
thymeleaf实现热部署
热部署可以在修改页面之后,不重新启动服务器也能查看修改效果。 1.导入依赖,我用的是gradle,使用maven的可以去https://mvnrepository.com/寻找对应的依赖 compile group: 'nekohtml', name: 'nekohtml', version: '1 ...
分类:其他好文   时间:2019-12-16 22:17:29    阅读次数:95
794条   上一页 1 ... 20 21 22 23 24 ... 80 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!