Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/build-site.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# This workflow takes the contents of the branches/tags and builds the production documentation site
name: Build production site

on:
push:
branches: [master]

jobs:
dispatch:
runs-on: ubuntu-latest
steps:
- name: Trigger build
run: curl -X POST -d {} https://api.netlify.com/build_hooks/6238ac2881e6d20c7db8e6c8
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: build
on:
push:
paths-ignore:
- 'doc/**'
- 'docs/**'
pull_request:
paths-ignore:
- 'doc/**'
- 'docs/**'

jobs:
build:
Expand Down
37 changes: 0 additions & 37 deletions .github/workflows/guide-website-update.yml

This file was deleted.

1 change: 1 addition & 0 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See the link:https://docs.hazelcast.com/tutorials/caching-springboot[tutorial].
1 change: 0 additions & 1 deletion README.md

This file was deleted.

4 changes: 2 additions & 2 deletions create.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
asciidoctor -a allow-uri-read *.adoc;
asciidoctor-pdf -a allow-uri-read *.adoc;
asciidoctor -D . -a allow-uri-read docs/modules/ROOT/pages/*.adoc;
asciidoctor-pdf -D . -a allow-uri-read docs/modules/ROOT/pages/*.adoc;
3 changes: 0 additions & 3 deletions doc/antora.yml

This file was deleted.

2 changes: 2 additions & 0 deletions docs/antora.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: tutorials
version: ~
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
:github-address: https://github.com/hazelcast-guides/caching-springboot
:hazelcast: Hazelcast IMDG
= Cache with Spring Boot and Hazelcast
:templates-url: templates:ROOT:page$/
:page-layout: tutorial
:page-product: imdg
:page-categories: Caching, Spring Boot
:page-lang: java
:page-edition:
:page-est-time: 5 mins
:framework: Spring Boot
= Caching with Spring Boot and Hazelcast

This guide will get you started to use Hazelcast as a cache manager for your Spring Boot application.

include::{templates-url}/link-to-repo.adoc[]
:description: In this tutorial, you'll deploy a Spring Boot application that uses Hazelcast as a cache manager.

== What You’ll Learn

In this guide, you'll deploy a Spring Boot application that uses Hazelcast as a cache manager.
{description}

== Prerequisites
== Before you Begin

- ~5 minutes
- JDK 1.8+
- Apache Maven 3.2+

Expand Down Expand Up @@ -77,7 +77,7 @@ If we started the application, then every call to the endpoint `/books/<isbn>` w

Only if it does not find value in the cache, the method `findBookInSlowSource()` would be executed.

== Using Hazelcast as Cache Manager
== Use Hazelcast as Cache Manager

We want to use Hazelcast as the cache manager. The good news is that all you have to do it to add Hazelcast to your classpath.

Expand Down Expand Up @@ -109,7 +109,7 @@ hazelcast:

No more configuration needed, Hazelcast is already used as the cache manager for your project!

== Starting the Application
== Start the Application

To start the application, run the following command:

Expand All @@ -125,7 +125,7 @@ Members {size:1, ver:1} [
]
----

== Testing the Application
== Test the Application

You can test the application by executing the following command:

Expand All @@ -141,8 +141,8 @@ curl localhost:8080/books/12345
Sample Book Name
----

== What's more?
== See Also

If you want to use Hazelcast in the client-server topology, then it's enough to place `hazelcast-client.yaml` file instead of `hazelcast.yaml` on your classpath. And that's it! You configured a Hazelcast client.
If you want to use Hazelcast in the client/server topology, then it's enough to place `hazelcast-client.yaml` file instead of `hazelcast.yaml` on your classpath. And that's it! You configured a Hazelcast client.

If you want to read more, check out the official documentation https://docs.spring.io/spring-boot/docs/current/reference/html/spring-boot-features.html#boot-features-hazelcast[Spring Boot: Hazelcast].