<?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>Springboot on 极客老墨</title>
    <link>https://blog.hankmo.com/tags/springboot/</link>
    <description>Recent content in Springboot on 极客老墨</description>
    <generator>Hugo -- 0.138.0</generator>
    <language>zh-cn</language>
    <lastBuildDate>Tue, 12 Nov 2019 18:13:24 +0000</lastBuildDate>
    <atom:link href="https://blog.hankmo.com/tags/springboot/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>使用Springboot开发websocket程序(四)——使用RabbitMQ作为STOMP消息代理</title>
      <link>https://blog.hankmo.com/posts/tech/springboot-websocket-chatroom-with-rabbitmq/</link>
      <pubDate>Tue, 12 Nov 2019 18:13:24 +0000</pubDate>
      <guid>https://blog.hankmo.com/posts/tech/springboot-websocket-chatroom-with-rabbitmq/</guid>
      <description>基于内存的stomp消息代理能够满足单应用需求，引入外部stomp消息代理解决了多应用之间的websocket消息传递需求。不同的消息中间件，都会按照stomp规范定义自身的destination支持。开发者需要明白两个点：订阅者订阅了什么destination，发送者发送到什么destination，这两个地址的匹配规则是什么。</description>
    </item>
    <item>
      <title>使用Springboot开发websocket程序(三)——基于子协议STOMP的web聊天室</title>
      <link>https://blog.hankmo.com/posts/tech/springboot-websocket-chatroom-with-stomp/</link>
      <pubDate>Sat, 02 Nov 2019 14:36:19 +0000</pubDate>
      <guid>https://blog.hankmo.com/posts/tech/springboot-websocket-chatroom-with-stomp/</guid>
      <description>WebSocket RFC定义了子协议的使用规范。在握手阶段，客户端和服务端使用Sec-WebSocket-Protocol请求头来通知彼此使用子协议，即更高级的、应用级的协议。当然，也可以不使用子协议，但是客户端和服务端仍然需要定义消息的格式。使用更规范的通用消息协议，更能让应用程序开发和维护变得简单。STOMP就是这样的一个消息协议，Spring框架提供了对其的支持。</description>
    </item>
    <item>
      <title>Spring boot集成quartz并实现任务调度</title>
      <link>https://blog.hankmo.com/posts/tech/spring-boot-quartz-guide/</link>
      <pubDate>Tue, 22 Jan 2019 16:13:13 +0000</pubDate>
      <guid>https://blog.hankmo.com/posts/tech/spring-boot-quartz-guide/</guid>
      <description>spring boot与quartz集成，自定义JobFactory实现自动依赖注入，进行数据持久化。</description>
    </item>
    <item>
      <title>Spring Boot参数验证（下）——Bean Validation在Web中的应用</title>
      <link>https://blog.hankmo.com/posts/tech/spring-boot-validation-2/</link>
      <pubDate>Fri, 12 Oct 2018 16:52:20 +0000</pubDate>
      <guid>https://blog.hankmo.com/posts/tech/spring-boot-validation-2/</guid>
      <description>Spring Boot的Web Starter已经加入了Bean Validation(JSR303)的依赖，可以直接使用。在使用时，只需在需要校验的方法上加上@Valid或者@Validated注解即可，如果需要编码自定义校验结果，则在校验的参数后加上BindingResult参数，注意对应关系；否则，为了模块化需要，也可以屏蔽校验失败业务逻辑，编写全局校验器，校验失败自动返回JSON校验结果即可。</description>
    </item>
    <item>
      <title>Spring boot全局异常处理和自定义异常页面</title>
      <link>https://blog.hankmo.com/posts/tech/spring-boot-global-exception-process/</link>
      <pubDate>Wed, 10 Oct 2018 17:39:20 +0000</pubDate>
      <guid>https://blog.hankmo.com/posts/tech/spring-boot-global-exception-process/</guid>
      <description>Spring boot提供了默认的异常处理机制，但是难以满足业务需要，一般需要编码来实现自己的业务处理机制。可以使用ContrllerAdvisor和ExceptionHandler注解来定义异常处理逻辑，要自定义异常页面，只需定义页面并放到error目录下即可。</description>
    </item>
    <item>
      <title>Spring Boot JPA使用详解</title>
      <link>https://blog.hankmo.com/posts/tech/spring-boot-jpa-guide/</link>
      <pubDate>Wed, 27 Jun 2018 18:08:47 +0000</pubDate>
      <guid>https://blog.hankmo.com/posts/tech/spring-boot-jpa-guide/</guid>
      <description>JPA是Java Persistence API的简称，中文名Java持久层API，是JDK 5.0注解或XML描述对象－关系表的映射关系，并将运行期的实体对象持久化到数据库中。本文介绍了Spring boot JPA的用法，包括核心接口和类介绍，查询创建，投影、分页查询、条件查询用法等。</description>
    </item>
    <item>
      <title>SpringBoot-工程结构、配置文件以及打包</title>
      <link>https://blog.hankmo.com/posts/tech/springboot-project-overview/</link>
      <pubDate>Thu, 07 Jun 2018 17:43:26 +0000</pubDate>
      <guid>https://blog.hankmo.com/posts/tech/springboot-project-overview/</guid>
      <description>Spring Boot默认以jar方式来打包运行程序，与传统war不同的是，Spring Boot规定了web项目的配置文件、静态资源和模板存放位置，同时也提供了可执行jar包的目录规范和打包插件。通常，我们不需要更改Spring Boot的默认配置，如果有特殊需求，同样可以简单的修改application.properties配置项来实现自定义，例如自定义日志、自定义参数、随机参数、自定义WEB文件存放目录等。</description>
    </item>
    <item>
      <title>Spring Boot之基础入门</title>
      <link>https://blog.hankmo.com/posts/tech/spring-boot-intro/</link>
      <pubDate>Tue, 22 May 2018 18:56:09 +0000</pubDate>
      <guid>https://blog.hankmo.com/posts/tech/spring-boot-intro/</guid>
      <description>Spring Boot是Spring的开源项目，其目的是让开发者可以简单、快速地使用Spring框架创建生产级的应用，其目的不是为了替换Spring，而是简化Spring的使用。Spring Boot可以看做是对Spring框架的二次封装，不过，在封装的同时也还提供了许多高级功能。</description>
    </item>
  </channel>
</rss>
