<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Spring Boot on 领风沐雨</title><link>https://blog.zdltech.com/tags/spring-boot/</link><description>Recent content in Spring Boot on 领风沐雨</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Wed, 12 Aug 2020 06:21:40 +0000</lastBuildDate><atom:link href="https://blog.zdltech.com/tags/spring-boot/index.xml" rel="self" type="application/rss+xml"/><item><title>Spring boot 自定义处理404 500等</title><link>https://blog.zdltech.com/posts/spring-boot-zi-ding-yi-chu-li404-500deng/</link><pubDate>Wed, 12 Aug 2020 06:21:40 +0000</pubDate><guid>https://blog.zdltech.com/posts/spring-boot-zi-ding-yi-chu-li404-500deng/</guid><description>## Spring boot 自定义处理404 500等 {#toc_0} &amp;gt; 有时候我们会遇到一些问题，需要我们自定义一些异常，例如404、403、502、500等，我们这里就说说Springboot 修改自定义这些。 ### 处理方式一 {#toc_1} 我们重写ErrorController接...</description></item><item><title>Spring boot 集成ElasticSearch</title><link>https://blog.zdltech.com/posts/spring-boot-ji-chengelasticsearch/</link><pubDate>Sun, 28 Jun 2020 06:04:34 +0000</pubDate><guid>https://blog.zdltech.com/posts/spring-boot-ji-chengelasticsearch/</guid><description>* [Spring boot 集成ElasticSearch][1] * [第一步Spring boot集成ELasticSearch][2] * [第二步Spring boot中配置ElasticSearch][3] * [第三步 创建操作的实体Bean（我创建的是UserItemBean）][4...</description></item><item><title>Spring boot 读取properties</title><link>https://blog.zdltech.com/posts/spring-boot-du-quproperties/</link><pubDate>Thu, 11 Jul 2019 03:36:38 +0000</pubDate><guid>https://blog.zdltech.com/posts/spring-boot-du-quproperties/</guid><description>\## Spring boot 读取properties &amp;gt; 在开发中我们需要通过属性文件配置常用属性，例如数据库相关、日志相关、测试相关等。 &amp;gt; &amp;gt; 1. 自定义properties文件获取属性 &amp;gt; 2. application.properties获取属性 \### 自定义properties文...</description></item><item><title>Spring boot 事务回滚</title><link>https://blog.zdltech.com/posts/spring-boot-%E4%BA%8B%E5%8A%A1%E5%9B%9E%E6%BB%9A/</link><pubDate>Thu, 20 Jun 2019 00:43:17 +0000</pubDate><guid>https://blog.zdltech.com/posts/spring-boot-%E4%BA%8B%E5%8A%A1%E5%9B%9E%E6%BB%9A/</guid><description>### {.wp-block-heading} 在Controller中添加 @Transactional 自己捕获异常之后事务不能回滚 原因： 默认spring事务只在发生未被捕获的 RuntimeException 时才回滚 spring aop 异常捕获原理：被拦截的方法需显式抛出异常，并不能...</description></item><item><title>Spring Boot 过滤器和拦截器总结</title><link>https://blog.zdltech.com/posts/spring-boot-%E8%BF%87%E6%BB%A4%E5%99%A8%E5%92%8C%E6%8B%A6%E6%88%AA%E5%99%A8%E6%80%BB%E7%BB%93/</link><pubDate>Fri, 24 May 2019 16:04:00 +0000</pubDate><guid>https://blog.zdltech.com/posts/spring-boot-%E8%BF%87%E6%BB%A4%E5%99%A8%E5%92%8C%E6%8B%A6%E6%88%AA%E5%99%A8%E6%80%BB%E7%BB%93/</guid><description>!\[请输入图片描述\]\[1\]### 拦截器与过滤器的区别 ![](https://www.zdltech.com/usr/uploads/2019/05/2120521969.png) 过滤器和拦截器触发时机不一样，过滤器是在请求进入容器后，但请求进入servlet之前进行预处理的。请求结束返...</description></item></channel></rss>