{"id":900,"date":"2023-11-15T19:23:13","date_gmt":"2022-09-26T09:11:09","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/%e3%82%b9%e3%83%97%e3%83%aa%e3%83%b3%e3%82%b0%e3%81%ae%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3\/"},"modified":"2025-08-01T03:23:22","modified_gmt":"2025-07-31T18:23:22","slug":"%e3%82%b9%e3%83%97%e3%83%aa%e3%83%b3%e3%82%b0%e3%81%ae%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%b9%e3%83%97%e3%83%aa%e3%83%b3%e3%82%b0%e3%81%ae%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3\/","title":{"rendered":"\u30b9\u30d7\u30ea\u30f3\u30b0\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3"},"content":{"rendered":"<p>Spring\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306f\u3001Java\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4ecb\u3057\u3066\u4f9d\u5b58\u95a2\u4fc2\u3092\u8a2d\u5b9a\u3057\u3001\u4f9d\u5b58\u6027\u306e\u6ce8\u5165\u3092\u5b9f\u88c5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30d7\u30ea\u30f3\u30b0\u306e\u6ce8\u91c8<\/h2>\n<ul class=\"post-ul\">\n<li>Spring framework implements and promotes the principle of control inversion (IOC) or dependency injection (DI) and is in fact an IOC container.<\/li>\n<li>Traditionally, Spring allows a developer to manage bean dependencies by using XML-based configuration.<\/li>\n<li>There is an alternative way to define beans and their dependencies. This method is a Java-based configuration.<\/li>\n<li>Unlike the XML approach, Java-based configuration allows you to manage bean components programmatically. That\u2019s why Spring annotations were introduced.<\/li>\n<\/ul>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u6700\u3082\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308bSpring\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3068\u3001\u3044\u304f\u3064\u304b\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u4f8b\u306b\u3064\u3044\u3066\u63a2\u6c42\u3057\u307e\u3059\u3002<\/p>\n<h3>\u300cSpring\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u30ea\u30b9\u30c8\u300d<\/h3>\n<p>\u3044\u304f\u3064\u304b\u306eSpring\u30b3\u30a2\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>@Configuration\uff1a\u30af\u30e9\u30b9\u304c1\u3064\u4ee5\u4e0a\u306e@Bean\u30e1\u30bd\u30c3\u30c9\u3092\u5ba3\u8a00\u3059\u308b\u3053\u3068\u3092\u793a\u3059\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30af\u30e9\u30b9\u306f\u3001Spring\u30b3\u30f3\u30c6\u30ca\u306b\u3088\u3063\u3066\u51e6\u7406\u3055\u308c\u3001\u5b9f\u884c\u6642\u306b\u305d\u308c\u3089\u306e\u30d3\u30fc\u30f3\u306e\u5b9a\u7fa9\u3068\u30b5\u30fc\u30d3\u30b9\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>@Bean\uff1a\u30e1\u30bd\u30c3\u30c9\u304cSpring\u30b3\u30f3\u30c6\u30ca\u306b\u3088\u3063\u3066\u7ba1\u7406\u3055\u308c\u308b\u30d3\u30fc\u30f3\u3092\u751f\u6210\u3059\u308b\u3053\u3068\u3092\u793a\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u6700\u3082\u4f7f\u7528\u3055\u308c\u308b\u91cd\u8981\u306aSpring\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e1\u3064\u3067\u3059\u3002@Bean\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306f\u3001name\u3001initMethod\u3001destroyMethod\u306a\u3069\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3068\u4e00\u7dd2\u306b\u4f7f\u7528\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>name\uff1a\u30d3\u30fc\u30f3\u306b\u540d\u524d\u3092\u4ed8\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\ninitMethod\uff1a\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u767b\u9332\u6642\u306b\u547c\u3073\u51fa\u3055\u308c\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u9078\u629e\u3067\u304d\u307e\u3059\u3002<br \/>\ndestroyMethod\uff1a\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306e\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u6642\u306b\u547c\u3073\u51fa\u3055\u308c\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u9078\u629e\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f8b\uff1a<br \/>\n@Configuration<br \/>\npublic class AppConfig {<\/p>\n<p>@Bean(name = &#8220;comp&#8221;, initMethod = &#8220;turnOn&#8221;, destroyMethod = &#8220;turnOff&#8221;)<br \/>\nComputer computer(){<br \/>\nreturn new Computer();<br \/>\n}<br \/>\n}<\/p>\n<p>public class Computer {<\/p>\n<p>public void turnOn(){<br \/>\nSystem.out.println(&#8220;\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u3092\u30ed\u30fc\u30c9\u3057\u307e\u3059&#8221;);<br \/>\n}<br \/>\npublic void turnOff(){<br \/>\nSystem.out.println(&#8220;\u3059\u3079\u3066\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u7d42\u4e86\u3057\u307e\u3059&#8221;);<br \/>\n}<br \/>\n}<\/p>\n<p>@PreDestroy\u3068@PostConstruct\u306f\u3001bean\u306einitMethod\u3068destroyMethod\u306e\u4ee3\u66ff\u624b\u6bb5\u3067\u3059\u3002\u3053\u308c\u306f\u3001bean\u30af\u30e9\u30b9\u304c\u81ea\u5206\u3067\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306b\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4f8b\uff1a<br \/>\npublic class Computer {<\/p>\n<p>@PostConstruct<br \/>\npublic void turnOn(){<br \/>\nSystem.out.println(&#8220;\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u3092\u30ed\u30fc\u30c9\u3057\u307e\u3059&#8221;);<br \/>\n}<\/p>\n<p>@PreDestroy<br \/>\npublic void turnOff(){<br \/>\nSystem.out.println(&#8220;\u3059\u3079\u3066\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u7d42\u4e86\u3057\u307e\u3059&#8221;);<br \/>\n}<br \/>\n}<\/p>\n<p>@ComponentScan\uff1aSpring\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u7528\u306e\u30d9\u30fc\u30b9\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u6307\u5b9a\u3059\u308b\u305f\u3081\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u30b9\u30ad\u30e3\u30f3\u306e\u6307\u4ee4\u3092\u69cb\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>@Component\uff1a\u6ce8\u91c8\u4ed8\u304d\u30af\u30e9\u30b9\u304c\u300c\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u300d\u3067\u3042\u308b\u3053\u3068\u3092\u793a\u3057\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u30af\u30e9\u30b9\u306f\u3001\u6ce8\u91c8\u30d9\u30fc\u30b9\u306e\u69cb\u6210\u3068\u30af\u30e9\u30b9\u30d1\u30b9\u306e\u30b9\u30ad\u30e3\u30f3\u6642\u306b\u81ea\u52d5\u691c\u51fa\u306e\u5019\u88dc\u3068\u3057\u3066\u8003\u616e\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>@PropertySource\uff1aSpring\u306eEnvironment\u306b\u30d7\u30ed\u30d1\u30c6\u30a3\u30bd\u30fc\u30b9\u3092\u8ffd\u52a0\u3059\u308b\u305f\u3081\u306e\u7c21\u5358\u306a\u5ba3\u8a00\u30e1\u30ab\u30cb\u30ba\u30e0\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\u30d7\u30ed\u30d1\u30c6\u30a3\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u306e\u914d\u5217\u3092\u8ffd\u52a0\u3059\u308b\u305f\u3081\u306e\u985e\u4f3c\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3082\u3042\u308a\u307e\u3059\u3001\u3064\u307e\u308a@PropertySources\u3002<\/p>\n<p>@Service\uff1a\u6ce8\u91c8\u4ed8\u304d\u30af\u30e9\u30b9\u304c\u300c\u30b5\u30fc\u30d3\u30b9\u300d\u3067\u3042\u308b\u3053\u3068\u3092\u793a\u3057\u307e\u3059\u3002\u3053\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306f\u3001@Component\u306e\u7279\u6b8a\u5316\u3068\u3057\u3066\u6a5f\u80fd\u3057\u3001\u30af\u30e9\u30b9\u30d1\u30b9\u306e\u30b9\u30ad\u30e3\u30f3\u3092\u4ecb\u3057\u3066\u5b9f\u88c5\u30af\u30e9\u30b9\u304c\u81ea\u52d5\u691c\u51fa\u3055\u308c\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>@Repository\uff1a\u6ce8\u91c8\u4ed8\u304d\u30af\u30e9\u30b9\u304c\u300c\u30ea\u30dd\u30b8\u30c8\u30ea\u300d\u3067\u3042\u308b\u3053\u3068\u3092\u793a\u3057\u307e\u3059\u3002\u3053\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306f\u3001@Component\u306e\u7279\u6b8a\u5316\u3067\u3042\u308a\u3001DAO\u30af\u30e9\u30b9\u3068\u4e00\u7dd2\u306b\u4f7f\u7528\u3059\u308b\u3053\u3068\u3092\u63a8\u5968\u3057\u307e\u3059\u3002<\/p>\n<p>@Autowired\uff1aSpring\u306e@Autowired\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u30d3\u30fc\u30f3\u306e\u81ea\u52d5\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002Spring\u306e@Qualifier\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u540c\u3058\u30bf\u30a4\u30d7\u306e2\u3064\u4ee5\u4e0a\u306e\u30d3\u30fc\u30f3\u304c\u69cb\u6210\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306b\u6df7\u4e71\u3092\u907f\u3051\u308b\u305f\u3081\u306b@Autowired\u3068\u4e00\u7dd2\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>Spring MVC\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u30d1\u30e9\u30d5\u30ec\u30fc\u30ba\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/h3>\n<p>\u91cd\u8981\u306aSpring MVC\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4e00\u90e8\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>@Controller<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>@RequestMapping<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>@PathVariable<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>@RequestParam<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>@ModelAttribute<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>@RequestBody \u3068 @ResponseBody<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>@RequestHeader \u3068 @ResponseHeader<\/ol>\n<p>\u300cSpring MVC \u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u3001\u305d\u308c\u306b\u3064\u3044\u3066\u3088\u308a\u8a73\u3057\u304f\u77e5\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u300d<\/p>\n<h3>\u30b9\u30d7\u30ea\u30f3\u30b0\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u7ba1\u7406\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3<\/h3>\n<p>@Transactional\u306f\u3001Spring\u306e\u5ba3\u8a00\u7684\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u7ba1\u7406\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3067\u3042\u308a\u3001Spring MVC Hibernate\u3067\u8a73\u7d30\u3092\u8aad\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>Spring Security\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3<\/h3>\n<p>@Configuration\u30af\u30e9\u30b9\u3068\u4e00\u7dd2\u306b@EnableWebSecurity\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001Spring Security\u306e\u8a2d\u5b9a\u304c\u5b9a\u7fa9\u3055\u308c\u307e\u3059\u3002Spring Security\u306e\u4f8b\u3092\u8a73\u3057\u304f\u306fSpring Security Example\u3067\u8aad\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30b9\u30d7\u30ea\u30f3\u30b0\u30d6\u30fc\u30c8\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3<\/h3>\n<ol>@SpringBootApplication\u3068@EnableAutoConfiguration<\/ol>\n<p>\u300cSpring Boot Example\u300d\u306e\u8a18\u4e8b\u3092\u3082\u3063\u3068\u8aad\u3080\u3002<\/p>\n<h3>Spring\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4f8b<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/6564a19cdaa94e2bdf7c2dde\/19-0.png\" alt=\"spring annotations\" \/><\/div>\n<h4>Spring Framework\u306e\u4f9d\u5b58\u95a2\u4fc2<\/h4>\n<p>\u79c1\u306fMaven\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u3001Spring Core Framework\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\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\"\r\n\txsi:schemaLocation=\"https:\/\/maven.apache.org\/POM\/4.0.0 https:\/\/maven.apache.org\/xsd\/maven-4.0.0.xsd\"&gt;\r\n\t&lt;modelVersion&gt;4.0.0&lt;\/modelVersion&gt;\r\n\t&lt;groupId&gt;com.scdev.spring&lt;\/groupId&gt;\r\n\t&lt;artifactId&gt;spring-annotations&lt;\/artifactId&gt;\r\n\t&lt;version&gt;0.0.1-SNAPSHOT&lt;\/version&gt;\r\n\t&lt;name&gt;Spring Annotations&lt;\/name&gt;\r\n\r\n\t&lt;properties&gt;\r\n\t\t&lt;spring.framework&gt;4.3.0.RELEASE&lt;\/spring.framework&gt;\r\n\t&lt;\/properties&gt;\r\n\r\n\t&lt;dependencies&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}&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-core&lt;\/artifactId&gt;\r\n\t\t\t&lt;version&gt;${spring.framework}&lt;\/version&gt;\r\n\t\t&lt;\/dependency&gt;\r\n\r\n\t&lt;\/dependencies&gt;\r\n\r\n&lt;\/project&gt;\r\n<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u305f\u3081\u306b\u3059\u3079\u3066\u306eSpring Core\u306ejar\u30d5\u30a1\u30a4\u30eb\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<h4>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u30af\u30e9\u30b9 (Konp\u014dnento kurasu)<\/h4>\n<p>\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u306f\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u3053\u3053\u3067\u306f\u3001MySQL\u7528\u306e1\u3064\u3068Oracle\u7528\u306e\u5225\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u6a21\u5023\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.drivers;\r\n\r\npublic interface DataBaseDriver {\r\n    public String getInfo();\r\n}\r\n<\/code><\/pre>\n<p>DataBaseDriver\u306f\u79c1\u305f\u3061\u304c\u5b9f\u88c5\u3059\u308b\u57fa\u672c\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.drivers;\r\n\r\nimport org.springframework.beans.factory.annotation.Value;\r\nimport org.springframework.context.annotation.PropertySource;\r\nimport org.springframework.stereotype.Component;\r\n\r\n@Component\r\n@PropertySource(\"classpath:mysqldatabase.properties\")\r\npublic class MySqlDriver implements DataBaseDriver {\r\n\r\n    @Value(\"${databaseName}\")\r\n    private String databaseName;\r\n    @Value(\"${disableStatementPooling}\")\r\n    private String disableStatementPooling;\r\n\r\n    public String getInfo() {\r\n        return \"[ Driver: mySql\" +\r\n                \", databaseName: \" + databaseName +\r\n                \", disableStatementPooling: \" + disableStatementPooling +\r\n                \" ]\";\r\n    }\r\n}\r\n<\/code><\/pre>\n<p>@Component\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3001Spring\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u3053\u306e\u30af\u30e9\u30b9\u3092\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3068\u3057\u3066\u6271\u3046\u3088\u3046\u306b\u6307\u793a\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3055\u3089\u306b\u3001@PropertySource\u3068@Value\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002Spring\u306f\u5b9f\u884c\u6642\u306b\u3053\u308c\u3089\u3092\u4f7f\u7528\u3057\u3066\u3001\u6307\u5b9a\u3055\u308c\u305f\u30d7\u30ed\u30d1\u30c6\u30a3\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u5909\u6570\u306e\u5024\u3092\u30a4\u30f3\u30b8\u30a7\u30af\u30c8\u3057\u3066\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001mysqldatabase.properties\u30d5\u30a1\u30a4\u30eb\u3067\u5ba3\u8a00\u3055\u308c\u305f\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>databaseName=school\r\ndisableStatementPooling=true\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>package com.scdev.drivers;\r\n\r\npublic class OracleDriver implements DataBaseDriver {\r\n\r\n    protected String url;\r\n    protected String user;\r\n    protected String password;\r\n    protected String driver;\r\n    protected Integer port;\r\n\r\n\r\n    public String getUrl() {\r\n        return url;\r\n    }\r\n\r\n    public String getUser() {\r\n        return user;\r\n    }\r\n\r\n    public void setUser(String user) {\r\n        this.user = user;\r\n    }\r\n\r\n    public String getPassword() {\r\n        return password;\r\n    }\r\n\r\n    public void setPassword(String password) {\r\n        this.password = password;\r\n    }\r\n\r\n    public String getDriver() {\r\n        return driver;\r\n    }\r\n\r\n    public void setDriver(String driver) {\r\n        this.driver = driver;\r\n    }\r\n\r\n    public Integer getPort() {\r\n        return port;\r\n    }\r\n\r\n    public void setPort(Integer port) {\r\n        this.port = port;\r\n    }\r\n\r\n    public void setUrl(String url) {\r\n        this.url = url;\r\n    }\r\n\r\n    public String getInfo() {\r\n        return \"[ Driver: Oracle\" +\r\n                \", url: \" + url +\r\n                \", port; \" + port +\r\n                \", user: \" + user +\r\n                \", password: \" + password  +\r\n                \", driver: \" + driver +\r\n                \" ] \";\r\n    }\r\n}\r\n<\/code><\/pre>\n<p>OracleDriver\u306f\u30b7\u30f3\u30d7\u30eb\u306a\u30d3\u30fc\u30f3\u3067\u3042\u308a\u3001\u3053\u306e\u30d3\u30fc\u30f3\u306b\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u30a4\u30f3\u30b8\u30a7\u30af\u30c8\u3059\u308b\u305f\u3081\u306b\u30b5\u30fc\u30d3\u30b9\u30af\u30e9\u30b9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<h4>\u6625\u306e\u30b5\u30fc\u30d3\u30b9\u30af\u30e9\u30b9<\/h4>\n<pre class=\"post-pre\"><code>package com.scdev.service;\r\n\r\nimport com.scdev.drivers.DataBaseDriver;\r\nimport org.springframework.beans.factory.annotation.Autowired;\r\nimport org.springframework.beans.factory.annotation.Qualifier;\r\nimport org.springframework.stereotype.Service;\r\n\r\n@Service\r\npublic class UserService {\r\n\r\n    @Autowired\r\n    @Qualifier(\"oracleDriver\")\r\n    private DataBaseDriver dataBaseDriver;\r\n\r\n    public String getDriverInfo(){\r\n        return dataBaseDriver.getInfo();\r\n    }\r\n}\r\n<\/code><\/pre>\n<p>\u3053\u3053\u3067\u306f\u3001@Service\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3001Spring\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u3053\u308c\u3092\u30b5\u30fc\u30d3\u30b9\u30af\u30e9\u30b9\u3068\u3057\u3066\u6271\u3046\u3088\u3046\u306b\u6307\u793a\u3057\u3066\u3044\u307e\u3059\u3002\u6b21\u306b\u3001@Autowired\u304a\u3088\u3073@Qualifier\uff08&#8221;oracleDriver&#8221;\uff09\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3001spring\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306boracleDriver\u3068\u3044\u3046\u540d\u524d\u306e\u30d3\u30fc\u30f3\u3092\u30af\u30e9\u30b9\u30d7\u30ed\u30d1\u30c6\u30a3dataBaseDriver\u306b\u6ce8\u5165\u3059\u308b\u3088\u3046\u306b\u6307\u793a\u3057\u3066\u3044\u307e\u3059\u3002\u306a\u304a\u3001\u307e\u3060\u3053\u306espring\u30d3\u30fc\u30f3\u3092\u4f5c\u6210\u3057\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<h4>\u30b9\u30d7\u30ea\u30f3\u30b0\u306e\u30d3\u30fc\u30f3<\/h4>\n<p>\u6700\u7d42\u7684\u306a\u30b9\u30c6\u30c3\u30d7\u306f\u3001\u3059\u3079\u3066\u3092\u7d50\u3073\u4ed8\u3051\u308b\u305f\u3081\u306b\u79c1\u305f\u3061\u306e\u30b9\u30d7\u30ea\u30f3\u30b0\u30d3\u30fc\u30f3\u3068\u8a2d\u5b9a\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.config;\r\n\r\nimport org.springframework.beans.factory.annotation.Autowired;\r\nimport org.springframework.context.annotation.Bean;\r\nimport org.springframework.context.annotation.ComponentScan;\r\nimport org.springframework.context.annotation.Configuration;\r\nimport org.springframework.context.annotation.PropertySource;\r\nimport org.springframework.core.env.Environment;\r\n\r\nimport com.scdev.drivers.DataBaseDriver;\r\nimport com.scdev.drivers.MySqlDriver;\r\nimport com.scdev.drivers.OracleDriver;\r\n\r\n@Configuration\r\n@ComponentScan(\"com.scdev\")\r\n@PropertySource(\"classpath:oracledatabase.properties\")\r\npublic class AppConfig {\r\n\r\n\t@Autowired\r\n        Environment environment;\r\n\t\r\n\t@Bean\r\n\tDataBaseDriver oracleDriver() {\r\n        OracleDriver oracleDriver = new OracleDriver();\r\n\toracleDriver.setDriver(environment.getProperty(\"db.driver\"));\r\n        oracleDriver.setUrl(environment.getProperty(\"db.url\"));\r\n        oracleDriver.setPort(Integer.parseInt(environment.getProperty(\"db.port\")));\r\n        oracleDriver.setUser(environment.getProperty(\"db.user\"));\r\n        oracleDriver.setPassword(environment.getProperty(\"db.password\"));\r\n\r\n        return oracleDriver;\r\n\r\n\t}\r\n\r\n\t@Bean\r\n\tDataBaseDriver mysqlDriver() {\r\n\t\treturn new MySqlDriver();\r\n\t}\r\n}\r\n<\/code><\/pre>\n<p>oracleDriver\u306e\u30d3\u30fc\u30f3\u5b9a\u7fa9\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u3067\u306f\u3001Spring\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u3088\u3063\u3066\u74b0\u5883\u5909\u6570\u306b\u8a2d\u5b9a\u3055\u308c\u305foracledatabase.properties\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u8aad\u307f\u53d6\u3063\u3066\u3044\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001oracledatabase.properties\u30d5\u30a1\u30a4\u30eb\u3067\u5b9a\u7fa9\u3055\u308c\u305f\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>db.url=localhost\r\ndb.port=4444\r\ndb.user=vasiliy\r\ndb.password=yilisav\r\ndb.driver=driver_name\r\n<\/code><\/pre>\n<p>\u79c1\u305f\u3061\u306eSpring\u306e\u6ce8\u91c8\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306f\u3001\u30c6\u30b9\u30c8\u3059\u308b\u6e96\u5099\u304c\u3067\u304d\u3066\u3044\u307e\u3059\u3002\u8981\u7d04\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u624b\u9806\u3092\u5b9f\u884c\u3057\u307e\u3057\u305f\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Maven\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u3001\u5fc5\u8981\u306aSpring\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u3001\u30ea\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u5909\u6570\u306b\u6ce8\u5165\u3057\u307e\u3057\u305f\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u3082\u3057\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u30fc\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u3042\u308c\u3070\u3001Service\u30af\u30e9\u30b9\u3092\u4f7f\u7528\u3057\u3066\u305d\u308c\u306b\u4f9d\u5b58\u95a2\u4fc2\u3092\u6ce8\u5165\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u307e\u3055\u306b\u79c1\u305f\u3061\u304cOracleDriver\u3092UserService\u30af\u30e9\u30b9\u3092\u901a\u3058\u3066\u884c\u3063\u305f\u3088\u3046\u306b\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\u6700\u5f8c\u306b\u3001Configuration\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u3066Spring\u306e\u30d3\u30fc\u30f3\u3092\u5b9a\u7fa9\u3057\u3001Spring\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u30af\u30e9\u30b9\u3092\u30b9\u30ad\u30e3\u30f3\u3057\u3066\u8a2d\u5b9a\u3059\u308b\u305f\u3081\u306e\u30d9\u30fc\u30b9\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u3002<\/ol>\n<h3>\u6625\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4f8b\u306b\u3088\u308b\u30c6\u30b9\u30c8<\/h3>\n<p>\u79c1\u305f\u3061\u306eSpring\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4f8b\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u30c6\u30b9\u30c8\u3059\u308b\u305f\u3081\u306e\u30e1\u30a4\u30f3\u30af\u30e9\u30b9\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev;\r\n\r\nimport org.springframework.context.annotation.AnnotationConfigApplicationContext;\r\nimport org.springframework.context.support.AbstractApplicationContext;\r\n\r\nimport com.scdev.config.AppConfig;\r\nimport com.scdev.drivers.DataBaseDriver;\r\nimport com.scdev.service.UserService;\r\n\r\npublic class Main {\r\n\tpublic static void main(String[] args) {\r\n\tAbstractApplicationContext appContext = new AnnotationConfigApplicationContext(AppConfig.class);\r\n\r\n\tDataBaseDriver oracle = appContext.getBean(\"oracleDriver\", DataBaseDriver.class);\r\n\tDataBaseDriver mysql = appContext.getBean(\"mysqlDriver\", DataBaseDriver.class);\r\n\t\t\r\n        System.out.println(\"Oracle driver info:\");\r\n        System.out.println(oracle.getInfo());\r\n        \r\n        System.out.println(\"MySQL driver info:\");\r\n        System.out.println(mysql.getInfo());\r\n\r\n        System.out.println(\"UserService Information\");\r\n\tUserService userService = appContext.getBean(UserService.class);\r\n\tSystem.out.println(userService.getDriverInfo());\r\n\r\n\tappContext.close();\r\n\t}\r\n}\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/6564a19cdaa94e2bdf7c2dde\/46-0.png\" alt=\"spring annotations example\" \/><\/div>\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9Spring\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4f8b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u53c2\u8003: API\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Spring\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306f\u3001Java\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4ecb\u3057\u3066\u4f9d\u5b58\u95a2\u4fc2\u3092\u8a2d\u5b9a\u3057\u3001\u4f9d\u5b58\u6027\u306e\u6ce8\u5165\u3092\u5b9f\u88c5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u30b9\u30d7\u30ea\u30f3\u30b0\u306e\u6ce8\u91c8 Spring framework implements and promotes th [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,61],"class_list":["post-900","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>\u30b9\u30d7\u30ea\u30f3\u30b0\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u30b9\u30d7\u30ea\u30f3\u30b0\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\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\/\u30b9\u30d7\u30ea\u30f3\u30b0\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u30b9\u30d7\u30ea\u30f3\u30b0\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\" \/>\n<meta property=\"og:description\" content=\"\u30b9\u30d7\u30ea\u30f3\u30b0\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\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\/\u30b9\u30d7\u30ea\u30f3\u30b0\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-26T09:11:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T18:23:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/6564a19cdaa94e2bdf7c2dde\/19-0.png\" \/>\n<meta name=\"author\" content=\"\u967d, \u5411\u5b87\" \/>\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=\"\u967d, \u5411\u5b87\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"24\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\/%e3%82%b9%e3%83%97%e3%83%aa%e3%83%b3%e3%82%b0%e3%81%ae%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%b9%e3%83%97%e3%83%aa%e3%83%b3%e3%82%b0%e3%81%ae%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3\/\",\"name\":\"\u30b9\u30d7\u30ea\u30f3\u30b0\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2022-09-26T09:11:09+00:00\",\"dateModified\":\"2025-07-31T18:23:22+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c\"},\"description\":\"\u30b9\u30d7\u30ea\u30f3\u30b0\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\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\/%e3%82%b9%e3%83%97%e3%83%aa%e3%83%b3%e3%82%b0%e3%81%ae%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%b9%e3%83%97%e3%83%aa%e3%83%b3%e3%82%b0%e3%81%ae%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%b9%e3%83%97%e3%83%aa%e3%83%b3%e3%82%b0%e3%81%ae%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u30b9\u30d7\u30ea\u30f3\u30b0\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\"}]},{\"@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\/4aef6196128551a0f5d66db46c42866c\",\"name\":\"\u967d, \u5411\u5b87\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g\",\"caption\":\"\u967d, \u5411\u5b87\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/hinatasora\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%b9%e3%83%97%e3%83%aa%e3%83%b3%e3%82%b0%e3%81%ae%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u30b9\u30d7\u30ea\u30f3\u30b0\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3 - Blog - Silicon Cloud","description":"\u30b9\u30d7\u30ea\u30f3\u30b0\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\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\/\u30b9\u30d7\u30ea\u30f3\u30b0\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\/","og_locale":"ja_JP","og_type":"article","og_title":"\u30b9\u30d7\u30ea\u30f3\u30b0\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3","og_description":"\u30b9\u30d7\u30ea\u30f3\u30b0\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\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\/\u30b9\u30d7\u30ea\u30f3\u30b0\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-09-26T09:11:09+00:00","article_modified_time":"2025-07-31T18:23:22+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/6564a19cdaa94e2bdf7c2dde\/19-0.png"}],"author":"\u967d, \u5411\u5b87","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u967d, \u5411\u5b87","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"24\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%b9%e3%83%97%e3%83%aa%e3%83%b3%e3%82%b0%e3%81%ae%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%b9%e3%83%97%e3%83%aa%e3%83%b3%e3%82%b0%e3%81%ae%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3\/","name":"\u30b9\u30d7\u30ea\u30f3\u30b0\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2022-09-26T09:11:09+00:00","dateModified":"2025-07-31T18:23:22+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c"},"description":"\u30b9\u30d7\u30ea\u30f3\u30b0\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\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\/%e3%82%b9%e3%83%97%e3%83%aa%e3%83%b3%e3%82%b0%e3%81%ae%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%b9%e3%83%97%e3%83%aa%e3%83%b3%e3%82%b0%e3%81%ae%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%b9%e3%83%97%e3%83%aa%e3%83%b3%e3%82%b0%e3%81%ae%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"\u30b9\u30d7\u30ea\u30f3\u30b0\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3"}]},{"@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\/4aef6196128551a0f5d66db46c42866c","name":"\u967d, \u5411\u5b87","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g","caption":"\u967d, \u5411\u5b87"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/hinatasora\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%b9%e3%83%97%e3%83%aa%e3%83%b3%e3%82%b0%e3%81%ae%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/900","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\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=900"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/900\/revisions"}],"predecessor-version":[{"id":46417,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/900\/revisions\/46417"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=900"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=900"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=900"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}