
spring boot
韩阳光的个人博客
实践!实践!实践!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
SpringBoot实战--最小化示例程序
在这个系列文章中主角:SpringBoot配角:各种框架、组件、中间件场景:实际中可能遇到的各种场景(电商网站、CMS、微服务。。。)故事线:主要是Spring集成各种框架、组件、中间件,辅助加上场景描述先从SpringBoot官网示例开始持续更新中~~001 构建第一个Rest服务https://spring.io/guides/gs/rest-service/...原创 2019-04-12 10:53:18 · 622 阅读 · 0 评论 -
015 创建批次服务
原文https://spring.io/guides/gs/batch-processing/直译业务数据通常,您的客户或业务分析师会提供电子表格。在这种情况下,你弥补了。src/main/resources/sample-data.csvJill,DoeJoe,DoeJustin,DoeJane,DoeJohn,Doe此电子表格包含每行的名字和姓氏,以逗号分隔。正如您将看...翻译 2019-04-17 16:25:06 · 345 阅读 · 1 评论 -
014 使用JMS处理消息
原文https://spring.io/guides/gs/messaging-jms/直译创建一个消息接收器Spring提供了向任何POJO发布消息的方法。在本指南中,您将了解如何通过JMS消息代理发送消息。首先,让我们创建一个非常简单的POJO,它体现了电子邮件的细节。付款说明,我们不会发送电子邮件。我们只是将详细信息从一个地方发送到另一个地方,以便在邮件中发送什么内容。src/m...翻译 2019-04-17 15:07:53 · 523 阅读 · 1 评论 -
013 使用SpringBootActuator 构建Restful web服务
原文https://spring.io/guides/gs/actuator-service/直译运行空服务对于初学者来说,这是一个空的Spring MVC应用程序。src/main/java/hello/HelloWorldApplication.javapackage hello;import org.springframework.boot.SpringApplication...翻译 2019-04-17 14:47:39 · 400 阅读 · 0 评论 -
012验证表单输入
原文https://spring.io/guides/gs/validating-form-input/直译创建一个PersonForm对象该应用程序涉及验证用户的姓名和年龄,因此首先您需要创建一个类来支持表单以创建人员。src/main/java/hello/PersonForm.javapackage hello;import javax.validation.constrai...翻译 2019-04-17 14:12:15 · 260 阅读 · 0 评论 -
037 使用REST访问Neo4j数据
原文https://spring.io/guides/gs/accessing-neo4j-data-rest/直译启动Neo4j服务器在构建此应用程序之前,您需要设置Neo4j服务器。Neo4j有一个可以免费安装的开源服务器:在Mac上,只需输入:$ brew install neo4j有关其他选项,请访问https://neo4j.com/download/community...翻译 2019-04-17 13:51:55 · 467 阅读 · 0 评论 -
011 使用Neo4j访问数据
原文https://spring.io/guides/gs/accessing-data-neo4j/直译启动Neo4j服务器在构建此应用程序之前,您需要设置Neo4j服务器。Neo4j有一个可以免费安装的开源服务器:在Mac上,只需输入:$ brew install neo4j有关其他选项,请访问https://neo4j.com/download/community-edit...翻译 2019-04-17 11:30:01 · 353 阅读 · 0 评论 -
010 使用RabbitMQ处理消息
原文https://spring.io/guides/gs/messaging-rabbitmq/直译设置RabbitMQ 代理在构建消息传递应用程序之前,需要设置将处理接收和发送消息的服务器。RabbitMQ是一个AMQP服务器。该服务器可从http://www.rabbitmq.com/download.html免费获得。您可以手动下载,或者如果您使用的是带自制软件的Mac:bre...翻译 2019-04-17 10:31:08 · 187 阅读 · 0 评论 -
009 使用Redis处理消息
原文https://spring.io/guides/gs/messaging-redis/直译启动Redis服务器在构建消息传递应用程序之前,需要设置将处理接收和发送消息的服务器。Redis是一个开源的,BSD许可的键值数据存储,它还附带了一个消息传递系统。该服务器可在http://redis.io/download免费获得。您可以手动下载,或者如果您使用带自制程序的Mac:brew...翻译 2019-04-16 18:17:57 · 177 阅读 · 0 评论 -
008 使用LDAP认证用户
原文直译创建一个简单的Web控制器在Spring中,REST端点只是Spring MVC控制器。以下Spring MVC控制器GET /通过返回一条简单消息来处理请求:src/main/java/hello/HomeController.javapackage hello;import org.springframework.web.bind.annotation.GetMappin...翻译 2019-04-16 16:06:27 · 263 阅读 · 0 评论 -
007 上传文件
原文https://spring.io/guides/gs/uploading-files/直译创建一个Application类要启动Spring Boot MVC应用程序,我们首先需要一个启动器; 在这里,spring-boot-starter-thymeleaf并spring-boot-starter-web已添加为依赖项。要使用Servlet容器上载文件,您需要注册一个Multipa...翻译 2019-04-16 15:55:04 · 254 阅读 · 0 评论 -
006 使用JDBC和Spring访问关系型数据库
原文https://spring.io/guides/gs/relational-data-access/直译创建一个Customer对象您将在下面使用的简单数据访问逻辑管理客户的名字和姓氏。要在应用程序级别表示此数据,请创建一个Customer类。src/main/java/hello/Customer.javapackage hello;public class Custome...翻译 2019-04-16 15:43:23 · 214 阅读 · 0 评论 -
003 消费一个RESTful web服务
原文原创 2019-04-12 12:12:39 · 186 阅读 · 0 评论 -
044 使用IntelliJ IDEA 导入示例工程
原文原创 2019-04-12 11:50:24 · 295 阅读 · 0 评论 -
002 定时任务
原文原创 2019-04-12 11:47:19 · 204 阅读 · 0 评论 -
001构建第一个Rest服务
原文见这里TBDgit仓库见这里原创 2019-04-12 10:54:41 · 223 阅读 · 0 评论 -
016 防护web应用
原文https://spring.io/guides/gs/securing-web/直译创建不安全的Web应用程序在将安全性应用于Web应用程序之前,您需要一个Web应用程序来保护安全。本节中的步骤将指导您创建一个非常简单的Web应用程序。然后在下一节中使用Spring Security保护它。Web应用程序包括两个简单视图:主页和“Hello World”页面。主页在以下Thymel...翻译 2019-04-17 16:30:15 · 304 阅读 · 1 评论