07 2019 档案

摘要:目录 自定义错误页 CORS支持(前端跨域请求) 拦截器HandlerInterceptor 启动系统任务 springboot配置AOP 整合servlet、filter、listener 下图为本节内容 ​ 1、自定义错误页 springboot中默认错误是由BasicErrorControll 阅读全文
posted @ 2019-07-26 23:19 爱在惜缘前 阅读(262) 评论(0) 推荐(0)
摘要:目录 ​ springboot 整合web开发 返回json数据 静态资源访问 文件上传 全局异常 目录 ​ 1、返回json数据 springboot默认的是jackson-databind做为json处理器、也可以使用自定义转换器:gson、fastjson gson集成方式为:在pom文件中排 阅读全文
posted @ 2019-07-23 23:59 爱在惜缘前 阅读(889) 评论(0) 推荐(0)
摘要:由于这张比较简单,我画了个思维导图,这样大家可以很明白我们这一张具体内容是做什么。 代码git地址:[https://github.com/FadeHub/spring-boot-learn](https://github.com/FadeHub/spring-boot-learn) 阅读全文
posted @ 2019-07-16 00:25 爱在惜缘前 阅读(152) 评论(0) 推荐(0)
摘要:在springboot1.x系列中,其中连接redis服务器使用的是jedis,但是到了springboot2.x使用的是Lettuce。关于jedis跟lettuce的区别: Lettuce 和 Jedis 的定位都是Redis的client,所以他们当然可以直接连接redis server。 J 阅读全文
posted @ 2019-07-13 19:26 爱在惜缘前 阅读(1622) 评论(0) 推荐(0)
摘要:Provide an interface for creating families of related or dependent objects without specifying their concrete classes.(为创建一组相关或相互依赖的对象提供一个接口,而且无须指定它们的具 阅读全文
posted @ 2019-07-08 22:55 爱在惜缘前 阅读(131) 评论(0) 推荐(0)