自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 idea Run DashBoard显示设置

1 , idea 设置 打开workspace.xml文件之后,找到component为RunDashboard的节点处,然后在component标签里添加 最后保存即可,保存完成之后立即自动弹出Run Dashboard窗口了2 ,

2020-06-30 16:38:25 207

转载 idea 配置 热部署

1 , 导入依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> <optional>true</op

2020-06-30 13:07:33 162

原创 springboot 配置全局异常捕获()页面跳转形式)

三种方式 1 , 页面跳转形式 2 , ajax 形式 3 , 统一返回异常处理的心事第一种 (页面跳转形式) @ControllerAdvice Spring 在3.2版本后面增加了一个ControllerAdvice注解样例:定义 Controller ; @Controller @RequestMapping("err") public class ErroController {

2020-06-22 10:50:29 956

原创 Thymeleaf 中 UR写法

1 , 正常URL <a href="" th:href="@{http://www.baidu.com}">网站地址</a>2 , URL带参数的写法 <a class="delete" th:href="@{/Category/{id}(id=${c.id})}">网站地址</a>

2020-06-20 20:38:24 179

原创 Thymeleaf 中 text 与 utext 区别

1 , th:text<span th:text="${user .desc}">abc</span> 结果 :内容是什么就展示什么2 th:utext<span th:utext="${user.desc}">abc</span> 结果 : 会解析成html 样例 : Controller User user = new User(;) user.setDesc("<font color='green'>

2020-06-20 20:31:32 757

原创 TspringBoot 中 Thymeleaf页面数据展示

1 , 第一种 th:value="${对象**.**属性}"<div > 用户姓名:<input th:value="${user.name}"> <br/> 用户年龄:<input th:value="${user.age}"/> <br/> 用户生日:<input th:value="${user.birthday}"/> <br/> 时间转换 用户生日:<input th:

2020-06-20 20:23:29 339

翻译 springboot 整合 Thymeleaf模板引擎

一 , Thymeleaf是Spring boot推荐使用的模版引擎,直接以html显示,前后端可以很好的分离th属性,常用th属性如下:1)th:text:文本替换;2)th:utext:支持html的文本替换。3)th:value:属性赋值 4)th:each:遍历循环元素5)th:if:判断条件,类似的还有th:unless,th:switch,th:case6)th:insert:代码块引入,类似的还有th:replace,th:include,常用于公共代码块提取的场景

2020-06-20 16:42:42 116

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除