{"author_name":"atr0phy","categories":["spring-boot","spring"],"author_url":"https://blog.hatena.ne.jp/atr0phy/","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/a/atr0phy/20221211/20221211014802.png","title":"@Configuration\u3067@Bean\u3092\u5ba3\u8a00\u3057\u305f\u969b\u306b\u8ab0\u304c\u3069\u3046\u767b\u9332\u3057\u3066\u3044\u308b\u306e\u304b\u3092\u898b\u3066\u305f\u306e\u3067\u30e1\u30e2","description":"\u8a73\u3057\u304f\u66f8\u3044\u3066\u3042\u308b\u3068\u3053\u308d\u304c\u898b\u5f53\u305f\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u5358\u306b\u30b3\u30fc\u30c9\u3092\u8ffd\u3063\u305f \u5b8c\u5168\u306b\u500b\u4eba\u7684\u306a\u30e1\u30e2 tl;dr \u6700\u7d42\u7684\u306b DefaultSingletonBeanRegistry \u3067\u6301\u3063\u3066\u305d\u3046 spring.pleiades.io \u30d0\u30fc\u30b8\u30e7\u30f3 Spring Boot 3.1.5 Spring Framework 6.0.13 \u30b3\u30fc\u30c9 data class Example(val value: String) @Configuration class ExampleConfig { @Bean fun exampleA(): Example { return Example( value = \"ExampleA\u2026","height":"190","width":"100%","provider_name":"Hatena Blog","version":"1.0","blog_url":"https://www.hacktotech.net/","provider_url":"https://hatena.blog","published":"2023-12-10 14:48:12","blog_title":"HackToTech","url":"https://www.hacktotech.net/entry/configuration-bean-annotation-memo","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.hacktotech.net%2Fentry%2Fconfiguration-bean-annotation-memo\" title=\"@Configuration\u3067@Bean\u3092\u5ba3\u8a00\u3057\u305f\u969b\u306b\u8ab0\u304c\u3069\u3046\u767b\u9332\u3057\u3066\u3044\u308b\u306e\u304b\u3092\u898b\u3066\u305f\u306e\u3067\u30e1\u30e2 - HackToTech\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich"}