SpringBoot JSON格式化设置

SpringBoot将Jackson用作默认的JSON工具,我们可以设置全局格式application.propertiesspring.jackson.date-format=yyyy-MM-dd HH:mm:ssapplication.ymlspring: jackson: date-format: yyyy-MM-dd HH:mm:ss但是设置只能使用它格式化Java类型 jav

- 阅读全文 -

springboot 常用默认配置

springboot 常用默认配置pom.xml <parent>; <groupId>;org.springframework.boot</groupId>; <artifactId>;spring-boot-starter-parent</artifactId>; <vers

- 阅读全文 -

SpringBoot 全局异常处理

SpringBoot 全局异常处理package cn.bookmanager.config; import org.apache.shiro.authc.AuthenticationException; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.Contr

- 阅读全文 -

SpringBoot 整合 Shiro和Log4j2

SpringBoot 整合 Shiro和Log4j2引入POM.xml(最新依赖 https://mvnrepository.com/ )shiro <dependency> <groupId>org.apache.shiro</groupId> <artifactId>shiro-spr

- 阅读全文 -