{"id":521,"date":"2022-10-24T06:59:35","date_gmt":"2022-09-08T09:49:37","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/spring%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8bbean%e3%81%ae%e3%83%a9%e3%82%a4%e3%83%95%e3%82%b5%e3%82%a4%e3%82%af%e3%83%ab\/"},"modified":"2025-08-01T00:15:13","modified_gmt":"2025-07-31T15:15:13","slug":"spring%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8bbean%e3%81%ae%e3%83%a9%e3%82%a4%e3%83%95%e3%82%b5%e3%82%a4%e3%82%af%e3%83%ab","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/spring%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8bbean%e3%81%ae%e3%83%a9%e3%82%a4%e3%83%95%e3%82%b5%e3%82%a4%e3%82%af%e3%83%ab\/","title":{"rendered":"Spring\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u304a\u3051\u308bBean\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb"},"content":{"rendered":"<p>\u4eca\u65e5\u306fSpring Bean\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u306b\u3064\u3044\u3066\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002Spring Beans\u306fSpring\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u6700\u3082\u91cd\u8981\u306a\u90e8\u5206\u3067\u3059\u3002Spring\u306eApplicationContext\u306f\u3001spring bean\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u5b9a\u7fa9\u3055\u308c\u305fSpring Beans\u3092\u521d\u671f\u5316\u3059\u308b\u8cac\u4efb\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30d7\u30ea\u30f3\u30b0\u30d3\u30fc\u30f3\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb<\/h2>\n<p>Spring\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306f\u3001spring\u306eautowiring\u306b\u3088\u308b\u4f9d\u5b58\u95a2\u4fc2\u306e\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u3084\u3001\u30bb\u30c3\u30bf\u30fc\u3084\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u30fc\u30e1\u30bd\u30c3\u30c9\u3092\u901a\u3058\u305fbean\u3078\u306e\u4f9d\u5b58\u95a2\u4fc2\u306e\u6ce8\u5165\u306b\u3082\u8cac\u4efb\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002\u6642\u306b\u306f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u3042\u308b\u524d\u306b\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u63a5\u7d9a\u306e\u4f5c\u6210\u3084\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u30fc\u30b5\u30fc\u30d3\u30b9\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u3001bean\u30af\u30e9\u30b9\u5185\u3067\u30ea\u30bd\u30fc\u30b9\u3092\u521d\u671f\u5316\u3057\u305f\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002Spring\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u306f\u3001spring bean\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u3067\u306e\u4e8b\u5f8c\u521d\u671f\u5316\u3084\u4e8b\u524d\u7834\u68c4\u306e\u65b9\u6cd5\u3092\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>InitializingBean\u3068DisposableBean\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u5b9f\u88c5\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u3053\u308c\u3089\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306f\u30d3\u30fc\u30f3\u5185\u306e\u30ea\u30bd\u30fc\u30b9\u3092\u521d\u671f\u5316\/\u30af\u30ed\u30fc\u30ba\u3059\u308b\u5358\u4e00\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u5ba3\u8a00\u3057\u307e\u3059\u3002\u30dd\u30b9\u30c8\u521d\u671f\u5316\u3067\u306f\u3001InitializingBean\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u5b9f\u88c5\u3057\u3001afterPropertiesSet()\u30e1\u30bd\u30c3\u30c9\u306e\u5b9f\u88c5\u3092\u63d0\u4f9b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30d7\u30ea\u30c7\u30b9\u30c8\u30ed\u30a4\u3067\u306f\u3001DisposableBean\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u5b9f\u88c5\u3057\u3001destroy()\u30e1\u30bd\u30c3\u30c9\u306e\u5b9f\u88c5\u3092\u63d0\u4f9b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30e1\u30bd\u30c3\u30c9\u306f\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u30e1\u30bd\u30c3\u30c9\u3067\u3042\u308a\u3001\u30b5\u30fc\u30d6\u30ec\u30c3\u30c8\u30ea\u30b9\u30ca\u30fc\u306e\u5b9f\u88c5\u3068\u985e\u4f3c\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30a2\u30d7\u30ed\u30fc\u30c1\u306f\u4f7f\u3044\u3084\u3059\u3044\u3067\u3059\u304c\u3001\u30d3\u30fc\u30f3\u306e\u5b9f\u88c5\u306bSpring\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068\u306e\u7dca\u5bc6\u306a\u7d50\u5408\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u3001\u63a8\u5968\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>spring bean\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u30d3\u30fc\u30f3\u306binit-method\u3068destroy-method\u5c5e\u6027\u5024\u3092\u63d0\u4f9b\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002\u3053\u308c\u306f\u63a8\u5968\u3055\u308c\u308b\u30a2\u30d7\u30ed\u30fc\u30c1\u3067\u3059\u3002\u76f4\u63a5Spring\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3078\u306e\u4f9d\u5b58\u304c\u306a\u304f\u3001\u72ec\u81ea\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/ol>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u307e\u3059\uff1a<\/p>\n<p>post-init\u3068pre-destroy\u30e1\u30bd\u30c3\u30c9\u306e\u4e21\u65b9\u306f\u5f15\u6570\u3092\u6301\u305f\u306a\u3044\u3067\u3001\u305f\u3060\u3057\u4f8b\u5916\u3092\u30b9\u30ed\u30fc\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30e1\u30bd\u30c3\u30c9\u306e\u547c\u3073\u51fa\u3057\u306e\u305f\u3081\u306b\u3001Spring\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u304b\u3089Bean\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u53d6\u5f97\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>\u30b9\u30d7\u30ea\u30f3\u30b0\u30fb\u30d3\u30fc\u30f3\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb &#8211; @PostConstruct\u3001@PreDestroy\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3<\/h3>\n<p>Spring\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306f\u3001@PostConstruct\u3068@PreDestroy\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3082\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u304a\u308a\u3001\u3053\u308c\u3089\u3092\u4f7f\u7528\u3057\u3066\u30dd\u30b9\u30c8\u521d\u671f\u5316\u304a\u3088\u3073\u30d7\u30ec\u30c7\u30a3\u30b9\u30c8\u30ed\u30a4\u30e1\u30bd\u30c3\u30c9\u3092\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306fjavax.annotation\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u4e00\u90e8\u3067\u3059\u3002\u305f\u3060\u3057\u3001\u3053\u308c\u3089\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u304c\u6a5f\u80fd\u3059\u308b\u305f\u3081\u306b\u306f\u3001Spring\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u691c\u7d22\u3059\u308b\u3088\u3046\u306b\u69cb\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u3001org.springframework.context.annotation.CommonAnnotationBeanPostProcessor\u306e\u30bf\u30a4\u30d7\u306e\u30d3\u30fc\u30f3\u3092\u5b9a\u7fa9\u3059\u308b\u304b\u3001spring\u30d3\u30fc\u30f3\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u306econtext:annotation-config\u8981\u7d20\u3067\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4e0a\u8a18\u306e\u69cb\u6210\u3092\u4f7f\u7528\u3057\u3066Spring\u30d3\u30fc\u30f3\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u7ba1\u7406\u306e\u4f7f\u7528\u4f8b\u3092\u793a\u3059\u305f\u3081\u306b\u3001\u7c21\u5358\u306aSpring\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002Spring Tool Suite\u3067Spring Maven\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u3001\u6700\u7d42\u7684\u306a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30a4\u30e1\u30fc\u30b8\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>Spring\u306eBean\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb &#8211; Maven\u306e\u4f9d\u5b58\u95a2\u4fc2<\/h3>\n<p>\u79c1\u305f\u3061\u306f\u3001Spring\u306eBean\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u30e1\u30bd\u30c3\u30c9\u3092\u8a2d\u5b9a\u3059\u308b\u305f\u3081\u306b\u8ffd\u52a0\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u542b\u3081\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002pom.xml\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u4ed6\u306e\u6a19\u6e96\u7684\u306aSpring Maven\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3068\u540c\u69d8\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;project xmlns=\"https:\/\/maven.apache.org\/POM\/4.0.0\" xmlns:xsi=\"https:\/\/www.w3.org\/2001\/XMLSchema-instance\" xsi:schemaLocation=\"https:\/\/maven.apache.org\/POM\/4.0.0 https:\/\/maven.apache.org\/xsd\/maven-4.0.0.xsd\"&gt;\r\n  &lt;modelVersion&gt;4.0.0&lt;\/modelVersion&gt;\r\n  &lt;groupId&gt;org.springframework.samples&lt;\/groupId&gt;\r\n  &lt;artifactId&gt;SpringBeanLifeCycle&lt;\/artifactId&gt;\r\n  &lt;version&gt;0.0.1-SNAPSHOT&lt;\/version&gt;\r\n  \r\n  &lt;properties&gt;\r\n\r\n\t\t&lt;!-- Generic properties --&gt;\r\n\t\t&lt;java.version&gt;1.7&lt;\/java.version&gt;\r\n\t\t&lt;project.build.sourceEncoding&gt;UTF-8&lt;\/project.build.sourceEncoding&gt;\r\n\t\t&lt;project.reporting.outputEncoding&gt;UTF-8&lt;\/project.reporting.outputEncoding&gt;\r\n\r\n\t\t&lt;!-- Spring --&gt;\r\n\t\t&lt;spring-framework.version&gt;4.0.2.RELEASE&lt;\/spring-framework.version&gt;\r\n\r\n\t\t&lt;!-- Logging --&gt;\r\n\t\t&lt;logback.version&gt;1.0.13&lt;\/logback.version&gt;\r\n\t\t&lt;slf4j.version&gt;1.7.5&lt;\/slf4j.version&gt;\r\n\r\n\t&lt;\/properties&gt;\r\n\t\r\n\t&lt;dependencies&gt;\r\n\t\t&lt;!-- Spring and Transactions --&gt;\r\n\t\t&lt;dependency&gt;\r\n\t\t\t&lt;groupId&gt;org.springframework&lt;\/groupId&gt;\r\n\t\t\t&lt;artifactId&gt;spring-context&lt;\/artifactId&gt;\r\n\t\t\t&lt;version&gt;${spring-framework.version}&lt;\/version&gt;\r\n\t\t&lt;\/dependency&gt;\r\n\t\t&lt;dependency&gt;\r\n\t\t\t&lt;groupId&gt;org.springframework&lt;\/groupId&gt;\r\n\t\t\t&lt;artifactId&gt;spring-tx&lt;\/artifactId&gt;\r\n\t\t\t&lt;version&gt;${spring-framework.version}&lt;\/version&gt;\r\n\t\t&lt;\/dependency&gt;\r\n\r\n\t\t&lt;!-- Logging with SLF4J &amp; LogBack --&gt;\r\n\t\t&lt;dependency&gt;\r\n\t\t\t&lt;groupId&gt;org.slf4j&lt;\/groupId&gt;\r\n\t\t\t&lt;artifactId&gt;slf4j-api&lt;\/artifactId&gt;\r\n\t\t\t&lt;version&gt;${slf4j.version}&lt;\/version&gt;\r\n\t\t\t&lt;scope&gt;compile&lt;\/scope&gt;\r\n\t\t&lt;\/dependency&gt;\r\n\t\t&lt;dependency&gt;\r\n\t\t\t&lt;groupId&gt;ch.qos.logback&lt;\/groupId&gt;\r\n\t\t\t&lt;artifactId&gt;logback-classic&lt;\/artifactId&gt;\r\n\t\t\t&lt;version&gt;${logback.version}&lt;\/version&gt;\r\n\t\t\t&lt;scope&gt;runtime&lt;\/scope&gt;\r\n\t\t&lt;\/dependency&gt;\r\n\r\n\t&lt;\/dependencies&gt;\t\r\n&lt;\/project&gt;\r\n<\/code><\/pre>\n<h3>\u30b9\u30d7\u30ea\u30f3\u30b0\u30d3\u30fc\u30f3\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb &#8211; \u30e2\u30c7\u30eb\u30af\u30e9\u30b9<\/h3>\n<p>\u30b5\u30fc\u30d3\u30b9\u30af\u30e9\u30b9\u3067\u4f7f\u7528\u3059\u308b\u30b7\u30f3\u30d7\u30eb\u306aJava\u30d3\u30fc\u30f3\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.spring.bean;\r\n\r\npublic class Employee {\r\n\r\n\tprivate String name;\r\n\r\n\tpublic String getName() {\r\n\t\treturn name;\r\n\t}\r\n\r\n\tpublic void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}\r\n\t\r\n}\r\n<\/code><\/pre>\n<h3>\u6625\u306e\u30d3\u30fc\u30f3\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb &#8211; InitializingBean, DisposableBean\u3092\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u30d3\u30fc\u30f3\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u306b\u95a2\u3059\u308bSpring\u306e\u51e6\u7406 &#8211; InitializingBean\u3001DisposableBean<\/h3>\n<p>\u300cpost-init\u300d\u3068\u300cpre-destroy\u300d\u30e1\u30bd\u30c3\u30c9\u306e\u4e21\u65b9\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u5b9f\u88c5\u3059\u308b\u30b5\u30fc\u30d3\u30b9\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.spring.service;\r\n\r\nimport org.springframework.beans.factory.DisposableBean;\r\nimport org.springframework.beans.factory.InitializingBean;\r\n\r\nimport com.scdev.spring.bean.Employee;\r\n\r\npublic class EmployeeService implements InitializingBean, DisposableBean{\r\n\r\n\tprivate Employee employee;\r\n\r\n\tpublic Employee getEmployee() {\r\n\t\treturn employee;\r\n\t}\r\n\r\n\tpublic void setEmployee(Employee employee) {\r\n\t\tthis.employee = employee;\r\n\t}\r\n\t\r\n\tpublic EmployeeService(){\r\n\t\tSystem.out.println(\"EmployeeService no-args constructor called\");\r\n\t}\r\n\r\n\t@Override\r\n\tpublic void destroy() throws Exception {\r\n\t\tSystem.out.println(\"EmployeeService Closing resources\");\r\n\t}\r\n\r\n\t@Override\r\n\tpublic void afterPropertiesSet() throws Exception {\r\n\t\tSystem.out.println(\"EmployeeService initializing to dummy value\");\r\n\t\tif(employee.getName() == null){\r\n\t\t\temployee.setName(\"Pankaj\");\r\n\t\t}\r\n\t}\r\n}\r\n<\/code><\/pre>\n<h3>\u30b9\u30d7\u30ea\u30f3\u30b0\u30d3\u30fc\u30f3\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb &#8211; \u30ab\u30b9\u30bf\u30e0\u306e\u30dd\u30b9\u30c8\u521d\u671f\u5316\u30fb\u30d7\u30ea\u30c7\u30b9\u30c8\u30ed\u30a4\u3002<\/h3>\n<p>\u79c1\u305f\u3061\u306f\u3001\u79c1\u305f\u3061\u306e\u30b5\u30fc\u30d3\u30b9\u304c\u76f4\u63a5\u7684\u306bSpring Framework\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u6301\u3064\u3053\u3068\u3092\u671b\u3093\u3067\u3044\u306a\u3044\u306e\u3067\u3001post-init\u3068pre-destroy\u306eSpring\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u30e1\u30bd\u30c3\u30c9\u3092\u6301\u3064\u5225\u306e\u5f62\u5f0f\u306eEmployee Service\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002\u305d\u3057\u3066\u3001\u305d\u308c\u3089\u3092Spring\u306ebean\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.spring.service;\r\n\r\nimport com.scdev.spring.bean.Employee;\r\n\r\npublic class MyEmployeeService{\r\n\r\n\tprivate Employee employee;\r\n\r\n\tpublic Employee getEmployee() {\r\n\t\treturn employee;\r\n\t}\r\n\r\n\tpublic void setEmployee(Employee employee) {\r\n\t\tthis.employee = employee;\r\n\t}\r\n\t\r\n\tpublic MyEmployeeService(){\r\n\t\tSystem.out.println(\"MyEmployeeService no-args constructor called\");\r\n\t}\r\n\r\n\t\/\/pre-destroy method\r\n\tpublic void destroy() throws Exception {\r\n\t\tSystem.out.println(\"MyEmployeeService Closing resources\");\r\n\t}\r\n\r\n\t\/\/post-init method\r\n\tpublic void init() throws Exception {\r\n\t\tSystem.out.println(\"MyEmployeeService initializing to dummy value\");\r\n\t\tif(employee.getName() == null){\r\n\t\t\temployee.setName(\"Pankaj\");\r\n\t\t}\r\n\t}\r\n}\r\n<\/code><\/pre>\n<p>\u5c11\u3005\u3067\u3059\u304c\u3001\u6625\u306eBean\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u8abf\u67fb\u3057\u307e\u3057\u3087\u3046\u3002\u305d\u306e\u524d\u306b\u3001\uff20PostConstruct\u3068\uff20PreDestroy\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3059\u308b\u5225\u306e\u30b5\u30fc\u30d3\u30b9\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u30b9\u30d7\u30ea\u30f3\u30b0\u30d3\u30fc\u30f3\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb &#8211; @PostConstruct\u3001@PreDestroy<\/h3>\n<p>\u4ee5\u4e0b\u306f\u3001Spring Bean\u3068\u3057\u3066\u8a2d\u5b9a\u3055\u308c\u308b\u5358\u7d14\u306a\u30af\u30e9\u30b9\u3067\u3059\u3002\u3053\u306e\u30af\u30e9\u30b9\u3067\u306f\u3001@PostConstruct\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3068@PreDestroy\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3001\u30dd\u30b9\u30c8\u521d\u671f\u5316\u3068\u30d7\u30ea\u30c7\u30b9\u30c8\u30ed\u30a4\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u88c5\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.spring.service;\r\n\r\nimport javax.annotation.PostConstruct;\r\nimport javax.annotation.PreDestroy;\r\n\r\npublic class MyService {\r\n\r\n\t@PostConstruct\r\n\tpublic void init(){\r\n\t\tSystem.out.println(\"MyService init method called\");\r\n\t}\r\n\t\r\n\tpublic MyService(){\r\n\t\tSystem.out.println(\"MyService no-args constructor called\");\r\n\t}\r\n\t\r\n\t@PreDestroy\r\n\tpublic void destory(){\r\n\t\tSystem.out.println(\"MyService destroy method called\");\r\n\t}\r\n}\r\n<\/code><\/pre>\n<h3>\u6625\u306e\u30d3\u30fc\u30f3\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb &#8211; \u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb<\/h3>\n<p>\u300c\u79c1\u305f\u3061\u306f\u3001Spring\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3067\u3069\u306e\u3088\u3046\u306b\u30d3\u30fc\u30f3\u3092\u8a2d\u5b9a\u3059\u308b\u304b\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u300d<\/p>\n<pre class=\"post-pre\"><code>&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\r\n&lt;beans xmlns=\"https:\/\/www.springframework.org\/schema\/beans\"\r\n\txmlns:xsi=\"https:\/\/www.w3.org\/2001\/XMLSchema-instance\"\r\n\txsi:schemaLocation=\"https:\/\/www.springframework.org\/schema\/beans https:\/\/www.springframework.org\/schema\/beans\/spring-beans.xsd\"&gt;\r\n\r\n&lt;!-- Not initializing employee name variable--&gt;\r\n&lt;bean name=\"employee\" class=\"com.scdev.spring.bean.Employee\" \/&gt;\r\n\r\n&lt;bean name=\"employeeService\" class=\"com.scdev.spring.service.EmployeeService\"&gt;\r\n\t&lt;property name=\"employee\" ref=\"employee\"&gt;&lt;\/property&gt;\r\n&lt;\/bean&gt;\r\n\r\n&lt;bean name=\"myEmployeeService\" class=\"com.scdev.spring.service.MyEmployeeService\"\r\n\t\tinit-method=\"init\" destroy-method=\"destroy\"&gt;\r\n\t&lt;property name=\"employee\" ref=\"employee\"&gt;&lt;\/property&gt;\r\n&lt;\/bean&gt;\r\n\r\n&lt;!-- initializing CommonAnnotationBeanPostProcessor is same as context:annotation-config --&gt;\r\n&lt;bean class=\"org.springframework.context.annotation.CommonAnnotationBeanPostProcessor\" \/&gt;\r\n&lt;bean name=\"myService\" class=\"com.scdev.spring.service.MyService\" \/&gt;\r\n&lt;\/beans&gt;\r\n<\/code><\/pre>\n<p>\u5f93\u696d\u54e1\u306e\u540d\u524d\u3092\u30d3\u30fc\u30f3\u306e\u5b9a\u7fa9\u3067\u521d\u671f\u5316\u3057\u3066\u3044\u306a\u3044\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002EmployeeService\u306f\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u3053\u3053\u3067\u306f\u7279\u5225\u306a\u8a2d\u5b9a\u306f\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093\u3002MyEmployeeService\u30d3\u30fc\u30f3\u3067\u306f\u3001init-method\u3068destroy-method\u5c5e\u6027\u3092\u4f7f\u7528\u3057\u3066\u3001Spring\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u5b9f\u884c\u3059\u308b\u30ab\u30b9\u30bf\u30e0\u30e1\u30bd\u30c3\u30c9\u3092\u77e5\u3089\u305b\u3066\u3044\u307e\u3059\u3002MyService\u30d3\u30fc\u30f3\u306e\u69cb\u6210\u306b\u7279\u5225\u306a\u3082\u306e\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u6ce8\u91c8\u30d9\u30fc\u30b9\u306e\u8a2d\u5b9a\u3092\u6709\u52b9\u306b\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u6e96\u5099\u304c\u3067\u304d\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u3055\u307e\u3056\u307e\u306a\u30e1\u30bd\u30c3\u30c9\u304c\u3069\u306e\u3088\u3046\u306b\u5b9f\u884c\u3055\u308c\u308b\u304b\u3092\u30c6\u30b9\u30c8\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u3057\u3066\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u6625\u306e\u30d3\u30fc\u30f3\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb &#8211; \u30c6\u30b9\u30c8\u30d7\u30ed\u30b0\u30e9\u30e0<\/h3>\n<pre class=\"post-pre\"><code>package com.scdev.spring.main;\r\n\r\nimport org.springframework.context.support.ClassPathXmlApplicationContext;\r\n\r\nimport com.scdev.spring.service.EmployeeService;\r\nimport com.scdev.spring.service.MyEmployeeService;\r\n\r\npublic class SpringMain {\r\n\r\n\tpublic static void main(String[] args) {\r\n\t\tClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(\"spring.xml\");\r\n\r\n\t\tSystem.out.println(\"Spring Context initialized\");\r\n\t\t\r\n\t\t\/\/MyEmployeeService service = ctx.getBean(\"myEmployeeService\", MyEmployeeService.class);\r\n\t\tEmployeeService service = ctx.getBean(\"employeeService\", EmployeeService.class);\r\n\r\n\t\tSystem.out.println(\"Bean retrieved from Spring Context\");\r\n\t\t\r\n\t\tSystem.out.println(\"Employee Name=\"+service.getEmployee().getName());\r\n\t\t\r\n\t\tctx.close();\r\n\t\tSystem.out.println(\"Spring Context Closed\");\r\n\t}\r\n\r\n}\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30c6\u30b9\u30c8\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u51fa\u529b\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>Apr 01, 2014 10:50:50 PM org.springframework.context.support.ClassPathXmlApplicationContext prepareRefresh\r\nINFO: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@c1b9b03: startup date [Tue Apr 01 22:50:50 PDT 2014]; root of context hierarchy\r\nApr 01, 2014 10:50:50 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions\r\nINFO: Loading XML bean definitions from class path resource [spring.xml]\r\nEmployeeService no-args constructor called\r\nEmployeeService initializing to dummy value\r\nMyEmployeeService no-args constructor called\r\nMyEmployeeService initializing to dummy value\r\nMyService no-args constructor called\r\nMyService init method called\r\nSpring Context initialized\r\nBean retrieved from Spring Context\r\nEmployee Name=Pankaj\r\nApr 01, 2014 10:50:50 PM org.springframework.context.support.ClassPathXmlApplicationContext doClose\r\nINFO: Closing org.springframework.context.support.ClassPathXmlApplicationContext@c1b9b03: startup date [Tue Apr 01 22:50:50 PDT 2014]; root of context hierarchy\r\nMyService destroy method called\r\nMyEmployeeService Closing resources\r\nEmployeeService Closing resources\r\nSpring Context Closed\r\n<\/code><\/pre>\n<p>\u6625\u306eBean\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u306e\u91cd\u8981\u30dd\u30a4\u30f3\u30c8:<\/p>\n<ul class=\"post-ul\">\n<li>From the console output it\u2019s clear that Spring Context is first using no-args constructor to initialize the bean object and then calling the post-init method.<\/li>\n<li>The order of bean initialization is same as it\u2019s defined in the spring bean configuration file.<\/li>\n<li>The context is returned only when all the spring beans are initialized properly with post-init method executions.<\/li>\n<li>Employee name is printed as \u201cPankaj\u201d because it was initialized in the post-init method.<\/li>\n<li>When context is getting closed, beans are destroyed in the reverse order in which they were initialized i.e in LIFO (Last-In-First-Out) order.<\/li>\n<\/ul>\n<p>\u4e0a\u8a18\u306e\u30dd\u30a4\u30f3\u30c8\u306b\u5f93\u3063\u3066\u3001`MyEmployeeService` \u306e\u7a2e\u985e\u306e\u30d3\u30fc\u30f3\u3092\u53d6\u5f97\u3057\u3001\u51fa\u529b\u304c\u540c\u69d8\u3067\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u3001\u30b3\u30fc\u30c9\u306e\u30b3\u30e1\u30f3\u30c8\u3092\u5916\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>Spring Aware \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9<\/h2>\n<p>\u79c1\u305f\u3061\u306f\u3001\u6642\u306b\u306fSpring Framework\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u79c1\u305f\u3061\u306e\u30d3\u30fc\u30f3\u3067\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001ServletConfig\u3084ServletContext\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u8aad\u307f\u53d6\u308b\u305f\u3081\u3001\u307e\u305f\u306fApplicationContext\u306b\u3088\u3063\u3066\u30ed\u30fc\u30c9\u3055\u308c\u305f\u30d3\u30fc\u30f3\u5b9a\u7fa9\u3092\u77e5\u308b\u305f\u3081\u306b\u3067\u3059\u3002\u305d\u306e\u305f\u3081\u3001Spring Framework\u306f\u79c1\u305f\u3061\u304c\u30d3\u30fc\u30f3\u30af\u30e9\u30b9\u3067\u5b9f\u88c5\u3067\u304d\u308b\u3044\u304f\u3064\u304b\u306e*Aware\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002 org.springframework.beans.factory.Aware\u306f\u3001\u3053\u308c\u3089\u3059\u3079\u3066\u306eAware\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u30eb\u30fc\u30c8\u30de\u30fc\u30ab\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3067\u3059\u3002*Aware\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306f\u3059\u3079\u3066Aware\u306e\u30b5\u30d6\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3067\u3042\u308a\u3001\u30d3\u30fc\u30f3\u306b\u3088\u3063\u3066\u5b9f\u88c5\u3055\u308c\u308b\u5358\u4e00\u306esetter\u30e1\u30bd\u30c3\u30c9\u3092\u5ba3\u8a00\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u5f8c\u3001Spring\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306f\u3001setter\u30d9\u30fc\u30b9\u306e\u4f9d\u5b58\u6027\u6ce8\u5165\u3092\u4f7f\u7528\u3057\u3066\u5bfe\u5fdc\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u30d3\u30fc\u30f3\u306b\u6ce8\u5165\u3057\u3001\u79c1\u305f\u3061\u306e\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002Spring Aware\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306f\u3001\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u30e1\u30bd\u30c3\u30c9\u3092\u6301\u3064\u30b5\u30fc\u30d6\u30ec\u30c3\u30c8\u30ea\u30b9\u30ca\u30fc\u3084\u30aa\u30d6\u30b6\u30fc\u30d0\u30fc\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u3092\u5b9f\u88c5\u3059\u308b\u3053\u3068\u3068\u4f3c\u3066\u3044\u307e\u3059\u3002\u91cd\u8981\u306aAware\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u3044\u304f\u3064\u304b\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\uff1a<\/p>\n<ul class=\"post-ul\">\n<li>ApplicationContextAware &#8211; to inject ApplicationContext object, example usage is to get the array of bean definition names.<\/li>\n<li>BeanFactoryAware &#8211; to inject BeanFactory object, example usage is to check scope of a bean.<\/li>\n<li>BeanNameAware &#8211; to know the bean name defined in the configuration file.<\/li>\n<li>ResourceLoaderAware &#8211; to inject ResourceLoader object, example usage is to get the input stream for a file in the classpath.<\/li>\n<li>ServletContextAware &#8211; to inject ServletContext object in MVC application, example usage is to read context parameters and attributes.<\/li>\n<li>ServletConfigAware &#8211; to inject ServletConfig object in MVC application, example usage is to get servlet config parameters.<\/li>\n<\/ul>\n<p>\u3053\u308c\u3089\u306eAware\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u4f7f\u7528\u65b9\u6cd5\u3092\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002\u79c1\u305f\u3061\u306f\u3001\u305d\u308c\u3089\u3092\u3044\u304f\u3064\u304b\u30af\u30e9\u30b9\u306b\u5b9f\u88c5\u3057\u3066\u3001Spring\u306eBean\u3068\u3057\u3066\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.spring.service;\r\n\r\nimport java.util.Arrays;\r\n\r\nimport org.springframework.beans.BeansException;\r\nimport org.springframework.beans.factory.BeanClassLoaderAware;\r\nimport org.springframework.beans.factory.BeanFactory;\r\nimport org.springframework.beans.factory.BeanFactoryAware;\r\nimport org.springframework.beans.factory.BeanNameAware;\r\nimport org.springframework.context.ApplicationContext;\r\nimport org.springframework.context.ApplicationContextAware;\r\nimport org.springframework.context.ApplicationEventPublisher;\r\nimport org.springframework.context.ApplicationEventPublisherAware;\r\nimport org.springframework.context.EnvironmentAware;\r\nimport org.springframework.context.ResourceLoaderAware;\r\nimport org.springframework.context.annotation.ImportAware;\r\nimport org.springframework.core.env.Environment;\r\nimport org.springframework.core.io.Resource;\r\nimport org.springframework.core.io.ResourceLoader;\r\nimport org.springframework.core.type.AnnotationMetadata;\r\n\r\npublic class MyAwareService implements ApplicationContextAware,\r\n\t\tApplicationEventPublisherAware, BeanClassLoaderAware, BeanFactoryAware,\r\n\t\tBeanNameAware, EnvironmentAware, ImportAware, ResourceLoaderAware {\r\n\r\n\t@Override\r\n\tpublic void setApplicationContext(ApplicationContext ctx)\r\n\t\t\tthrows BeansException {\r\n\t\tSystem.out.println(\"setApplicationContext called\");\r\n\t\tSystem.out.println(\"setApplicationContext:: Bean Definition Names=\"\r\n\t\t\t\t+ Arrays.toString(ctx.getBeanDefinitionNames()));\r\n\t}\r\n\r\n\t@Override\r\n\tpublic void setBeanName(String beanName) {\r\n\t\tSystem.out.println(\"setBeanName called\");\r\n\t\tSystem.out.println(\"setBeanName:: Bean Name defined in context=\"\r\n\t\t\t\t+ beanName);\r\n\t}\r\n\r\n\t@Override\r\n\tpublic void setBeanClassLoader(ClassLoader classLoader) {\r\n\t\tSystem.out.println(\"setBeanClassLoader called\");\r\n\t\tSystem.out.println(\"setBeanClassLoader:: ClassLoader Name=\"\r\n\t\t\t\t+ classLoader.getClass().getName());\r\n\t}\r\n\r\n\t@Override\r\n\tpublic void setResourceLoader(ResourceLoader resourceLoader) {\r\n\t\tSystem.out.println(\"setResourceLoader called\");\r\n\t\tResource resource = resourceLoader.getResource(\"classpath:spring.xml\");\r\n\t\tSystem.out.println(\"setResourceLoader:: Resource File Name=\"\r\n\t\t\t\t+ resource.getFilename());\r\n\t}\r\n\r\n\t@Override\r\n\tpublic void setImportMetadata(AnnotationMetadata annotationMetadata) {\r\n\t\tSystem.out.println(\"setImportMetadata called\");\r\n\t}\r\n\r\n\t@Override\r\n\tpublic void setEnvironment(Environment env) {\r\n\t\tSystem.out.println(\"setEnvironment called\");\r\n\t}\r\n\r\n\t@Override\r\n\tpublic void setBeanFactory(BeanFactory beanFactory) throws BeansException {\r\n\t\tSystem.out.println(\"setBeanFactory called\");\r\n\t\tSystem.out.println(\"setBeanFactory:: employee bean singleton=\"\r\n\t\t\t\t+ beanFactory.isSingleton(\"employee\"));\r\n\t}\r\n\r\n\t@Override\r\n\tpublic void setApplicationEventPublisher(\r\n\t\t\tApplicationEventPublisher applicationEventPublisher) {\r\n\t\tSystem.out.println(\"setApplicationEventPublisher called\");\r\n\t}\r\n\r\n}\r\n<\/code><\/pre>\n<h3>\u6625\u306e*Aware\u306e\u4f8b\u3068\u306a\u308b\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb<\/h3>\n<p>\u975e\u5e38\u306b\u30b7\u30f3\u30d7\u30eb\u306aSpring\u30d3\u30fc\u30f3\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\r\n&lt;beans xmlns=\"https:\/\/www.springframework.org\/schema\/beans\"\r\n\txmlns:xsi=\"https:\/\/www.w3.org\/2001\/XMLSchema-instance\"\r\n\txsi:schemaLocation=\"https:\/\/www.springframework.org\/schema\/beans https:\/\/www.springframework.org\/schema\/beans\/spring-beans.xsd\"&gt;\r\n\r\n&lt;bean name=\"employee\" class=\"com.scdev.spring.bean.Employee\" \/&gt;\r\n\r\n&lt;bean name=\"myAwareService\" class=\"com.scdev.spring.service.MyAwareService\" \/&gt;\r\n\r\n&lt;\/beans&gt;\r\n<\/code><\/pre>\n<h3>\u6625\u306e\u30a2\u30a6\u30a7\u30a2\u30c6\u30b9\u30c8\u30d7\u30ed\u30b0\u30e9\u30e0<\/h3>\n<pre class=\"post-pre\"><code>package com.scdev.spring.main;\r\n\r\nimport org.springframework.context.support.ClassPathXmlApplicationContext;\r\n\r\nimport com.scdev.spring.service.MyAwareService;\r\n\r\npublic class SpringAwareMain {\r\n\r\n\tpublic static void main(String[] args) {\r\n\t\tClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(\"spring-aware.xml\");\r\n\r\n\t\tctx.getBean(\"myAwareService\", MyAwareService.class);\r\n\t\t\r\n\t\tctx.close();\r\n\t}\r\n\r\n}\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30af\u30e9\u30b9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u51fa\u529b\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>Apr 01, 2014 11:27:05 PM org.springframework.context.support.ClassPathXmlApplicationContext prepareRefresh\r\nINFO: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@60a2f435: startup date [Tue Apr 01 23:27:05 PDT 2014]; root of context hierarchy\r\nApr 01, 2014 11:27:05 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions\r\nINFO: Loading XML bean definitions from class path resource [spring-aware.xml]\r\nsetBeanName called\r\nsetBeanName:: Bean Name defined in context=myAwareService\r\nsetBeanClassLoader called\r\nsetBeanClassLoader:: ClassLoader Name=sun.misc.Launcher$AppClassLoader\r\nsetBeanFactory called\r\nsetBeanFactory:: employee bean singleton=true\r\nsetEnvironment called\r\nsetResourceLoader called\r\nsetResourceLoader:: Resource File Name=spring.xml\r\nsetApplicationEventPublisher called\r\nsetApplicationContext called\r\nsetApplicationContext:: Bean Definition Names=[employee, myAwareService]\r\nApr 01, 2014 11:27:05 PM org.springframework.context.support.ClassPathXmlApplicationContext doClose\r\nINFO: Closing org.springframework.context.support.ClassPathXmlApplicationContext@60a2f435: startup date [Tue Apr 01 23:27:05 PDT 2014]; root of context hierarchy\r\n<\/code><\/pre>\n<p>\u30c6\u30b9\u30c8\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u51fa\u529b\u306f\u3001\u7406\u89e3\u3057\u3084\u3059\u3044\u3067\u3059\u3002\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3042\u307e\u308a\u7acb\u3061\u5165\u308a\u307e\u305b\u3093\u3002\u3053\u308c\u3067Spring Bean\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u30e1\u30bd\u30c3\u30c9\u3068framework\u7279\u6709\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092Spring Bean\u306b\u6ce8\u5165\u3059\u308b\u65b9\u6cd5\u306b\u95a2\u3059\u308b\u8aac\u660e\u306f\u4ee5\u4e0a\u3067\u3059\u3002\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001\u4ee5\u4e0b\u306e\u30ea\u30f3\u30af\u304b\u3089\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u5206\u6790\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30b9\u30d7\u30ea\u30f3\u30b0\u30d3\u30fc\u30f3\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u65e5\u306fSpring Bean\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u306b\u3064\u3044\u3066\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002Spring Beans\u306fSpring\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u6700\u3082\u91cd\u8981\u306a\u90e8\u5206\u3067\u3059\u3002Spring\u306eApplicationContext\u306f\u3001spring bea [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,61],"class_list":["post-521","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-26","tag-61"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Spring\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u304a\u3051\u308bBean\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"Spring\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u304a\u3051\u308bBean\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/spring\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u304a\u3051\u308bbean\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Spring\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u304a\u3051\u308bBean\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\" \/>\n<meta property=\"og:description\" content=\"Spring\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u304a\u3051\u308bBean\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/spring\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u304a\u3051\u308bbean\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-08T09:49:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T15:15:13+00:00\" \/>\n<meta name=\"author\" content=\"\u512a\u6597, \u671d\u967d\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u512a\u6597, \u671d\u967d\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"41\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/spring%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8bbean%e3%81%ae%e3%83%a9%e3%82%a4%e3%83%95%e3%82%b5%e3%82%a4%e3%82%af%e3%83%ab\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/spring%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8bbean%e3%81%ae%e3%83%a9%e3%82%a4%e3%83%95%e3%82%b5%e3%82%a4%e3%82%af%e3%83%ab\/\",\"name\":\"Spring\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u304a\u3051\u308bBean\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2022-09-08T09:49:37+00:00\",\"dateModified\":\"2025-07-31T15:15:13+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cab7534c71201607a41f395de14d7d28\"},\"description\":\"Spring\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u304a\u3051\u308bBean\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/spring%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8bbean%e3%81%ae%e3%83%a9%e3%82%a4%e3%83%95%e3%82%b5%e3%82%a4%e3%82%af%e3%83%ab\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/spring%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8bbean%e3%81%ae%e3%83%a9%e3%82%a4%e3%83%95%e3%82%b5%e3%82%a4%e3%82%af%e3%83%ab\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/spring%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8bbean%e3%81%ae%e3%83%a9%e3%82%a4%e3%83%95%e3%82%b5%e3%82%a4%e3%82%af%e3%83%ab\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Spring\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u304a\u3051\u308bBean\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cab7534c71201607a41f395de14d7d28\",\"name\":\"\u512a\u6597, \u671d\u967d\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/56ecb1d20648a2ff67709eeaa7b6eddeb4d52aca0d46febc7f12bbef507187d0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/56ecb1d20648a2ff67709eeaa7b6eddeb4d52aca0d46febc7f12bbef507187d0?s=96&d=mm&r=g\",\"caption\":\"\u512a\u6597, \u671d\u967d\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/yutoasahi\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/spring%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8bbean%e3%81%ae%e3%83%a9%e3%82%a4%e3%83%95%e3%82%b5%e3%82%a4%e3%82%af%e3%83%ab\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Spring\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u304a\u3051\u308bBean\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb - Blog - Silicon Cloud","description":"Spring\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u304a\u3051\u308bBean\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","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:\/\/www.silicloud.com\/ja\/blog\/spring\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u304a\u3051\u308bbean\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\/","og_locale":"ja_JP","og_type":"article","og_title":"Spring\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u304a\u3051\u308bBean\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb","og_description":"Spring\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u304a\u3051\u308bBean\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/spring\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u304a\u3051\u308bbean\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-09-08T09:49:37+00:00","article_modified_time":"2025-07-31T15:15:13+00:00","author":"\u512a\u6597, \u671d\u967d","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u512a\u6597, \u671d\u967d","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"41\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/spring%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8bbean%e3%81%ae%e3%83%a9%e3%82%a4%e3%83%95%e3%82%b5%e3%82%a4%e3%82%af%e3%83%ab\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/spring%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8bbean%e3%81%ae%e3%83%a9%e3%82%a4%e3%83%95%e3%82%b5%e3%82%a4%e3%82%af%e3%83%ab\/","name":"Spring\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u304a\u3051\u308bBean\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2022-09-08T09:49:37+00:00","dateModified":"2025-07-31T15:15:13+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cab7534c71201607a41f395de14d7d28"},"description":"Spring\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u304a\u3051\u308bBean\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/spring%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8bbean%e3%81%ae%e3%83%a9%e3%82%a4%e3%83%95%e3%82%b5%e3%82%a4%e3%82%af%e3%83%ab\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/spring%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8bbean%e3%81%ae%e3%83%a9%e3%82%a4%e3%83%95%e3%82%b5%e3%82%a4%e3%82%af%e3%83%ab\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/spring%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8bbean%e3%81%ae%e3%83%a9%e3%82%a4%e3%83%95%e3%82%b5%e3%82%a4%e3%82%af%e3%83%ab\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Spring\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u304a\u3051\u308bBean\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cab7534c71201607a41f395de14d7d28","name":"\u512a\u6597, \u671d\u967d","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/56ecb1d20648a2ff67709eeaa7b6eddeb4d52aca0d46febc7f12bbef507187d0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/56ecb1d20648a2ff67709eeaa7b6eddeb4d52aca0d46febc7f12bbef507187d0?s=96&d=mm&r=g","caption":"\u512a\u6597, \u671d\u967d"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/yutoasahi\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/spring%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8bbean%e3%81%ae%e3%83%a9%e3%82%a4%e3%83%95%e3%82%b5%e3%82%a4%e3%82%af%e3%83%ab\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/521","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=521"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/521\/revisions"}],"predecessor-version":[{"id":41679,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/521\/revisions\/41679"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=521"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=521"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=521"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}