在這個系列文章中
主角:SpringBoot
配角:各種框架、組件、中間件
場景:實際中可能遇到的各種場景(電商網站、CMS、微服務。。。)
故事線:主要是Spring集成各種框架、組件、中間件,輔助加上場景描述
先從SpringBoot官網示例開始
持續更新中~~
Building a RESTful Web Service
Learn how to create a RESTful web service with Spring.
Scheduling Tasks
Learn how to schedule tasks with Spring.
Consuming a RESTful Web Service
Learn how to retrieve web page data with Spring's RestTemplate.
004 使用Gradle構建Java工程
Building Java Projects with Gradle
Learn how to build a Java project with Gradle.
005 使用Maven構建工程
Building Java Projects with Maven
Learn how to build a Java project with Maven.
Accessing Relational Data using JDBC with Spring
Learn how to access relational data with Spring.
Uploading Files
Learn how to build a Spring application that accepts multi-part file uploads.
Authenticating a User with LDAP
Learn how to secure an application with LDAP.
Messaging with Redis
Learn how to use Redis as a message broker.
Messaging with RabbitMQ
Learn how to create a simple publish-and-subscribe application with Spring and RabbitMQ.
Accessing Data with Neo4j
Learn how to persist objects and relationships in Neo4j's NoSQL data store.
Validating Form Input
Learn how to perform form validation with Spring.
013 使用SpringBootActuator 構建Restful web服務
Building a RESTful Web Service with Spring Boot Actuator
Learn how to create a RESTful Web service with Spring Boot Actuator.
Messaging with JMS
Learn how to publish and subscribe to messages using a JMS broker.
Creating a Batch Service
Learn how to create a basic batch-driven solution.
Securing a Web Application
Learn how to protect your web application with Spring Security.
017 構建一個多媒體驅動的Restful web服務
Building a Hypermedia-Driven RESTful Web Service
Learn how to create a hypermedia-driven RESTful Web service with Spring.
018 訪問Pivotal GemFire中的數據
Accessing Data in Pivotal GemFire
Learn how to build an application using Gemfire's data fabric.
019 集成數據
Integrating Data
Learn how to build an application that uses Spring Integration to fetch data, process it, and write it to a file.
020 使用Pivotal GemFire緩存數據
Caching Data with Pivotal GemFire
Learn how to cache data in GemFire.
021 管理事務
Managing Transactions
Learn how to wrap key parts of code with transactions.
022 使用JPA訪問數據
Accessing Data with JPA
Learn how to work with JPA data persistence using Spring Data JPA.
023 使用MongoDB訪問數據
Accessing Data with MongoDB
Learn how to persist data in MongoDB.
024 使用SpringMVC展示web頁面
Serving Web Content with Spring MVC
Learn how to create a web page with Spring MVC and Thymeleaf.
025 把SpringBoot Jar應用轉爲War
Converting a Spring Boot JAR Application to a WAR
Learn how to convert your Spring Boot JAR-based application to a WAR file.
026 創建異步方法
Creating Asynchronous Methods
Learn how to create asynchronous service methods.
027 使用Spring處理頁面表單提交
Handling Form Submission
Learn how to create and submit a web form with Spring.
028 使用Springboot構建應用
Building an Application with Spring Boot
Learn how to build an application with minimal configuration.
029 使用WebSocket構建一個交互式頁面應用
Using WebSocket to build an interactive web application
Learn how to the send and receive messages between a browser and the server over a WebSocket
030 使用STS導入示例工程
Working a Getting Started guide with STS
Learn how to import a Getting Started guide with Spring Tool Suite (STS).
031 使用AngularJS消費RESTful服務
Consuming a RESTful Web Service with AngularJS
Learn how to retrieve web page data with AngularJS.
032 使用rest.js消費RESTful服務
Consuming a RESTful Web Service with rest.js
Learn how to retrieve web page data with rest.js.
033 使用jQuery消費RESTful服務
Consuming a RESTful Web Service with jQuery
Learn how to retrieve web page data with jQuery.
034 RESTful web服務支持跨域請求
Enabling Cross Origin Requests for a RESTful Web Service
Learn how to create a RESTful web service with Spring that support Cross-Origin Resource Sharing (CORS).
035 消費一個SOAP協議的web服務
Consuming a SOAP web service
Learn how to create a client that consumes a WSDL-based service
036 使用REST訪問JPA數據
Accessing JPA Data with REST
Learn how to work with RESTful, hypermedia-based data persistence using Spring Data REST.
Accessing Neo4j Data with REST
Learn how to work with RESTful, hypermedia-based data persistence using Spring Data REST.
038 使用REST訪問MongoDB數據
Accessing MongoDB Data with REST
Learn how to work with RESTful, hypermedia-based data persistence using Spring Data REST.
039 使用REST訪問 Pivotal GemFire數據
Accessing Data in Pivotal GemFire with REST
Learn how to work with RESTful, hypermedia-based data persistence using Spring Data REST.
040 創建一個SOAP web服務
Producing a SOAP web service
Learn how to create a SOAP-based web service with Spring.
041 使用spring 緩存數據
Caching Data with Spring
Learn how to cache data in memory with Spring
042 從STS部署Spring應用到 Cloud Foundry
Deploying to Cloud Foundry from STS
Learn how to deploy a Spring application to Cloud Foundry from STS
043 根據Springboot容器創建Docker容器
Spring Boot with Docker
Learn how to create a Docker container from a Spring Boot application with Maven or Gradle
Working a Getting Started guide with IntelliJ IDEA
Learn how to work a Getting Started guide with IntelliJ IDEA.
045 使用Vaadin 創建CRUD界面
Creating CRUD UI with Vaadin
Use Vaadin and Spring Data JPA to build a dynamic UI
046 使用Eureka進行服務註冊與發現
Service Registration and Discovery
Learn how to register and find services with Eureka
047 配置中心
Centralized Configuration
Learn how to manage application settings from an external, centralized source
048 使用Netflix Zuul進行請求路由和過濾
Routing and Filtering
Learn how to route and filter requests to a microservice using Netflix Zuul
049 使用Hystrix熔斷
Circuit Breaker
Learn how to degrade gracefully services using Hystrix
050 使用Ribbon和Spring Cloud進行客戶端側的負載均衡
Client Side Load Balancing with Ribbon and Spring Cloud
Dynamically support services coming up and going down without interrupting the client
051 測試Web層
Testing the Web Layer
Learn how to test Spring Boot applications and MVC controllers.
052 訪問Mysql
Accessing data with MySQL
Learn how to set up and manage user accounts on MySQL and how to configure Spring Boot to connect to it at runtime.
053 創建多模塊的工程
Creating a Multi Module Project
Learn how to build a library and package it for consumption in a Spring Boot application
054 使用Restdocs創建API文檔
Creating API Documentation with Restdocs
Learn how to generate documentation for HTTP endpoints using Spring Restdocs
055 使用Google Cloud Pub/Sub處理消息
Messaging with Google Cloud Pub/Sub
Learn how to exchange messages using Spring Integration channel adapters and Google Cloud Pub/Sub
056 構建一個響應式RESTful web服務
Building a Reactive RESTful Web Service
Learn how to create a RESTful web service with Reactive Spring.
057 瞭解如何使用契約存根並從另一個Spring應用程序使用該契約
Consumer Driven Contracts
Learn how to with contract stubs and consuming that contract from another Spring application
058 訪問Vault
Accessing Vault
Learn how to use Spring Vault to load secrets from HashiCorp Vault
059 Vault 配置
Vault Configuration
Learn how to store and retrieve application configuration details in HashiCorp Vault
060 響應式地訪問Redis數據
Accessing Data Reactively with Redis
Learn how to reactively interface with Redis and Spring Data
061 發佈Springboot應用到Azure
Deploying a Spring Boot app to Azure
Learn how to deploy a Spring Boot app to Azure.
062 構建網關
Building a Gateway
Learn how to configure a gateway