摘要:
resstFul服务文件上传下载 上传 在测试类中使用MocekMvc伪造上传文件请求 @RunWith(SpringRunner.class) @SpringBootTest(classes = DemoApplication.class) public class UserControllerT 阅读全文
摘要:
SpringBoot 拦截RestFul 服务 使用拦截器 使用@Component注解并继承HandlerInterceptor接口,拦截的controller类中的方法 @Component public class CustomInterceptor implements HandlerInt 阅读全文
摘要:
SringBoot 异常处理 Spring Boot 中默认的错误处理机制 spring boot 应用默认对浏览器请求和Http请求错误处理不同方法 spring boot 默认异常处理类 @Controller @RequestMapping("${server.error.path:${err 阅读全文
摘要:
springBoot核心技术概览 核心特性 组件自动装备(webMVC, web Flux,JDBC等) 激活: @EnableAutoConfiguration 配置: /META-INF/spring.factories 实现: XXXAutoConfiguration 嵌入式Web容器 Web 阅读全文