![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java基础
文章平均质量分 63
G朕跪下biubiubiu
嗯?,哦,嗯!
展开
-
字符串格式化
字符串格式化日期格式化将时间戳格式化为yyyy-MM-dd使用SimpleDateFormat类SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");String ret = format.format(new Date());使用String.format()方法String ret = Str...原创 2018-07-11 20:57:04 · 213 阅读 · 0 评论 -
Spring Boot
Spring Boot项目中设置Content-Type的方法一种比较简单优雅的方法是在注解@RequestMapping中添加produces参数即可@RestController@RequestMapping("/api")public class ApiController {原创 2018-06-22 18:39:01 · 1203 阅读 · 0 评论