摘要: FreeMarker 日期转换失败 Can't convert the date-like value to string because it isn't known if it's a date (no time part), time or date-time value. The blame 阅读全文
posted @ 2021-03-10 17:35 Godwin_Zhang 阅读(285) 评论(1) 推荐(1) 编辑
摘要: freemarker404解决方案 1,依赖问题 <!-- 引入freeMarker的依赖包. --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-freemarke 阅读全文
posted @ 2021-03-10 16:34 Godwin_Zhang 阅读(534) 评论(0) 推荐(0) 编辑
摘要: @RequestParam,@PathParam,@PathVariable等注解区别 @RequestParam 和 @PathVariable 注解是用于从request中接收请求的,两个都可以接收参数,关键点不同的是@RequestParam 是从request里面拿取值,而 @PathVar 阅读全文
posted @ 2021-03-10 14:02 Godwin_Zhang 阅读(25) 评论(0) 推荐(0) 编辑
摘要: @RestController和@Controller区别 @RestController注解相当于@ResponseBody + @Controller合在一起的作用。 RestController使用的效果是将方法返回的对象直接在浏览器上展示成json格式,而如果单单使用@Controller会 阅读全文
posted @ 2021-03-10 13:55 Godwin_Zhang 阅读(563) 评论(0) 推荐(0) 编辑
摘要: 通过code去获取他的枚举 在运行页面的时候发现,页面的订单状态和支付状态显示的是数字符号,我们要让他显示为文字。 解决方案: 1.在模板中进行判断,我们不采取这种方式 2.在OrderStatusEnum(订单状态)和PayStatusEnum(支付状态)中设置遍历 //订单状态 public s 阅读全文
posted @ 2021-03-10 10:38 Godwin_Zhang 阅读(726) 评论(0) 推荐(0) 编辑