springboot中,可以使用org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer类来统一的处理异常页面,使用方法如下: 1.添加异常页面: 2.自定义错误页面(实现EmbeddedServletContainerCustomizer接口) //@Configuration(todo:这里为什么加了注释无效,不加反而生效呢) public class ErrorPageConfig{ @Bean…
SpringBoot入门 使用SpringBoot + mysql + Jpa 快速搭建一个spring项目 Spring Boot 2 + Spring Data JPA + MySQL 8 簡單範例 https://matthung0807.blogspot.com/2019/05/spring-boot-2-spring-data-jpa-mysql-8.html 上述项目添加使用 redis redis 使用 http://blog.didispace.com/springbootred…