摘要:框架使用:springboot 使用注解 @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone = "GMT+8") ok
阅读全文
07 2020 档案
摘要:框架使用:springboot 使用注解 @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone = "GMT+8") ok
阅读全文
摘要:我这里是统一返回json格式的 @ControllerAdvice public class GlobalExceptionHandler { @ExceptionHandler(value = GovCommException.class) @ResponseBody public Result
阅读全文
摘要:引入依赖 <!-- mybatis的分页插件 --> <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-boot-starter</artifactId> <version>1.2.
阅读全文
摘要:非springboot 需要手动引入依赖 <dependency> <groupId>com.google.code.gson</groupId> <artifactId>gson</artifactId> </dependency> 方法一、实体上使用 @JsonInclude(JsonInclu
阅读全文
|