{"id":50916,"date":"2024-12-06T00:00:00","date_gmt":"2024-12-06T08:00:00","guid":{"rendered":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-online-text-storage-service-using-spring-boot-griddb\/"},"modified":"2025-11-14T07:56:55","modified_gmt":"2025-11-14T15:56:55","slug":"building-an-online-text-storage-service-using-spring-boot-griddb","status":"publish","type":"post","link":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-online-text-storage-service-using-spring-boot-griddb\/","title":{"rendered":"Spring Boot\u3068GridDB\u3092\u4f7f\u7528\u3057\u305f\u30aa\u30f3\u30e9\u30a4\u30f3\u30c6\u30ad\u30b9\u30c8\u30b9\u30c8\u30ec\u30fc\u30b8\u30b5\u30fc\u30d3\u30b9\u306e\u69cb\u7bc9"},"content":{"rendered":"<p>\u30b3\u30fc\u30c9\u3084\u30c6\u30ad\u30b9\u30c8\u3092\u7d20\u65e9\u304f\u5b89\u5168\u306b\u8ab0\u304b\u3068\u5171\u6709\u3059\u308b\u5fc5\u8981\u306b\u8feb\u3089\u308c\u305f\u3053\u3068\u306f\u3042\u308a\u307e\u3059\u304b\uff1f Pastebin\u3084GitHub Gist\u306e\u3088\u3046\u306a\u4f7f\u3044\u3084\u3059\u3044\u30aa\u30f3\u30e9\u30a4\u30f3\u30c6\u30ad\u30b9\u30c8\u30b9\u30c8\u30ec\u30fc\u30b8\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u306e\u30cb\u30fc\u30ba\u304c\u9ad8\u307e\u308b\u4e2d\u3001\u958b\u767a\u8005\u305f\u3061\u306f\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u52b9\u7387\u7684\u306b\u4fdd\u5b58\u30fb\u5171\u6709\u3059\u308b\u65b9\u6cd5\u3092\u6a21\u7d22\u3057\u3066\u3044\u307e\u3059\u3002\u672c\u30d6\u30ed\u30b0\u8a18\u4e8b\u3067\u306f\u3001Spring Boot\u3092\u4f7f\u7528\u3057\u3066\u72ec\u81ea\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u30c6\u30ad\u30b9\u30c8\u30b9\u30c8\u30ec\u30fc\u30b8\u30b5\u30fc\u30d3\u30b9\u3092\u69cb\u7bc9\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u306e\u30ac\u30a4\u30c9\u306b\u5f93\u3046\u3053\u3068\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u7c21\u5358\u306b\u4fdd\u5b58\u304a\u3088\u3073\u5171\u6709\u3067\u304d\u308b\u3001\u5f37\u529b\u3067\u5b89\u5168\u306a\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3079\u307e\u3059\u3002\u521d\u5fc3\u8005\u3067\u3082\u7d4c\u9a13\u8c4a\u5bcc\u306a\u958b\u767a\u8005\u3067\u3082\u3001\u3053\u306e\u30ac\u30a4\u30c9\u3092\u8aad\u3081\u3070\u3001\u5805\u7262\u306a\u30c6\u30ad\u30b9\u30c8\u30b9\u30c8\u30ec\u30fc\u30b8\u30b5\u30fc\u30d3\u30b9\u3092\u69cb\u7bc9\u3059\u308b\u30b9\u30ad\u30eb\u3092\u7fd2\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u8981\u4ef6\u3001\u9ad8\u30ec\u30d9\u30eb\u8a2d\u8a08\u304b\u3089\u59cb\u3081\u3001\u6700\u5f8c\u306b Spring Boot \u3068 docker-compose \u3092\u4f7f\u7528\u3057\u305f\u5b9f\u88c5\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<h2>\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9<\/h2>\n<p>\u30b3\u30fc\u30c9\u306f\u3001griddbnet\u306eGitHub\u30da\u30fc\u30b8\u3067\u3054\u89a7\u3044\u305f\u3060\u3051\u307e\u3059\u3002<\/p>\n<p><code>$ git clone https:\/\/github.com\/griddbnet\/Blogs.git --branch springboot-snippet<\/code><\/p>\n<h3>\u5fc5\u8981\u6761\u4ef6<\/h3>\n<h4>\u2705 \u4ee5\u4e0b\u306e\u6a5f\u80fd\u8981\u4ef6\u3092\u6e80\u305f\u3057\u307e\u3059\u3002<\/h4>\n<ol>\n<li>\u30e6\u30fc\u30b6\u30fc\u304c\u30bf\u30a4\u30c8\u30eb\u4ed8\u304d\u306e\u30c6\u30ad\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u30b7\u30b9\u30c6\u30e0\u306b\u5165\u529b\u3059\u308b<\/li>\n<li><strong>\u30e6\u30fc\u30b6\u30fc<\/strong>\u304c\u30b9\u30cb\u30da\u30c3\u30c8\u306eURL\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u8868\u793a\/\u7de8\u96c6\u3059\u308b<\/li>\n<li>\u30b7\u30b9\u30c6\u30e0\u304c\u56fa\u6709\u306e\u30b9\u30cb\u30da\u30c3\u30c8ID\u3092\u751f\u6210\u3059\u308b<\/li>\n<\/ol>\n<h4>\u274e \u5bfe\u8c61\u5916\uff1a<\/h4>\n<ul>\n<li>\u30e6\u30fc\u30b6\u30fc\u7ba1\u7406\uff08\u767b\u9332\u3001\u30ed\u30b0\u30a4\u30f3<\/li>\n<li>\u30e6\u30fc\u30b6\u30fc\u8a8d\u8a3c\u304a\u3088\u3073\u627f\u8a8d<\/li>\n<li>\u30e6\u30fc\u30b6\u30fc\u304c\u30ab\u30b9\u30bf\u30e0ID\u3092\u9078\u629e\u3059\u308b<\/li>\n<\/ul>\n<h4>\u2611\ufe0f \u524d\u63d0\u6761\u4ef6<\/h4>\n<ul>\n<li>\u30b7\u30b9\u30c6\u30e0\u306f\u30c6\u30ad\u30b9\u30c8\u30d9\u30fc\u30b9\u306e\u30c7\u30fc\u30bf\u306e\u307f\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b<\/li>\n<li>\u30b3\u30f3\u30c6\u30f3\u30c4\u306f\u671f\u9650\u5207\u308c\u306b\u306a\u3089\u306a\u3044<\/li>\n<li>\u8aad\u307f\u53d6\u308a\u3068\u66f8\u304d\u8fbc\u307f\u306e\u6bd4\u7387\u306f\u304a\u3088\u305d5:1\u3067\u3042\u308b<\/li>\n<\/ul>\n<h4>\u2611\ufe0f \u5bb9\u91cf<\/h4>\n<p>\u5e73\u5747\u3057\u3066\u3001\u5404\u30b9\u30cb\u30da\u30c3\u30c8\u306e\u30b5\u30a4\u30ba\u306f\u304a\u3088\u305d30KB\u3067\u3001\u6700\u5927\u30b5\u30a4\u30ba\u306f10MB\u3067\u3059\u30021\u30f6\u6708\u3042\u305f\u308a1000\u4e07\u306e\u30b9\u30cb\u30da\u30c3\u30c8\u304c\u3042\u308a\u3001\u5404\u30b9\u30cb\u30da\u30c3\u30c8\u304c30KB\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u5fc5\u8981\u3068\u3059\u308b\u5834\u5408\uff1a30\/\u30b9\u30cb\u30da\u30c3\u30c8<em>100\u4e07\u30b9\u30cb\u30da\u30c3\u30c8\/\u6708<\/em>12\u30f6\u6708=36\u5104KB\/\u5e74\u3068\u306a\u308a\u3001\u3053\u308c\u306f\u5e74\u95933.6TB\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u76f8\u5f53\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30cf\u30a4\u30ec\u30d9\u30eb\u30c7\u30b6\u30a4\u30f3<\/h2>\n<p>\u901a\u5e38\u3001\u30c6\u30ad\u30b9\u30c8\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4fdd\u5b58\u3059\u308b\u306b\u306f\u3001Amazon S3\u306a\u3069\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u5229\u7528\u3059\u308b\u65b9\u6cd5\u3068\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u63a1\u7528\u3059\u308b\u65b9\u6cd5\u306e2\u3064\u304c\u3042\u308a\u307e\u3059\u3002\u672c\u8a18\u4e8b\u3067\u306f\u3001\u30c6\u30ad\u30b9\u30c8\u306e\u30b9\u30cb\u30da\u30c3\u30c8\u3092\u76f4\u63a5\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5185\u306b\u4fdd\u5b58\u3059\u308b\u3053\u3068\u3067\u3001\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3092\u7c21\u7d20\u5316\u3057\u307e\u3059\u3002\u30e1\u30bf\u30c7\u30fc\u30bf\u3068\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u4e21\u65b9\u3092\u540c\u3058\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u683c\u7d0d\u3057\u307e\u3059\u3002\u3053\u306e\u6226\u7565\u306b\u3088\u308a\u3001\u30c7\u30fc\u30bf\u306e\u691c\u7d22\u901f\u5ea6\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u3053\u306e\u65b9\u6cd5\u3067\u5927\u91cf\u306e\u30c6\u30ad\u30b9\u30c8\u3092\u4fdd\u5b58\u3059\u308b\u3068\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u8ca0\u8377\u304c\u5897\u5927\u3057\u3001\u30c7\u30fc\u30bf\u91cf\u304c\u5897\u52a0\u3059\u308b\u306b\u3064\u308c\u3066\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u5f71\u97ff\u304c\u51fa\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>\u30c7\u30fc\u30bf\u30b9\u30c8\u30ec\u30fc\u30b8<\/h2>\n<p>3\u3064\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u6700\u521d\u306e\u30c6\u30fc\u30d6\u30eb\u300cusers\u300d\u306b\u306f\u3001\u767b\u9332\u30e6\u30fc\u30b6\u30fc\u306e\u540d\u524d\u3084\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306a\u3069\u306e\u60c5\u5831\u304c\u4fdd\u5b58\u3055\u308c\u307e\u3059\u30022\u756a\u76ee\u306e\u30c6\u30fc\u30d6\u30eb\u300csnippets\u300d\u306b\u306f\u3001\u30bf\u30a4\u30c8\u30eb\u3084\u4f5c\u6210\u65e5\u306a\u3069\u306e\u30c6\u30ad\u30b9\u30c8\u30e1\u30bf\u30c7\u30fc\u30bf\u3068\u3001\u305d\u306e\u4f5c\u6210\u8005\u3067\u3042\u308b\u30e6\u30fc\u30b6\u30fc\u306e\u60c5\u5831\u304c\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002\u6700\u5f8c\u306b\u3001\u300cstorage\u300d\u30c6\u30fc\u30d6\u30eb\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u306e\u5b9f\u969b\u306e\u30c6\u30ad\u30b9\u30c8\u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u5b89\u5168\u306b\u4fdd\u5b58\u3055\u308c\u308b\u4fdd\u7ba1\u5eab\u3067\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u306f\u8907\u6570\u306e\u30b9\u30cb\u30da\u30c3\u30c8\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u304c\u3001\u8cbc\u308a\u4ed8\u3051\u306f1\u4eba\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u307f\u304c\u6240\u6709\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/griddb.net\/wp-content\/uploads\/2024\/12\/table-online-text-storage.png\"><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/griddb.net\/wp-content\/uploads\/2024\/12\/table-online-text-storage.png\" alt=\"\" width=\"875\" height=\"312\" class=\"aligncenter size-full wp-image-31154\" srcset=\"\/wp-content\/uploads\/2024\/12\/table-online-text-storage.png 875w, \/wp-content\/uploads\/2024\/12\/table-online-text-storage-300x107.png 300w, \/wp-content\/uploads\/2024\/12\/table-online-text-storage-768x274.png 768w, \/wp-content\/uploads\/2024\/12\/table-online-text-storage-600x214.png 600w\" sizes=\"(max-width: 875px) 100vw, 875px\" \/><\/a><\/p>\n<h2>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/h2>\n<h3>\u958b\u767a\u3092\u59cb\u3081\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/h3>\n<ul>\n<li><a href=\"https:\/\/jdk.java.net\/21\/\">Java 17 \u4ee5\u964d<\/a>\u3001<a href=\"https:\/\/maven.apache.org\/download.cgi\">Maven 3.5+<\/a>\u3001<a href=\"https:\/\/docs.docker.com\/engine\/install\/\">Docker \u30a8\u30f3\u30b8\u30f3<\/a>\u3001\u304a\u3088\u3073\u304a\u597d\u307f\u306e\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf (<a href=\"https:\/\/spring.io\/guides\/gs\/intellij-idea\/\">Intellij IDEA<\/a> \u307e\u305f\u306f <a href=\"https:\/\/spring.io\/guides\/gs\/guides-with-vscode\/\">VSCode<\/a>)<\/li>\n<\/ul>\n<h3>Spring Boot \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4f5c\u6210<\/h3>\n<p>Spring Boot \u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\u3059\u308b\u9ad8\u901f\u306a\u65b9\u6cd5\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002Spring Boot \u306f\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3059\u308b\u305f\u3081\u306e\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3057\u307e\u305b\u3093\u3002\u4ee3\u308f\u308a\u306b\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u8d77\u52d5\u3059\u308b\u3068\u3001Spring Boot \u306f\u52d5\u7684\u306b Bean \u3068\u8a2d\u5b9a\u3092\u7d50\u7dda\u3057\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306b\u9069\u7528\u3057\u307e\u3059\u3002Spring Boot \u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30a4\u30f3\u30d5\u30e9\u30b9\u30c8\u30e9\u30af\u30c1\u30e3\u3088\u308a\u3082\u30d3\u30b8\u30cd\u30b9\u6a5f\u80fd\u306b\u96c6\u4e2d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/start.spring.io\/\">start.spring.io<\/a> \u306b\u79fb\u52d5\u3057\u307e\u3059\u3002 \u3053\u306e\u30b5\u30fc\u30d3\u30b9\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u5fc5\u8981\u306a\u3059\u3079\u3066\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u8aad\u307f\u8fbc\u307f\u3001\u307b\u3068\u3093\u3069\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002 \u751f\u6210\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001Spring Boot \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u751f\u6210\u3055\u308c\u3001zip \u5f62\u5f0f\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u307e\u3059\u3002 \u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u89e3\u51cd\u3057\u3001\u4efb\u610f\u306e IDE \u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n<p>GridDB \u3068\u3084\u308a\u53d6\u308a\u3059\u308b\u306b\u306f\u3001\u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b GridDB Java Client \u3092\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 maven <code>pom.xml<\/code> \u306b\u4ee5\u4e0b\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">\n&lt;dependency&gt;\n  &lt;groupId&gt;com.github.griddb&lt;\/groupId&gt;\n  &lt;artifactId&gt;gridstore&lt;\/artifactId&gt;\n  &lt;version&gt;5.5.0&lt;\/version&gt;\n&lt;\/dependency&gt;\n&lt;dependency&gt;\n  &lt;groupId&gt;com.github.f4b6a3&lt;\/groupId&gt;\n  &lt;artifactId&gt;tsid-creator&lt;\/artifactId&gt;\n  &lt;version&gt;5.2.5&lt;\/version&gt;\n&lt;\/dependency&gt;<\/code><\/pre>\n<\/div>\n<h2>Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u69cb\u7bc9<\/h2>\n<p>\u5b9f\u7528\u9762\u3068\u4f7f\u3044\u3084\u3059\u3055\u3092\u8003\u616e\u3057\u3001\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306e\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u306b\u306fThymeleaf\u3092\u9078\u629e\u3057\u307e\u3057\u305f\u3002Thymeleaf\u306f\u7406\u89e3\u3057\u3084\u3059\u304f\u30c7\u30d0\u30c3\u30b0\u3057\u3084\u3059\u3044\u30d5\u30ed\u30fc\u3092\u63d0\u4f9b\u3057\u3066\u304a\u308a\u3001\u5b9f\u7528\u7684\u306a\u9078\u629e\u80a2\u3068\u306a\u308a\u307e\u3059\u3002Thymeleaf\u306b\u3088\u308a\u3001\u8ffd\u52a0\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u304c\u4e0d\u8981\u3068\u306a\u308a\u3001\u8907\u96d1\u6027\u3068\u6f5c\u5728\u7684\u306a\u8106\u5f31\u6027\u304c\u8efd\u6e1b\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9<\/h3>\n<p>\u30b9\u30cb\u30da\u30c3\u30c8\u306e\u30ea\u30b9\u30c8\u3092\u8868\u793a\u3057\u3001\u30d8\u30c3\u30c0\u30fc\u3068\u30dc\u30c7\u30a3\u30bb\u30af\u30b7\u30e7\u30f3\u3092\u6301\u3064\u57fa\u672c\u7684\u306aHTML\u30c6\u30fc\u30d6\u30eb\u69cb\u9020\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u30dc\u30c7\u30a3\u5185\u3067\u306f\u3001Thymeleaf\u30eb\u30fc\u30d7\uff08<code>th:each<\/code>\uff09\u3092\u4f7f\u7528\u3057\u3066\u3001\u30b9\u30cb\u30da\u30c3\u30c8\u306e\u30ea\u30b9\u30c8\u3092\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u3057\u307e\u3059\u3002\u6700\u521d\u306e\u5217\u306b\u306f\u3001\u30b9\u30cb\u30da\u30c3\u30c8\u306e\u8a73\u7d30\u3078\u306e\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u3001\u30a2\u30f3\u30ab\u30fc\u8981\u7d20\u5185\u306b\u30b9\u30cb\u30da\u30c3\u30c8\u306e\u30bf\u30a4\u30c8\u30eb\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-html\">&lt;div th_if=\"${snippets.size() &gt; 0}\" class=\"container\"&gt;\n    &lt;table class=\"table table-hover table-responsive-xl table-striped\"&gt;\n        &lt;thead class=\"thead-light\"&gt;\n            &lt;tr&gt;\n                &lt;th scope=\"col\"&gt;Title&lt;\/th&gt;\n                &lt;th scope=\"col\"&gt;Created Time&lt;\/th&gt;\n                &lt;th scope=\"col\"&gt;Size&lt;\/th&gt;\n            &lt;\/tr&gt;\n        &lt;\/thead&gt;\n        &lt;tbody class=\"table-group-divider\"&gt;\n            &lt;tr th_each=\"snippet : ${snippets}\"&gt;\n                &lt;td&gt;\n                    &lt;a class=\"small\" th_href=\"@{\/snippets\/{id}(id=${snippet.id})}\" th_text=\"${snippet.title}\"&gt;&lt;\/a&gt;\n                &lt;\/td&gt;\n                &lt;th id=\"timeAgo\" scope=\"row\"&gt;[[${snippet.timeAgo}]]&lt;\/th&gt;\n                &lt;th id=\"contentSizeHumanReadable\" scope=\"row\"&gt;[[${snippet.contentSizeHumanReadable}]]&lt;\/th&gt;                        \n            &lt;\/tr&gt;\n        &lt;\/tbody&gt;\n    &lt;\/table&gt;\n&lt;\/div&gt;<\/code><\/pre>\n<\/div>\n<p>\u305d\u3057\u3066\u3001\u3053\u308c\u304c\u30ea\u30b9\u30c8\u30da\u30fc\u30b8\u306e\u898b\u3048\u65b9\u3067\u3059\u3002<\/p>\n<p><a href=\"https:\/\/griddb.net\/wp-content\/uploads\/2024\/12\/snippet-list.png\"><img decoding=\"async\" src=\"https:\/\/griddb.net\/wp-content\/uploads\/2024\/12\/snippet-list.png\" alt=\"\" width=\"637\" height=\"610\" class=\"aligncenter size-full wp-image-31153\" srcset=\"\/wp-content\/uploads\/2024\/12\/snippet-list.png 637w, \/wp-content\/uploads\/2024\/12\/snippet-list-300x287.png 300w, \/wp-content\/uploads\/2024\/12\/snippet-list-600x575.png 600w\" sizes=\"(max-width: 637px) 100vw, 637px\" \/><\/a><\/p>\n<p>HTML\u30d5\u30a9\u30fc\u30e0\u3092\u4f7f\u7528\u3057\u3066\u65b0\u3057\u3044\u30b9\u30cb\u30da\u30c3\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002 <code>th:action<\/code> \u5f0f\u306f\u3001\u30d5\u30a9\u30fc\u30e0\u3092 <code>\/snippets\/save<\/code> \u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306b POST \u3059\u308b\u3088\u3046\u306b\u6307\u793a\u3057\u307e\u3059\u3002 <code>th:object=\u300c${snippet}\u300d<\/code> \u306f\u3001\u30d5\u30a9\u30fc\u30e0\u30c7\u30fc\u30bf\u3092\u53ce\u96c6\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3059\u308b\u30e2\u30c7\u30eb\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u5ba3\u8a00\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-html\">&lt;form th_action=\"@{\/snippets\/save}\" method=\"post\" enctype=\"multipart\/form-data\" th_object=\"${snippet}\"\n  id=\"snippetForm\" style=\"max-width: 550px; margin: 0 auto\"&gt;\n\n  &lt;div class=\"p-3\"&gt;\n      &lt;div class=\"form-group row\"&gt;\n          &lt;label class=\"col-sm-3 col-form-label\" for=\"title\"&gt;Title&lt;\/label&gt;\n          &lt;div class=\"col-sm-9\"&gt;\n              &lt;input type=\"text\" th_field=\"*{title}\" required minlength=\"2\" maxlength=\"128\"\n                  class=\"form-control\" id=\"title\" \/&gt;\n          &lt;\/div&gt;\n      &lt;\/div&gt;\n\n      &lt;div class=\"form-group row\"&gt;\n          &lt;label class=\"col-sm-3 col-form-label\" for=\"content\"&gt;Content&lt;\/label&gt;\n          &lt;div class=\"col-sm-9\"&gt;\n              &lt;textarea rows=\"20\" cols=\"80\" th_field=\"*{content}\" form=\"snippetForm\" class=\"form-control\"\n                  id=\"content\" required\/&gt;\n          &lt;\/div&gt;\n      &lt;\/div&gt;\n\n      &lt;div class=\"form-group row\"&gt;\n          &lt;label class=\"col-sm-3 col-form-label\" for=\"userId\"&gt;User&lt;\/label&gt;\n          &lt;div class=\"col-sm-9\"&gt;\n              &lt;select th_field=\"*{userId}\"&gt;\n                  &lt;option th_each=\"user : ${users}\" th_text=\"${user.fullName}\" th_value=\"${user.id}\"&gt;\n              &lt;\/select&gt;\n          &lt;\/div&gt;\n      &lt;\/div&gt;\n\n      &lt;div class=\"text-center\"&gt;\n          &lt;input type=\"submit\" value=\"Save\" class=\"btn btn-primary btn-sm mr-2\" \/&gt;\n          &lt;input type=\"button\" value=\"Cancel\" id=\"btnCancel\" class=\"btn btn-secondary btn-sm\" \/&gt;\n      &lt;\/div&gt;\n  &lt;\/div&gt;\n&lt;\/form&gt;<\/code><\/pre>\n<\/div>\n<p>\u30b9\u30cb\u30da\u30c3\u30c8\u4f5c\u6210\u30da\u30fc\u30b8\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/griddb.net\/wp-content\/uploads\/2024\/12\/create-a-snippet.png\"><img decoding=\"async\" src=\"https:\/\/griddb.net\/wp-content\/uploads\/2024\/12\/create-a-snippet.png\" alt=\"\" width=\"642\" height=\"711\" class=\"aligncenter size-full wp-image-31151\" srcset=\"\/wp-content\/uploads\/2024\/12\/create-a-snippet.png 642w, \/wp-content\/uploads\/2024\/12\/create-a-snippet-271x300.png 271w, \/wp-content\/uploads\/2024\/12\/create-a-snippet-600x664.png 600w\" sizes=\"(max-width: 642px) 100vw, 642px\" \/><\/a><\/p>\n<h3>GridDB \u3067\u306e\u30c7\u30fc\u30bf\u30a2\u30af\u30bb\u30b9<\/h3>\n<p>\u307e\u305a\u3001GridDB \u306e\u57fa\u76e4\u3068\u306a\u308b\u30c6\u30fc\u30d6\u30eb\u307e\u305f\u306f\u30b3\u30f3\u30c6\u30ca\u3092\u8868\u3059 Java POJO \u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002Lombok \u306e @Data \u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u30af\u30e9\u30b9\u306b\u4ed8\u4e0e\u3059\u308b\u3068\u3001\u3059\u3079\u3066\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u30b2\u30c3\u30bf\u30fc\u304c\u81ea\u52d5\u7684\u306b\u751f\u6210\u3055\u308c\u3001\u4fbf\u5229\u306a toString \u30e1\u30bd\u30c3\u30c9\u3001\u304a\u3088\u3073\u3059\u3079\u3066\u306e\u975e\u4e00\u6642\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b hashCode \u304a\u3088\u3073 equals \u306e\u5b9f\u88c5\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002\u307e\u305f\u3001\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3068\u540c\u69d8\u306b\u3001\u3059\u3079\u3066\u306e\u975e\u6700\u7d42\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u30bb\u30c3\u30bf\u30fc\u3082\u751f\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u8a2d\u8a08\u306b\u5f93\u3063\u3066\u3001\u30c7\u30fc\u30bf\u30a2\u30af\u30bb\u30b9\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-java\">@Data\npublic class User {\n    @RowKey\n    String id;\n    String email;\n    String fullName;\n    Date createdAt;\n}\n\n@Data\npublic class Snippet {\n    @RowKey\n    String id;\n\n    String title;\n    String storageId;\n    String userId;\n    Date createdAt;\n    String contentSizeHumanReadable;\n}\n\n@Data\npublic class Storage {\n    @RowKey\n    String id;\n\n    Blob content;\n}<\/code><\/pre>\n<\/div>\n<p>\u6b21\u306b\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u64cd\u4f5c\u306e\u4e2d\u5fc3\u3068\u306a\u308b\u69cb\u6210\u3068\u3057\u3066\u3001<code>GridDBConfig<\/code> \u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002 \u3053\u306e\u30af\u30e9\u30b9\u306f\u3001\u4ee5\u4e0b\u306e\u51e6\u7406\u3092\u884c\u3044\u307e\u3059\u3002 * GridDB \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u306e\u63a5\u7d9a\u306b\u5fc5\u8981\u306a\u74b0\u5883\u5909\u6570\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002 * GridDB \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3078\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u63a5\u7d9a\u3092\u7ba1\u7406\u3059\u308b GridStore \u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002 * \u8907\u6570\u306e\u884c\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306e GridDB Collection \u306e\u30b3\u30f3\u30c6\u30ca\uff08\u30c6\u30fc\u30d6\u30eb\uff09\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002 \u3053\u306e\u30b3\u30f3\u30c6\u30ca\u306f\u3001\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u304a\u3051\u308b\u30c6\u30fc\u30d6\u30eb\u306b\u307b\u307c\u76f8\u5f53\u3057\u307e\u3059\u3002\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u4f5c\u6210\/\u66f4\u65b0\u6642\u306b\u3001\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u30ab\u30e9\u30e0\u30ec\u30a4\u30a2\u30a6\u30c8\u306b\u5bfe\u5fdc\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u540d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u307e\u305f\u3001\u5404\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306b\u5bfe\u3057\u3066\u3001TQL\u306eWHERE\u7bc0\u306e\u6761\u4ef6\u3067\u983b\u7e41\u306b\u691c\u7d22\u3055\u308c\u308b\u30ab\u30e9\u30e0\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-java\">@Configuration\npublic class GridDBConfig {\n\n  @Value(\"${GRIDDB_NOTIFICATION_MEMBER}\")\n  private String notificationMember;\n\n  @Value(\"${GRIDDB_CLUSTER_NAME}\")\n  private String clusterName;\n\n  @Value(\"${GRIDDB_USER}\")\n  private String user;\n\n  @Value(\"${GRIDDB_PASSWORD}\")\n  private String password;\n\n  @Bean\n  public GridStore gridStore() throws GSException {\n    \/\/ Acquiring a GridStore instance\n    Properties properties = new Properties();\n    properties.setProperty(\"notificationMember\", notificationMember);\n    properties.setProperty(\"clusterName\", clusterName);\n    properties.setProperty(\"user\", user);\n    properties.setProperty(\"password\", password);\n    GridStore store = GridStoreFactory.getInstance().getGridStore(properties);\n    return store;\n  }\n\n    @Bean\n    public Collection&lt;String, User&gt; userCollection(GridStore gridStore) throws GSException {\n        Collection&lt;String, User&gt; collection = gridStore.putCollection(\"users\", User.class);\n        collection.createIndex(\"email\");\n        return collection;\n    }\n\n    @Bean\n    public Collection&lt;String, Snippet&gt; snippetCollection(GridStore gridStore) throws GSException {\n        Collection&lt;String, Snippet&gt; snippetCollection =\n                gridStore.putCollection(AppConstant.SNIPPETS_CONTAINER, Snippet.class);\n        snippetCollection.createIndex(\"userId\");\n        snippetCollection.createIndex(\"title\");\n        return snippetCollection;\n    }\n\n    @Bean\n    public Collection&lt;String, Storage&gt; storageCollection(GridStore gridStore) throws GSException {\n        Collection&lt;String, Storage&gt; storageCollection =\n                gridStore.putCollection(AppConstant.STORAGES_CONTAINER, Storage.class);\n        return storageCollection;\n    }\n}<\/code><\/pre>\n<\/div>\n<h3>\u30b5\u30fc\u30d3\u30b9\u30ec\u30a4\u30e4\u30fc<\/h3>\n<p>Spring\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u306f\u3001\u30b5\u30fc\u30d3\u30b9\u30ec\u30a4\u30e4\u30fc\u306f\u57fa\u672c\u7684\u306a\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u30ec\u30a4\u30e4\u30fc\u306e1\u3064\u3067\u3042\u308a\u3001\u4e3b\u306b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d3\u30b8\u30cd\u30b9\u30ed\u30b8\u30c3\u30af\u306e\u5b9f\u88c5\u3092\u62c5\u5f53\u3057\u307e\u3059\u3002<\/p>\n<h4><code>SnippetService<\/code><\/h4>\n<p>\u30e1\u30bd\u30c3\u30c9 <code>fetchAll<\/code> : \u65b0\u3057\u304f\u4f5c\u6210\u3055\u308c\u305f\u6700\u521d\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u304b\u3089\u3059\u3079\u3066\u306e\u30b9\u30cb\u30da\u30c3\u30c8\u3092\u30af\u30a8\u30ea\u3057\u307e\u3059\u3002<\/p>\n<p>\u30e1\u30bd\u30c3\u30c9 <code>create<\/code>: * \u30b9\u30cb\u30da\u30c3\u30c8\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u30b9\u30c8\u30ec\u30fc\u30b8\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306b\u4fdd\u5b58\u3057\u3001\u65b0\u3057\u3044\u30b9\u30cb\u30da\u30c3\u30c8\u306e\u30e1\u30bf\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3057\u307e\u3059\u3002* \u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u30b5\u30a4\u30ba\u3092\u8a08\u7b97\u3057\u3001\u305d\u306e\u60c5\u5831\u3092\u4eba\u9593\u304c\u8aad\u3081\u308b\u5f62\u5f0f\u3067\u4fdd\u5b58\u3059\u308b\u3002 * \u4e88\u6e2c\u4e0d\u53ef\u80fd\u3067\u91cd\u8907\u305b\u305a\u3001\u8aad\u307f\u53d6\u308a\u53ef\u80fd\u306a\u30b9\u30cb\u30da\u30c3\u30c8ID\u3092\u751f\u6210\u3057\u307e\u3059\u3002 * \u30b9\u30cb\u30da\u30c3\u30c8\u306eID\u3068\u3057\u3066\u3001\u30bf\u30a4\u30e0\u30bd\u30fc\u30c8\u30e6\u30cb\u30fc\u30afID\uff08TSID\uff09\u3092\u9078\u629e\u3057\u307e\u3059\u3002 TSID\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30e9\u30f3\u30c0\u30e0\u306a\u8981\u7d20\u3092\u542b\u3080\u30bf\u30a4\u30e0\u30bd\u30fc\u30c8ID\u3092\u53d6\u5f97\u3067\u304d\u300113\u6587\u5b57\u306e\u6587\u5b57\u5217\u3068\u3057\u3066\u8868\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-java\">@Service\n@RequiredArgsConstructor\npublic class SnippetService {\n    private final Logger log = LoggerFactory.getLogger(SnippetService.class);\n    private final Collection&lt;String, Snippet&gt; snippetCollection;\n    private final Collection&lt;String, Storage&gt; storagCollection;\n\n    public List&lt;Snippet&gt; fetchAll() {\n        List&lt;Snippet&gt; snippets = new ArrayList&lt;&gt;(0);\n        try {\n            String tql = \"SELECT * FROM \" + AppConstant.SNIPPETS_CONTAINER + \" ORDER BY createdAt DESC\";\n            Query&lt;Snippet&gt; query = snippetCollection.query(tql);\n            RowSet&lt;Snippet&gt; rowSet = query.fetch();\n            while (rowSet.hasNext()) {\n                snippets.add(rowSet.next());\n            }\n        } catch (GSException e) {\n            log.error(\"Error fetch all snippet\", e);\n        }\n        return snippets;\n    }\n\n    public void create(CreateSnippet createSnippet) {\n        try {\n            Snippet found = fetchOneByTitle(createSnippet.getTitle());\n            if (found != null) {\n                return;\n            }\n            Blob content = snippetCollection.createBlob();\n            content.setBytes(1, createSnippet.getContent().getBytes());\n            Storage storage = new Storage();\n            storage.setId(KeyGenerator.next(\"obj\"));\n            storage.setContent(content);\n            storagCollection.put(storage.getId(), storage);\n            Snippet snippet = new Snippet();\n            snippet.setTitle(createSnippet.getTitle());\n            snippet.setStorageId(storage.getId());\n            snippet.setUserId(createSnippet.getUserId());\n            snippet.setCreatedAt(new Date());\n            snippet.setContentSizeHumanReadable(toHumanReadableByNumOfLeadingZeros(\n                    createSnippet.getContent().getBytes().length));\n            snippetCollection.put(KeyGenerator.next(\"sn\"), snippet);\n        } catch (GSException e) {\n            e.printStackTrace();\n        } catch (SQLException e) {\n            e.printStackTrace();\n        }\n    }\n}<\/code><\/pre>\n<\/div>\n<h3>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30ec\u30a4\u30e4\u30fc<\/h3>\n<p>\u3053\u306e\u30ec\u30a4\u30e4\u30fc\u306f\u3001\u53d7\u4fe1\u3057\u305fHTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u51e6\u7406\u3092\u62c5\u5f53\u3057\u307e\u3059\u3002\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306f\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u4fe1\u3057\u3001\u51e6\u7406\u3057\u3001\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u307e\u305f\u306f\u64cd\u4f5c\u3059\u308b\u305f\u3081\u306b\u524d\u306e\u30b5\u30fc\u30d3\u30b9\u30ec\u30a4\u30e4\u30fc\u3068\u3084\u308a\u3068\u308a\u3057\u307e\u3059\u3002<\/p>\n<p>SnippetsController<code>\u306f\u3001<\/code>\/snippets`\u3078\u306e\u3059\u3079\u3066\u306eHTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u51e6\u7406\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-java\">@Controller\n@RequestMapping(\"\/snippets\")\n@RequiredArgsConstructor\npublic class SnippetsController {\n    private static final Logger log = LoggerFactory.getLogger(SnippetsController.class);\n    private final SnippetService snippetService;\n    private final UserService userService;\n\n    @GetMapping\n    String snippets(Model model) {\n        List&lt;Snippet&gt; snippets = snippetService.fetchAll();\n        List&lt;SnippetView&gt; snippetViews = snippets.stream()\n                .map(sn -&gt; SnippetView.builder()\n                        .id(sn.getId())\n                        .title(sn.getTitle())\n                        .createdAt(sn.getCreatedAt())\n                        .timeAgo(calculateTimeAgoByTimeGranularity(sn.getCreatedAt(), TimeGranularity.MINUTES))\n                        .contentSizeHumanReadable(sn.getContentSizeHumanReadable())\n                        .build())\n                .collect(Collectors.toList());\n\n        List&lt;User&gt; users = userService.fetchAll();\n        model.addAttribute(\"snippets\", snippetViews);\n        return \"snippets\";\n    }\n\n    @GetMapping(\"\/new\")\n    String newSnippet(Model model) {\n        List&lt;User&gt; users = userService.fetchAll();\n        model.addAttribute(\"snippet\", new CreateSnippet());\n        model.addAttribute(\"users\", users);\n        return \"new_snippet\";\n    }\n\n    @PostMapping(\"\/save\")\n    String saveSnippet(@ModelAttribute(\"snippet\") CreateSnippet createSnippet) {\n        snippetService.create(createSnippet);\n        return \"redirect:\/snippets\";\n    }\n}<\/code><\/pre>\n<\/div>\n<p>\u30e1\u30bd\u30c3\u30c9 <code>snippets(Model model)<\/code>: * URL <code>\/snippets<\/code> \u3078\u306e GET \u30ea\u30af\u30a8\u30b9\u30c8\u3092\u51e6\u7406\u3057\u307e\u3059 * \u30b5\u30fc\u30d3\u30b9\u30ec\u30a4\u30e4\u30fc\u3092\u547c\u3073\u51fa\u3057\u3066\u30b9\u30cb\u30da\u30c3\u30c8\u306e\u30ea\u30b9\u30c8\u3092\u53d6\u5f97\u3057\u307e\u3059 * \u5404\u30b9\u30cb\u30da\u30c3\u30c8\u306e\u4f5c\u6210\u6642\u523b\u3092\u300c\u6642\u9593\u524d\u300d\u5f62\u5f0f\u306b\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3059\u3057\u307e\u3059* \u30b9\u30cb\u30da\u30c3\u30c8\u30ea\u30b9\u30c8\u306eHTML\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3059\u308b\u305f\u3081\u306e <code>View<\/code> (\u3053\u306e\u5834\u5408\u306f <code>snippets<\/code>) \u3092\u8fd4\u3057\u307e\u3059<\/p>\n<p>\u30e1\u30bd\u30c3\u30c9 <code>newSnippet(Model model)<\/code>: * URL <code>\/snippets\/new<\/code> \u3078\u306e GET \u30ea\u30af\u30a8\u30b9\u30c8\u3092\u51e6\u7406\u3057\u307e\u3059\u3002 * <code>Model<\/code> \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f7f\u7528\u3057\u3066\u3001\u65b0\u3057\u3044\u30b9\u30cb\u30da\u30c3\u30c8 (<code>CreateSnippet<\/code>) \u3092\u30d3\u30e5\u30fc\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u516c\u958b\u3057\u307e\u3059\u3002 <code>CreateSnippet<\/code> \u306b\u306f\u3001<code>title<\/code> \u3084 <code>content<\/code> \u306a\u3069\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u304c\u542b\u307e\u308c\u307e\u3059\u3002 * \u30b5\u30fc\u30d3\u30b9\u30ec\u30a4\u30e4\u30fc\u3092\u547c\u3073\u51fa\u3057\u3066\u3001\u30b9\u30cb\u30da\u30c3\u30c8\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3057\u307e\u3059<\/p>\n<h3>Docker Compose \u3092\u4f7f\u7528\u3057\u305f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u5b9f\u884c<\/h3>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u8d77\u52d5\u3059\u308b\u306b\u306f\u3001\u4eba\u6c17\u306e\u30b3\u30f3\u30c6\u30ca\u30a8\u30f3\u30b8\u30f3\u3067\u3042\u308bDocker\u3092\u5229\u7528\u3057\u307e\u3059\u3002\u307e\u305a\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066Docker\u30a4\u30e1\u30fc\u30b8\u3092\u69cb\u7bc9\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">  docker compose -f docker-compose-dev.yml build<\/code><\/pre>\n<\/div>\n<p>Run the app:<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">  docker compose -f docker-compose-dev.yml up<\/code><\/pre>\n<\/div>\n<p>\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c\u304c\u6210\u529f\u3059\u308b\u3068\u3001\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\uff08http:\/\/localhost:8080\uff09\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u7d50\u8ad6\u3068\u3057\u3066\u3001Java Spring Boot\u3068GridDB\u3092\u4f7f\u7528\u3057\u3066\u57fa\u672c\u7684\u306a\u30aa\u30f3\u30e9\u30a4\u30f3\u30c6\u30ad\u30b9\u30c8\u30b9\u30c8\u30ec\u30fc\u30b8\u30b5\u30fc\u30d3\u30b9\u3092\u4f5c\u6210\u3059\u308b\u306e\u306f\u3001\u30b7\u30f3\u30d7\u30eb\u3067\u52b9\u679c\u7684\u306a\u30d7\u30ed\u30bb\u30b9\u3067\u3059\u3002Spring Boot\u306b\u3088\u308a\u3001\u958b\u767a\u8005\u306f\u30b3\u30a2\u306a\u958b\u767a\u4f5c\u696d\u306b\u96c6\u4e2d\u3067\u304d\u3001Thymeleaf\u306f\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3092\u521d\u671f\u306b\u5fc5\u8981\u3068\u3057\u306a\u3044\u305f\u3081\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u30d7\u30ed\u30c8\u30bf\u30a4\u30d4\u30f3\u30b0\u3092\u8fc5\u901f\u5316\u3057\u307e\u3059\u3002GridDB\u306f\u3001blob\u30c7\u30fc\u30bf\u578b\u3092\u4f7f\u7528\u3057\u3066\u30c6\u30ad\u30b9\u30c8\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u4fdd\u5b58\u3092\u52b9\u7387\u7684\u306b\u51e6\u7406\u3057\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30fc\u30d3\u30b9\u3092\u6b21\u306e\u30ec\u30d9\u30eb\u306b\u5f15\u304d\u4e0a\u3052\u308b\u305f\u3081\u306b\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u7bc0\u7d04\u3059\u308b\u305f\u3081\u306e\u30c7\u30fc\u30bf\u5727\u7e2e\u3001\u5404\u30c6\u30ad\u30b9\u30c8\u306e\u30b9\u30cb\u30da\u30c3\u30c8\u306e\u95b2\u89a7\u8005\u6570\u3092\u8ffd\u8de1\u3059\u308b\u305f\u3081\u306e\u30e1\u30c8\u30ea\u30af\u30b9\u306e\u69cb\u7bc9\u3001\u6697\u53f7\u5316\u3092\u691c\u8a0e\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u3089\u306e\u62e1\u5f35\u6a5f\u80fd\u3092\u5b9f\u88c5\u3059\u308b\u3053\u3068\u3067\u3001\u57fa\u672c\u7684\u306a\u30b5\u30fc\u30d3\u30b9\u3092\u5f37\u529b\u3067\u6a5f\u80fd\u8c4a\u5bcc\u306a\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306b\u5909\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30b3\u30fc\u30c9\u3084\u30c6\u30ad\u30b9\u30c8\u3092\u7d20\u65e9\u304f\u5b89\u5168\u306b\u8ab0\u304b\u3068\u5171\u6709\u3059\u308b\u5fc5\u8981\u306b\u8feb\u3089\u308c\u305f\u3053\u3068\u306f\u3042\u308a\u307e\u3059\u304b\uff1f Pastebin\u3084GitHub Gist\u306e\u3088\u3046\u306a\u4f7f\u3044\u3084\u3059\u3044\u30aa\u30f3\u30e9\u30a4\u30f3\u30c6\u30ad\u30b9\u30c8\u30b9\u30c8\u30ec\u30fc\u30b8\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u306e\u30cb\u30fc\u30ba\u304c\u9ad8\u307e\u308b\u4e2d\u3001\u958b\u767a\u8005\u305f\u3061\u306f\u30c6\u30ad\u30b9\u30c8\u30d5 [&hellip;]<\/p>\n","protected":false},"author":41,"featured_media":49751,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1005],"tags":[],"class_list":["post-50916","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-1005"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Spring Boot\u3068GridDB\u3092\u4f7f\u7528\u3057\u305f\u30aa\u30f3\u30e9\u30a4\u30f3\u30c6\u30ad\u30b9\u30c8\u30b9\u30c8\u30ec\u30fc\u30b8\u30b5\u30fc\u30d3\u30b9\u306e\u69cb\u7bc9 | GridDB: Open Source Time Series Database for IoT<\/title>\n<meta name=\"description\" content=\"\u30b3\u30fc\u30c9\u3084\u30c6\u30ad\u30b9\u30c8\u3092\u7d20\u65e9\u304f\u5b89\u5168\u306b\u8ab0\u304b\u3068\u5171\u6709\u3059\u308b\u5fc5\u8981\u306b\u8feb\u3089\u308c\u305f\u3053\u3068\u306f\u3042\u308a\u307e\u3059\u304b\uff1f Pastebin\u3084GitHub\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/\u672a\u5206\u985e\/building-an-online-text-storage-service-using-spring-boot-griddb\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Spring Boot\u3068GridDB\u3092\u4f7f\u7528\u3057\u305f\u30aa\u30f3\u30e9\u30a4\u30f3\u30c6\u30ad\u30b9\u30c8\u30b9\u30c8\u30ec\u30fc\u30b8\u30b5\u30fc\u30d3\u30b9\u306e\u69cb\u7bc9 | GridDB: Open Source Time Series Database for IoT\" \/>\n<meta property=\"og:description\" content=\"\u30b3\u30fc\u30c9\u3084\u30c6\u30ad\u30b9\u30c8\u3092\u7d20\u65e9\u304f\u5b89\u5168\u306b\u8ab0\u304b\u3068\u5171\u6709\u3059\u308b\u5fc5\u8981\u306b\u8feb\u3089\u308c\u305f\u3053\u3068\u306f\u3042\u308a\u307e\u3059\u304b\uff1f Pastebin\u3084GitHub\" \/>\n<meta property=\"og:url\" content=\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/\u672a\u5206\u985e\/building-an-online-text-storage-service-using-spring-boot-griddb\/\" \/>\n<meta property=\"og:site_name\" content=\"GridDB: Open Source Time Series Database for IoT\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/griddbcommunity\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-12-06T08:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-14T15:56:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/wp-content\/uploads\/2024\/12\/blog-onlinetextstorage_update.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1018\" \/>\n\t<meta property=\"og:image:height\" content=\"673\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"griddb-admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@GridDBCommunity\" \/>\n<meta name=\"twitter:site\" content=\"@GridDBCommunity\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"griddb-admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"5\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-online-text-storage-service-using-spring-boot-griddb\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-online-text-storage-service-using-spring-boot-griddb\/\"},\"author\":{\"name\":\"griddb-admin\",\"@id\":\"https:\/\/www.griddb.net\/en\/#\/schema\/person\/4fe914ca9576878e82f5e8dd3ba52233\"},\"headline\":\"Spring Boot\u3068GridDB\u3092\u4f7f\u7528\u3057\u305f\u30aa\u30f3\u30e9\u30a4\u30f3\u30c6\u30ad\u30b9\u30c8\u30b9\u30c8\u30ec\u30fc\u30b8\u30b5\u30fc\u30d3\u30b9\u306e\u69cb\u7bc9\",\"datePublished\":\"2024-12-06T08:00:00+00:00\",\"dateModified\":\"2025-11-14T15:56:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-online-text-storage-service-using-spring-boot-griddb\/\"},\"wordCount\":113,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.griddb.net\/en\/#organization\"},\"image\":{\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-online-text-storage-service-using-spring-boot-griddb\/#primaryimage\"},\"thumbnailUrl\":\"\/wp-content\/uploads\/2024\/12\/blog-onlinetextstorage_update.jpg\",\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-online-text-storage-service-using-spring-boot-griddb\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-online-text-storage-service-using-spring-boot-griddb\/\",\"url\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-online-text-storage-service-using-spring-boot-griddb\/\",\"name\":\"Spring Boot\u3068GridDB\u3092\u4f7f\u7528\u3057\u305f\u30aa\u30f3\u30e9\u30a4\u30f3\u30c6\u30ad\u30b9\u30c8\u30b9\u30c8\u30ec\u30fc\u30b8\u30b5\u30fc\u30d3\u30b9\u306e\u69cb\u7bc9 | GridDB: Open Source Time Series Database for IoT\",\"isPartOf\":{\"@id\":\"https:\/\/www.griddb.net\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-online-text-storage-service-using-spring-boot-griddb\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-online-text-storage-service-using-spring-boot-griddb\/#primaryimage\"},\"thumbnailUrl\":\"\/wp-content\/uploads\/2024\/12\/blog-onlinetextstorage_update.jpg\",\"datePublished\":\"2024-12-06T08:00:00+00:00\",\"dateModified\":\"2025-11-14T15:56:55+00:00\",\"description\":\"\u30b3\u30fc\u30c9\u3084\u30c6\u30ad\u30b9\u30c8\u3092\u7d20\u65e9\u304f\u5b89\u5168\u306b\u8ab0\u304b\u3068\u5171\u6709\u3059\u308b\u5fc5\u8981\u306b\u8feb\u3089\u308c\u305f\u3053\u3068\u306f\u3042\u308a\u307e\u3059\u304b\uff1f Pastebin\u3084GitHub\",\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-online-text-storage-service-using-spring-boot-griddb\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-online-text-storage-service-using-spring-boot-griddb\/#primaryimage\",\"url\":\"\/wp-content\/uploads\/2024\/12\/blog-onlinetextstorage_update.jpg\",\"contentUrl\":\"\/wp-content\/uploads\/2024\/12\/blog-onlinetextstorage_update.jpg\",\"width\":1018,\"height\":673},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.griddb.net\/en\/#website\",\"url\":\"https:\/\/www.griddb.net\/en\/\",\"name\":\"GridDB: Open Source Time Series Database for IoT\",\"description\":\"GridDB is an open source time-series database with the performance of NoSQL and convenience of SQL\",\"publisher\":{\"@id\":\"https:\/\/www.griddb.net\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.griddb.net\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.griddb.net\/en\/#organization\",\"name\":\"Fixstars\",\"url\":\"https:\/\/www.griddb.net\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.griddb.net\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png\",\"contentUrl\":\"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png\",\"width\":200,\"height\":83,\"caption\":\"Fixstars\"},\"image\":{\"@id\":\"https:\/\/www.griddb.net\/en\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/griddbcommunity\/\",\"https:\/\/x.com\/GridDBCommunity\",\"https:\/\/www.linkedin.com\/company\/griddb-by-toshiba\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.griddb.net\/en\/#\/schema\/person\/4fe914ca9576878e82f5e8dd3ba52233\",\"name\":\"griddb-admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.griddb.net\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5bceca1cafc06886a7ba873e2f0a28011a1176c4dea59709f735b63ae30d0342?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5bceca1cafc06886a7ba873e2f0a28011a1176c4dea59709f735b63ae30d0342?s=96&d=mm&r=g\",\"caption\":\"griddb-admin\"},\"url\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/author\/griddb-admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Spring Boot\u3068GridDB\u3092\u4f7f\u7528\u3057\u305f\u30aa\u30f3\u30e9\u30a4\u30f3\u30c6\u30ad\u30b9\u30c8\u30b9\u30c8\u30ec\u30fc\u30b8\u30b5\u30fc\u30d3\u30b9\u306e\u69cb\u7bc9 | GridDB: Open Source Time Series Database for IoT","description":"\u30b3\u30fc\u30c9\u3084\u30c6\u30ad\u30b9\u30c8\u3092\u7d20\u65e9\u304f\u5b89\u5168\u306b\u8ab0\u304b\u3068\u5171\u6709\u3059\u308b\u5fc5\u8981\u306b\u8feb\u3089\u308c\u305f\u3053\u3068\u306f\u3042\u308a\u307e\u3059\u304b\uff1f Pastebin\u3084GitHub","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/\u672a\u5206\u985e\/building-an-online-text-storage-service-using-spring-boot-griddb\/","og_locale":"ja_JP","og_type":"article","og_title":"Spring Boot\u3068GridDB\u3092\u4f7f\u7528\u3057\u305f\u30aa\u30f3\u30e9\u30a4\u30f3\u30c6\u30ad\u30b9\u30c8\u30b9\u30c8\u30ec\u30fc\u30b8\u30b5\u30fc\u30d3\u30b9\u306e\u69cb\u7bc9 | GridDB: Open Source Time Series Database for IoT","og_description":"\u30b3\u30fc\u30c9\u3084\u30c6\u30ad\u30b9\u30c8\u3092\u7d20\u65e9\u304f\u5b89\u5168\u306b\u8ab0\u304b\u3068\u5171\u6709\u3059\u308b\u5fc5\u8981\u306b\u8feb\u3089\u308c\u305f\u3053\u3068\u306f\u3042\u308a\u307e\u3059\u304b\uff1f Pastebin\u3084GitHub","og_url":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/\u672a\u5206\u985e\/building-an-online-text-storage-service-using-spring-boot-griddb\/","og_site_name":"GridDB: Open Source Time Series Database for IoT","article_publisher":"https:\/\/www.facebook.com\/griddbcommunity\/","article_published_time":"2024-12-06T08:00:00+00:00","article_modified_time":"2025-11-14T15:56:55+00:00","og_image":[{"width":1018,"height":673,"url":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/wp-content\/uploads\/2024\/12\/blog-onlinetextstorage_update.jpg","type":"image\/jpeg"}],"author":"griddb-admin","twitter_card":"summary_large_image","twitter_creator":"@GridDBCommunity","twitter_site":"@GridDBCommunity","twitter_misc":{"\u57f7\u7b46\u8005":"griddb-admin","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"5\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-online-text-storage-service-using-spring-boot-griddb\/#article","isPartOf":{"@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-online-text-storage-service-using-spring-boot-griddb\/"},"author":{"name":"griddb-admin","@id":"https:\/\/www.griddb.net\/en\/#\/schema\/person\/4fe914ca9576878e82f5e8dd3ba52233"},"headline":"Spring Boot\u3068GridDB\u3092\u4f7f\u7528\u3057\u305f\u30aa\u30f3\u30e9\u30a4\u30f3\u30c6\u30ad\u30b9\u30c8\u30b9\u30c8\u30ec\u30fc\u30b8\u30b5\u30fc\u30d3\u30b9\u306e\u69cb\u7bc9","datePublished":"2024-12-06T08:00:00+00:00","dateModified":"2025-11-14T15:56:55+00:00","mainEntityOfPage":{"@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-online-text-storage-service-using-spring-boot-griddb\/"},"wordCount":113,"commentCount":0,"publisher":{"@id":"https:\/\/www.griddb.net\/en\/#organization"},"image":{"@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-online-text-storage-service-using-spring-boot-griddb\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2024\/12\/blog-onlinetextstorage_update.jpg","inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-online-text-storage-service-using-spring-boot-griddb\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-online-text-storage-service-using-spring-boot-griddb\/","url":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-online-text-storage-service-using-spring-boot-griddb\/","name":"Spring Boot\u3068GridDB\u3092\u4f7f\u7528\u3057\u305f\u30aa\u30f3\u30e9\u30a4\u30f3\u30c6\u30ad\u30b9\u30c8\u30b9\u30c8\u30ec\u30fc\u30b8\u30b5\u30fc\u30d3\u30b9\u306e\u69cb\u7bc9 | GridDB: Open Source Time Series Database for IoT","isPartOf":{"@id":"https:\/\/www.griddb.net\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-online-text-storage-service-using-spring-boot-griddb\/#primaryimage"},"image":{"@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-online-text-storage-service-using-spring-boot-griddb\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2024\/12\/blog-onlinetextstorage_update.jpg","datePublished":"2024-12-06T08:00:00+00:00","dateModified":"2025-11-14T15:56:55+00:00","description":"\u30b3\u30fc\u30c9\u3084\u30c6\u30ad\u30b9\u30c8\u3092\u7d20\u65e9\u304f\u5b89\u5168\u306b\u8ab0\u304b\u3068\u5171\u6709\u3059\u308b\u5fc5\u8981\u306b\u8feb\u3089\u308c\u305f\u3053\u3068\u306f\u3042\u308a\u307e\u3059\u304b\uff1f Pastebin\u3084GitHub","inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-online-text-storage-service-using-spring-boot-griddb\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-online-text-storage-service-using-spring-boot-griddb\/#primaryimage","url":"\/wp-content\/uploads\/2024\/12\/blog-onlinetextstorage_update.jpg","contentUrl":"\/wp-content\/uploads\/2024\/12\/blog-onlinetextstorage_update.jpg","width":1018,"height":673},{"@type":"WebSite","@id":"https:\/\/www.griddb.net\/en\/#website","url":"https:\/\/www.griddb.net\/en\/","name":"GridDB: Open Source Time Series Database for IoT","description":"GridDB is an open source time-series database with the performance of NoSQL and convenience of SQL","publisher":{"@id":"https:\/\/www.griddb.net\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.griddb.net\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/www.griddb.net\/en\/#organization","name":"Fixstars","url":"https:\/\/www.griddb.net\/en\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.griddb.net\/en\/#\/schema\/logo\/image\/","url":"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png","contentUrl":"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png","width":200,"height":83,"caption":"Fixstars"},"image":{"@id":"https:\/\/www.griddb.net\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/griddbcommunity\/","https:\/\/x.com\/GridDBCommunity","https:\/\/www.linkedin.com\/company\/griddb-by-toshiba"]},{"@type":"Person","@id":"https:\/\/www.griddb.net\/en\/#\/schema\/person\/4fe914ca9576878e82f5e8dd3ba52233","name":"griddb-admin","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.griddb.net\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5bceca1cafc06886a7ba873e2f0a28011a1176c4dea59709f735b63ae30d0342?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5bceca1cafc06886a7ba873e2f0a28011a1176c4dea59709f735b63ae30d0342?s=96&d=mm&r=g","caption":"griddb-admin"},"url":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/author\/griddb-admin\/"}]}},"_links":{"self":[{"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/wp-json\/wp\/v2\/posts\/50916","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/wp-json\/wp\/v2\/users\/41"}],"replies":[{"embeddable":true,"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/wp-json\/wp\/v2\/comments?post=50916"}],"version-history":[{"count":1,"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/wp-json\/wp\/v2\/posts\/50916\/revisions"}],"predecessor-version":[{"id":51733,"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/wp-json\/wp\/v2\/posts\/50916\/revisions\/51733"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/wp-json\/wp\/v2\/media\/49751"}],"wp:attachment":[{"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/wp-json\/wp\/v2\/media?parent=50916"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/wp-json\/wp\/v2\/categories?post=50916"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/wp-json\/wp\/v2\/tags?post=50916"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}