271 lines
9.5 KiB
HTML
271 lines
9.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]-->
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="generator" content="Asciidoctor 1.5.7.1">
|
|
<title>Features</title>
|
|
<link rel="stylesheet" href="css/spring.css">
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
|
|
|
<style>
|
|
.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.switch {
|
|
border-width: 1px 1px 0 1px;
|
|
border-style: solid;
|
|
border-color: #7a2518;
|
|
display: inline-block;
|
|
}
|
|
|
|
.switch--item {
|
|
padding: 10px;
|
|
background-color: #ffffff;
|
|
color: #7a2518;
|
|
display: inline-block;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.switch--item:not(:first-child) {
|
|
border-width: 0 0 0 1px;
|
|
border-style: solid;
|
|
border-color: #7a2518;
|
|
}
|
|
|
|
.switch--item.selected {
|
|
background-color: #7a2519;
|
|
color: #ffffff;
|
|
}
|
|
</style>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/zepto/1.2.0/zepto.min.js"></script>
|
|
<script type="text/javascript">
|
|
function addBlockSwitches() {
|
|
$('.primary').each(function() {
|
|
primary = $(this);
|
|
createSwitchItem(primary, createBlockSwitch(primary)).item.addClass("selected");
|
|
primary.children('.title').remove();
|
|
});
|
|
$('.secondary').each(function(idx, node) {
|
|
secondary = $(node);
|
|
primary = findPrimary(secondary);
|
|
switchItem = createSwitchItem(secondary, primary.children('.switch'));
|
|
switchItem.content.addClass('hidden');
|
|
findPrimary(secondary).append(switchItem.content);
|
|
secondary.remove();
|
|
});
|
|
}
|
|
|
|
function createBlockSwitch(primary) {
|
|
blockSwitch = $('<div class="switch"></div>');
|
|
primary.prepend(blockSwitch);
|
|
return blockSwitch;
|
|
}
|
|
|
|
function findPrimary(secondary) {
|
|
candidate = secondary.prev();
|
|
while (!candidate.is('.primary')) {
|
|
candidate = candidate.prev();
|
|
}
|
|
return candidate;
|
|
}
|
|
|
|
function createSwitchItem(block, blockSwitch) {
|
|
blockName = block.children('.title').text();
|
|
content = block.children('.content').first().append(block.next('.colist'));
|
|
item = $('<div class="switch--item">' + blockName + '</div>');
|
|
item.on('click', '', content, function(e) {
|
|
$(this).addClass('selected');
|
|
$(this).siblings().removeClass('selected');
|
|
e.data.siblings('.content').addClass('hidden');
|
|
e.data.removeClass('hidden');
|
|
});
|
|
blockSwitch.append(item);
|
|
return {'item': item, 'content': content};
|
|
}
|
|
|
|
$(addBlockSwitches);
|
|
</script>
|
|
|
|
</head>
|
|
<body class="book toc2 toc-left">
|
|
<div id="header">
|
|
<div id="toc" class="toc2">
|
|
<div id="toctitle">Table of Contents</div>
|
|
<ul class="sectlevel1">
|
|
<li><a href="#_features">Features</a></li>
|
|
<li><a href="#_spring_initializr">Spring Initializr</a>
|
|
<ul class="sectlevel2">
|
|
<li><a href="#_gcp_support">GCP Support</a></li>
|
|
<li><a href="#_gcp_messaging">GCP Messaging</a></li>
|
|
<li><a href="#_gcp_storage">GCP Storage</a></li>
|
|
</ul>
|
|
</li>
|
|
<li><a href="#_code_samples">Code Samples</a></li>
|
|
<li><a href="#_code_challenges">Code Challenges</a></li>
|
|
<li><a href="#_getting_started_guides">Getting Started Guides</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div id="content">
|
|
<div id="preamble">
|
|
<div class="sectionbody">
|
|
<div class="paragraph">
|
|
<p>The Spring Cloud GCP project makes the Spring Framework a first-class citizen of Google Cloud Platform (GCP).</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="sect1">
|
|
<h2 id="_features"><a class="link" href="#_features">Features</a></h2>
|
|
<div class="sectionbody">
|
|
<div class="paragraph">
|
|
<p>The Spring Cloud GCP project offers the following features:</p>
|
|
</div>
|
|
<div class="ulist">
|
|
<ul>
|
|
<li>
|
|
<p>Spring Cloud GCP Pub/Sub, including Spring Integration Channel Adapters</p>
|
|
</li>
|
|
<li>
|
|
<p>Spring Cloud GCP Pub/Sub Stream Binder</p>
|
|
</li>
|
|
<li>
|
|
<p>Spring Resource Abstraction for Google Cloud Storage, including Spring Integration Channel Adapters</p>
|
|
</li>
|
|
<li>
|
|
<p>Spring Data Cloud SQL</p>
|
|
</li>
|
|
<li>
|
|
<p>Spring Data Cloud Spanner</p>
|
|
</li>
|
|
<li>
|
|
<p>Spring Data Cloud Datastore</p>
|
|
</li>
|
|
<li>
|
|
<p>Google Cloud Vision API Template</p>
|
|
</li>
|
|
<li>
|
|
<p>Google Cloud Stackdriver Logging & Tracing</p>
|
|
</li>
|
|
<li>
|
|
<p>Google Cloud Config (Beta)</p>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="sect1">
|
|
<h2 id="_spring_initializr"><a class="link" href="#_spring_initializr">Spring Initializr</a></h2>
|
|
<div class="sectionbody">
|
|
<div class="paragraph">
|
|
<p>There are three entries in <a href="http://start.spring.io/">Spring Initializr</a> for Spring Cloud GCP.</p>
|
|
</div>
|
|
<div class="sect2">
|
|
<h3 id="_gcp_support"><a class="link" href="#_gcp_support">GCP Support</a></h3>
|
|
<div class="paragraph">
|
|
<p>The GCP Support entry contains auto-configuration support for every Spring Cloud GCP integration.
|
|
Most of the auto-configuration code is only enabled if other dependencies are added to the classpath.</p>
|
|
</div>
|
|
<table class="tableblock frame-all grid-all stretch">
|
|
<colgroup>
|
|
<col style="width: 50%;">
|
|
<col style="width: 50%;">
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<th class="tableblock halign-left valign-top">Spring Cloud GCP Starter</th>
|
|
<th class="tableblock halign-left valign-top">Required dependencies</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td class="tableblock halign-left valign-top"><p class="tableblock">Config</p></td>
|
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>org.springframework.cloud:spring-cloud-gcp-starter-config</code></p></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tableblock halign-left valign-top"><p class="tableblock">Cloud Spanner</p></td>
|
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>org.springframework.cloud:spring-cloud-gcp-starter-data-spanner</code></p></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tableblock halign-left valign-top"><p class="tableblock">Cloud Datastore</p></td>
|
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>org.springframework.cloud:spring-cloud-gcp-starter-data-datastore</code></p></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tableblock halign-left valign-top"><p class="tableblock">Logging</p></td>
|
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>org.springframework.cloud:spring-cloud-gcp-starter-logging</code></p></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tableblock halign-left valign-top"><p class="tableblock">SQL - MySql</p></td>
|
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>org.springframework.cloud:spring-cloud-gcp-starter-sql-mysql</code></p></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tableblock halign-left valign-top"><p class="tableblock">SQL - PostgreSQL</p></td>
|
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>org.springframework.cloud:spring-cloud-gcp-starter-sql-postgres</code></p></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tableblock halign-left valign-top"><p class="tableblock">Trace</p></td>
|
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>org.springframework.cloud:spring-cloud-gcp-starter-trace</code></p></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tableblock halign-left valign-top"><p class="tableblock">Vision</p></td>
|
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>org.springframework.cloud:spring-cloud-gcp-starter-vision</code></p></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tableblock halign-left valign-top"><p class="tableblock">Security - IAP</p></td>
|
|
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>org.springframework.cloud:spring-cloud-gcp-starter-security-iap</code></p></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="sect2">
|
|
<h3 id="_gcp_messaging"><a class="link" href="#_gcp_messaging">GCP Messaging</a></h3>
|
|
<div class="paragraph">
|
|
<p>The GCP Messaging entry adds the GCP Support entry and all the required dependencies so that the Google Cloud Pub/Sub integration work out of the box.</p>
|
|
</div>
|
|
</div>
|
|
<div class="sect2">
|
|
<h3 id="_gcp_storage"><a class="link" href="#_gcp_storage">GCP Storage</a></h3>
|
|
<div class="paragraph">
|
|
<p>The GCP Storage entry adds the GCP Support entry and all the required dependencies so that the Google Cloud Storage integration work out of the box.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="sect1">
|
|
<h2 id="_code_samples"><a class="link" href="#_code_samples">Code Samples</a></h2>
|
|
<div class="sectionbody">
|
|
<div class="paragraph">
|
|
<p>There are <a href="https://github.com/spring-cloud/spring-cloud-gcp/tree/master/spring-cloud-gcp-samples">code samples</a> available that demonstrate the usage of all our integration.</p>
|
|
</div>
|
|
<div class="paragraph">
|
|
<p>For example, <a href="https://github.com/spring-cloud/spring-cloud-gcp/tree/master/spring-cloud-gcp-samples/spring-cloud-gcp-vision-api-sample">the Vision API sample</a> shows how to use <code>spring-cloud-gcp-starter-vision</code> to automatically configure Vision API clients.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="sect1">
|
|
<h2 id="_code_challenges"><a class="link" href="#_code_challenges">Code Challenges</a></h2>
|
|
<div class="sectionbody">
|
|
<div class="paragraph">
|
|
<p>In a code challenge, you perform a task step by step, using one integration.
|
|
There are a number of challenges available in the <a href="https://codelabs.developers.google.com/spring">Google Developers Codelabs</a> page.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="sect1">
|
|
<h2 id="_getting_started_guides"><a class="link" href="#_getting_started_guides">Getting Started Guides</a></h2>
|
|
<div class="sectionbody">
|
|
<div class="paragraph">
|
|
<p>A Spring Getting Started guide on messaging with Spring Integration Channel Adapters for Google Cloud Pub/Sub is available from <a href="https://spring.io/guides/gs/messaging-gcp-pubsub/">Spring Guides</a>.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript" src="js/tocbot/tocbot.min.js"></script>
|
|
<script type="text/javascript" src="js/toc.js"></script>
|
|
<link rel="stylesheet" href="js/highlight/styles/atom-one-dark-reasonable.min.css">
|
|
<script src="js/highlight/highlight.min.js"></script>
|
|
<script>hljs.initHighlighting()</script>
|
|
</body>
|
|
</html> |