Easter79 Easter79
4年前
SpringBoot学习之路:06.Spring Boot替换默认的Jackson
    SpringBoot和Springmvc都可以返回接送数据,SpringBoot默认是使用Jackson解析json数据的,个人觉得阿里的Fastjson性能更好点,API使用更方便,于是将SpringBoot默认的Jackson替换成阿里的Fastjson。一.配置类注入的方式packagecom.maxbill.core.
Stella981 Stella981
4年前
Spring Boot与Kotlin 整合全文搜索引擎Elasticsearch
Elasticsearch在全文搜索里面基本是无敌的,在大数据里面也很有建树,完全可以当nosql(本来也是nosql)使用。这篇文章简单介绍SpringBoot使用Kotlin语言连接操作Elasticsearch。但是不会做很详细的介绍,如果要深入了解Elasticsearch在Java/kotlin中的使用,请参考我之前编写的《Elastic
Stella981 Stella981
4年前
Spring Cloud构建微服务架构:Hystrix监控面板【Dalston版】
前言在上一篇《服务容错保护(hystrix断路器)》(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzAxODcyNjEzNQ%3D%3D%26mid%3D2247484021%26idx%3D1%26sn%3D4547
Easter79 Easter79
4年前
SpringBoot学习之路:10.Spring Boot中添加Listener应用
   前面都说到了springboot中应用servlet和filter,本文继续说springboot应用监听器Listener,大体上是和之前差不多的应用。一.HttpSessionListenerpackagecom.maxbill.core.webbox.listener;/\\
Stella981 Stella981
4年前
Spring Cloud Greenwich 正式发布,Hystrix 即将寿终正寝!
!(https://oscimg.oschina.net/oscnet/96f890284887490590b4aea111599779.jpg)SpringCloudGreenwich正式版在01/23/2019这天正式发布了,下面我们来看下有哪些更新内容。生命周期终止提醒SpringClou
Stella981 Stella981
4年前
SpringBoot学习之路:10.Spring Boot中添加Listener应用
   前面都说到了springboot中应用servlet和filter,本文继续说springboot应用监听器Listener,大体上是和之前差不多的应用。一.HttpSessionListenerpackagecom.maxbill.core.webbox.listener;/\\
Easter79 Easter79
4年前
SpringBoot学习之路:08.Spring Boot中添加Servlet应用
   在web应用中Servlet的应用比较多,最开始的web应用就是全部以servlet来实现的,后来出现了Struts、Struts2,到今天应用非常广泛的SpringMvc,这些webmvc框架比原来的servlet功能更加强大,开发效率而更高,但是实际上这些框架底层都是servlet在做支撑。今天我们学习如何在SpringBoot添加Servl
Stella981 Stella981
4年前
Spring Boot 实现ErrorController接口处理404、500等错误页面
在项目中我们遇到404找不到的错误、或者500服务器错误都需要配置相应的页面给用户一个友好的提示,而在SpringBoot中我们需要如何设置。我们需要实现ErrorController接口,重写handleError方法。packagecom.ciyou.edu.controllerimportorg.springf
Stella981 Stella981
4年前
Spring Security修炼手册(三)————Security个性化认证流程
    在第二章节,我们主要学习了Security的自定义认证的实现和认证的流程,同时也存在一些问题,比如我们想在用户认证成功或失败后记录日志等相关操作,我们怎么办呢?别担心,Security已经为我们想好了,我们只需要实现其提供的接口并配置即可。一、自定义登录成功处理    Authenticatio
Stella981 Stella981
4年前
Spring Boot 2.x基础教程:实现文件上传
文件上传的功能实现是我们做Web应用时候最为常见的应用场景,比如:实现头像的上传,Excel文件数据的导入等功能,都需要我们先实现文件的上传,然后再做图片的裁剪,excel数据的解析入库等后续操作。今天通过这篇文章,我们就来一起学习一下如何在SpringBoot中实现文件的上传。动手试试第一步:创建一个基础的SpringBo