{"id":657,"date":"2019-02-03T20:05:02","date_gmt":"2019-02-03T11:05:02","guid":{"rendered":"https:\/\/ito-u-oti.com\/?p=657"},"modified":"2019-02-03T20:13:36","modified_gmt":"2019-02-03T11:13:36","slug":"post-657","status":"publish","type":"post","link":"https:\/\/ito-u-oti.com\/?p=657","title":{"rendered":"@Scope(&#8220;step&#8221;)\u306e\u30c6\u30b9\u30c8\u3067\u30a8\u30e9\u30fc\uff08No context holder available for step scope\uff09"},"content":{"rendered":"<h2 id=\"outline__1\">\u4e8b\u8c61<\/h2>\n<p>@Scope(&#8220;step&#8221;)\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u304c\u4ed8\u4e0e\u3055\u308c\u3066\u3044\u308b\u30af\u30e9\u30b9\u306b\u5bfe\u3057\u3066Junit\u306b\u3088\u308bSpringJUnit4ClassRunner\u30c6\u30b9\u30c8\u3092\u4f5c\u6210\u3057\u5b9f\u884c\u3057\u305f\u3068\u3053\u308d\u30a8\u30e9\u30fc\u304c\u767a\u751f<\/p>\n<h2 id=\"outline__2\">\u30a8\u30e9\u30fc\u5185\u5bb9<\/h2>\n<p>\u30c6\u30b9\u30c8\u5bfe\u8c61\u5b9f\u88c5\u30af\u30e9\u30b9<br \/>\nSharedServiceImpl<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\n@Service\r\n@Scope(&quot;step&quot;)\r\npublic class SharedServiceImpl implements SharedService {\r\n\r\n    \/**\r\n     * Long\u578b\u306e\u6570\u5024\u3092\u30ab\u30f3\u30de\u7de8\u96c6\u3057\u3066\u8fd4\u3059\r\n     * @param value \u7de8\u96c6\u524d\u6570\u5024\r\n     * @return \u30ab\u30f3\u30de\u7de8\u96c6\u5f8c\u6587\u5b57\u5217\r\n     *\/\r\n    @Override\r\n    public String longToConma(long value) {\r\n\r\n        NumberFormat conmaFormat = NumberFormat.getNumberInstance();\r\n\r\n        return conmaFormat.format(value);\r\n    }\r\n}\r\n<\/pre>\n<p>\u30c6\u30b9\u30c8\u30af\u30e9\u30b9<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\n@RunWith(SpringJUnit4ClassRunner.class)\r\n@ContextConfiguration(locations = { &quot;classpath:META-INF\/spring\/shareService.xml&quot; })\r\npublic class SharedService_longToconmaTest {\r\n\r\n    @Inject\r\n    SharedService target;\r\n\r\n    \/**\r\n     * \u30c6\u30b9\u30c8\u672c\u4f53\r\n     *\/\r\n    @Test\r\n    public void test() {\r\n\r\n        long testNum = 9999999999L;\r\n\r\n        String actual = target.longToConma(testNum);\r\n\r\n        assertThat(actual, is(&quot;9,999,999,999&quot;));\r\n    }\r\n\r\n}\r\n<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\norg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scopedTarget.sharedServiceImpl': Scope 'step' is not active for the current thread; consider defining a scoped proxy for this bean if you intend to refer to it from a singleton; nested exception is java.lang.IllegalStateException: No context holder available for step scope\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:355)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)\r\n\tat org.springframework.aop.target.SimpleBeanTargetSource.getTarget(SimpleBeanTargetSource.java:35)\r\n\tat org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:192)\r\n\tat com.sun.proxy.$Proxy16.longToConma(Unknown Source)\r\n\tat itouoti.spring.batch.service.sharedService.SharedService_longToconmaTest.test(SharedService_longToconmaTest.java:29)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:498)\r\n\tat org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)\r\n\tat org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)\r\n\tat org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)\r\n\tat org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)\r\n\tat org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75)\r\n\tat org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)\r\n\tat org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)\r\n\tat org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)\r\n\tat org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:252)\r\n\tat org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:94)\r\n\tat org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)\r\n\tat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)\r\n\tat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)\r\n\tat org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)\r\n\tat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)\r\n\tat org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)\r\n\tat org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)\r\n\tat org.junit.runners.ParentRunner.run(ParentRunner.java:363)\r\n\tat org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191)\r\n\tat org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)\r\n\tat org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)\r\n\tat org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)\r\n\tat org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678)\r\n\tat org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)\r\n\tat org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)\r\nCaused by: java.lang.IllegalStateException: No context holder available for step scope\r\n\tat org.springframework.batch.core.scope.StepScope.getContext(StepScope.java:167)\r\n\tat org.springframework.batch.core.scope.StepScope.get(StepScope.java:99)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:340)\r\n\t... 34 more\r\n<\/pre>\n<h2 id=\"outline__3\">\u539f\u56e0<\/h2>\n<p>@Scope(&#8220;step&#8221;)\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u304c\u4ed8\u4e0e\u3055\u308c\u3066\u3044\u308b\u30af\u30e9\u30b9\u306b\u5bfe\u3057\u3066DI\u6a5f\u80fd\u3092\u5229\u7528\u3057\u305f\u30c6\u30b9\u30c8\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u305f\u305f\u3081\u3002<\/p>\n<h2 id=\"outline__4\">\u89e3\u6c7a\u7b56<\/h2>\n<p>@TestExecutionListeners\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3067\u4ee5\u4e0b\u306e\u30af\u30e9\u30b9\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u30a8\u30e9\u30fc\u3092\u56de\u907f\u3067\u304d\u308b\u3002<br \/>\n\u30fbDependencyInjectionTestExecutionListener<br \/>\n\u30fbStepScopeTestExecutionListener<\/p>\n<p>\u30c6\u30b9\u30c8\u30af\u30e9\u30b9<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\n@RunWith(SpringJUnit4ClassRunner.class)\r\n@ContextConfiguration(locations = { &quot;classpath:META-INF\/spring\/shareService.xml&quot; })\r\n@TestExecutionListeners({ DependencyInjectionTestExecutionListener.class,\r\n    StepScopeTestExecutionListener.class})\r\npublic class SharedService_longToconmaTest {\r\n\r\n    @Inject\r\n    SharedService target;\r\n\r\n    \/**\r\n     * \u30c6\u30b9\u30c8\u672c\u4f53\r\n     *\/\r\n    @Test\r\n    public void test() {\r\n\r\n        long testNum = 9999999999L;\r\n\r\n        String actual = target.longToConma(testNum);\r\n\r\n        assertThat(actual, is(&quot;9,999,999,999&quot;));\r\n    }\r\n\r\n}\r\n<\/pre>\n<h2 id=\"outline__5\">\u53c2\u8003<\/h2>\n<p><a href=\"http:\/\/forum.spring.io\/forum\/spring-projects\/batch\/76317-jdbccursoritemreader-test-fails-on-step-scope\">JdbcCursorItemReader test fails on step scope<\/a><br \/>\n<a href=\"https:\/\/stackoverflow.com\/questions\/28457107\/spring-batch-scope-issue-while-using-spring-boot\">Spring batch scope issue while using spring boot<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e8b\u8c61 @Scope(&#8220;step&#8221;)\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u304c\u4ed8\u4e0e\u3055\u308c\u3066\u3044\u308b\u30af\u30e9\u30b9\u306b\u5bfe\u3057 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":93,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[154,152,149,153],"class_list":["post-657","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-error-bugs","tag-scope","tag-beancreationexception","tag-spring-batch","tag-step"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u4e8b\u8c61 @Scope(&quot;step&quot;)\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u304c\u4ed8\u4e0e\u3055\u308c\u3066\u3044\u308b\u30af\u30e9\u30b9\u306b\u5bfe\u3057\u3066Junit\u306b\u3088\u308bSpringJU\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"\u3044\u3068\u3068\u3044\"\/>\n\t<meta name=\"google-site-verification\" content=\"dHfPMd0QGg17gHdKjRsKPMBchJp5FPXghry3uflwfwM\" \/>\n\t<meta name=\"keywords\" content=\"spring batch,beancreationexception,step,@scope\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/ito-u-oti.com\/?p=657\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"ja_JP\" \/>\n\t\t<meta property=\"og:site_name\" content=\"\u30f0\u5200\u306e\u304a\u3082\u3061\u3083\u7bb1\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"@Scope(\u201cstep\u201d)\u306e\u30c6\u30b9\u30c8\u3067\u30a8\u30e9\u30fc\uff08No context holder available for step scope\uff09 | \u30f0\u5200\u306e\u304a\u3082\u3061\u3083\u7bb1\" \/>\n\t\t<meta property=\"og:description\" content=\"\u4e8b\u8c61 @Scope(&quot;step&quot;)\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u304c\u4ed8\u4e0e\u3055\u308c\u3066\u3044\u308b\u30af\u30e9\u30b9\u306b\u5bfe\u3057\u3066Junit\u306b\u3088\u308bSpringJU\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/ito-u-oti.com\/?p=657\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/ito-u-oti.com\/wp-content\/uploads\/2017\/10\/spring.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/ito-u-oti.com\/wp-content\/uploads\/2017\/10\/spring.png\" \/>\n\t\t<meta property=\"og:image:width\" content=\"900\" \/>\n\t\t<meta property=\"og:image:height\" content=\"900\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-02-03T11:05:02+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-02-03T11:13:36+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"@Scope(\u201cstep\u201d)\u306e\u30c6\u30b9\u30c8\u3067\u30a8\u30e9\u30fc\uff08No context holder available for step scope\uff09 | \u30f0\u5200\u306e\u304a\u3082\u3061\u3083\u7bb1\" \/>\n\t\t<meta name=\"twitter:description\" content=\"\u4e8b\u8c61 @Scope(&quot;step&quot;)\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u304c\u4ed8\u4e0e\u3055\u308c\u3066\u3044\u308b\u30af\u30e9\u30b9\u306b\u5bfe\u3057\u3066Junit\u306b\u3088\u308bSpringJU\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@itouoti_IoT\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/ito-u-oti.com\/wp-content\/uploads\/2017\/10\/spring.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/ito-u-oti.com\\\/?p=657#article\",\"name\":\"@Scope(\\u201cstep\\u201d)\\u306e\\u30c6\\u30b9\\u30c8\\u3067\\u30a8\\u30e9\\u30fc\\uff08No context holder available for step scope\\uff09 | \\u30f0\\u5200\\u306e\\u304a\\u3082\\u3061\\u3083\\u7bb1\",\"headline\":\"@Scope(&#8220;step&#8221;)\\u306e\\u30c6\\u30b9\\u30c8\\u3067\\u30a8\\u30e9\\u30fc\\uff08No context holder available for step scope\\uff09\",\"author\":{\"@id\":\"https:\\\/\\\/ito-u-oti.com\\\/?author=1#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/ito-u-oti.com\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/ito-u-oti.com\\\/wp-content\\\/uploads\\\/2017\\\/10\\\/spring.png\",\"width\":900,\"height\":900},\"datePublished\":\"2019-02-03T20:05:02+09:00\",\"dateModified\":\"2019-02-03T20:13:36+09:00\",\"inLanguage\":\"ja\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/ito-u-oti.com\\\/?p=657#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/ito-u-oti.com\\\/?p=657#webpage\"},\"articleSection\":\"\\u30a8\\u30e9\\u30fc\\u30fb\\u30d0\\u30b0\\u5bfe\\u51e6, @Scope, BeanCreationException, Spring batch, step\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ito-u-oti.com\\\/?p=657#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/ito-u-oti.com#listItem\",\"position\":1,\"name\":\"\\u30db\\u30fc\\u30e0\",\"item\":\"https:\\\/\\\/ito-u-oti.com\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/ito-u-oti.com\\\/?cat=6#listItem\",\"name\":\"\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/ito-u-oti.com\\\/?cat=6#listItem\",\"position\":2,\"name\":\"\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\",\"item\":\"https:\\\/\\\/ito-u-oti.com\\\/?cat=6\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/ito-u-oti.com\\\/?cat=7#listItem\",\"name\":\"\\u30a8\\u30e9\\u30fc\\u30fb\\u30d0\\u30b0\\u5bfe\\u51e6\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/ito-u-oti.com#listItem\",\"name\":\"\\u30db\\u30fc\\u30e0\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/ito-u-oti.com\\\/?cat=7#listItem\",\"position\":3,\"name\":\"\\u30a8\\u30e9\\u30fc\\u30fb\\u30d0\\u30b0\\u5bfe\\u51e6\",\"item\":\"https:\\\/\\\/ito-u-oti.com\\\/?cat=7\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/ito-u-oti.com\\\/?p=657#listItem\",\"name\":\"@Scope(&#8220;step&#8221;)\\u306e\\u30c6\\u30b9\\u30c8\\u3067\\u30a8\\u30e9\\u30fc\\uff08No context holder available for step scope\\uff09\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/ito-u-oti.com\\\/?cat=6#listItem\",\"name\":\"\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/ito-u-oti.com\\\/?p=657#listItem\",\"position\":4,\"name\":\"@Scope(&#8220;step&#8221;)\\u306e\\u30c6\\u30b9\\u30c8\\u3067\\u30a8\\u30e9\\u30fc\\uff08No context holder available for step scope\\uff09\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/ito-u-oti.com\\\/?cat=7#listItem\",\"name\":\"\\u30a8\\u30e9\\u30fc\\u30fb\\u30d0\\u30b0\\u5bfe\\u51e6\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/ito-u-oti.com\\\/#person\",\"name\":\"\\u3044\\u3068\\u3068\\u3044\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/ito-u-oti.com\\\/?p=657#personImage\",\"url\":\"https:\\\/\\\/ito-u-oti.com\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/IMG_20191231_122527_095-150x150.jpg\",\"width\":96,\"height\":96,\"caption\":\"\\u3044\\u3068\\u3068\\u3044\"},\"sameAs\":[\"https:\\\/\\\/twitter.com\\\/itouoti_IoT\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/ito-u-oti.com\\\/?author=1#author\",\"url\":\"https:\\\/\\\/ito-u-oti.com\\\/?author=1\",\"name\":\"\\u3044\\u3068\\u3068\\u3044\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/ito-u-oti.com\\\/?p=657#authorImage\",\"url\":\"https:\\\/\\\/ito-u-oti.com\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/IMG_20191231_122527_095-150x150.jpg\",\"width\":96,\"height\":96,\"caption\":\"\\u3044\\u3068\\u3068\\u3044\"},\"sameAs\":[\"https:\\\/\\\/twitter.com\\\/itouoti_IoT\"]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ito-u-oti.com\\\/?p=657#webpage\",\"url\":\"https:\\\/\\\/ito-u-oti.com\\\/?p=657\",\"name\":\"@Scope(\\u201cstep\\u201d)\\u306e\\u30c6\\u30b9\\u30c8\\u3067\\u30a8\\u30e9\\u30fc\\uff08No context holder available for step scope\\uff09 | \\u30f0\\u5200\\u306e\\u304a\\u3082\\u3061\\u3083\\u7bb1\",\"description\":\"\\u4e8b\\u8c61 @Scope(\\\"step\\\")\\u30a2\\u30ce\\u30c6\\u30fc\\u30b7\\u30e7\\u30f3\\u304c\\u4ed8\\u4e0e\\u3055\\u308c\\u3066\\u3044\\u308b\\u30af\\u30e9\\u30b9\\u306b\\u5bfe\\u3057\\u3066Junit\\u306b\\u3088\\u308bSpringJU\",\"inLanguage\":\"ja\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ito-u-oti.com\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ito-u-oti.com\\\/?p=657#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/ito-u-oti.com\\\/?author=1#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/ito-u-oti.com\\\/?author=1#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/ito-u-oti.com\\\/wp-content\\\/uploads\\\/2017\\\/10\\\/spring.png\",\"@id\":\"https:\\\/\\\/ito-u-oti.com\\\/?p=657\\\/#mainImage\",\"width\":900,\"height\":900},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/ito-u-oti.com\\\/?p=657#mainImage\"},\"datePublished\":\"2019-02-03T20:05:02+09:00\",\"dateModified\":\"2019-02-03T20:13:36+09:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ito-u-oti.com\\\/#website\",\"url\":\"https:\\\/\\\/ito-u-oti.com\\\/\",\"name\":\"\\u30f0\\u5200\\u306e\\u304a\\u3082\\u3061\\u3083\\u7bb1\",\"description\":\"music\\u00d7IT\\u00d7guiter\\u00d7programing\",\"inLanguage\":\"ja\",\"publisher\":{\"@id\":\"https:\\\/\\\/ito-u-oti.com\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"@Scope(\u201cstep\u201d)\u306e\u30c6\u30b9\u30c8\u3067\u30a8\u30e9\u30fc\uff08No context holder available for step scope\uff09 | \u30f0\u5200\u306e\u304a\u3082\u3061\u3083\u7bb1","description":"\u4e8b\u8c61 @Scope(\"step\")\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u304c\u4ed8\u4e0e\u3055\u308c\u3066\u3044\u308b\u30af\u30e9\u30b9\u306b\u5bfe\u3057\u3066Junit\u306b\u3088\u308bSpringJU","canonical_url":"https:\/\/ito-u-oti.com\/?p=657","robots":"max-image-preview:large","keywords":"spring batch,beancreationexception,step,@scope","webmasterTools":{"google-site-verification":"dHfPMd0QGg17gHdKjRsKPMBchJp5FPXghry3uflwfwM","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ito-u-oti.com\/?p=657#article","name":"@Scope(\u201cstep\u201d)\u306e\u30c6\u30b9\u30c8\u3067\u30a8\u30e9\u30fc\uff08No context holder available for step scope\uff09 | \u30f0\u5200\u306e\u304a\u3082\u3061\u3083\u7bb1","headline":"@Scope(&#8220;step&#8221;)\u306e\u30c6\u30b9\u30c8\u3067\u30a8\u30e9\u30fc\uff08No context holder available for step scope\uff09","author":{"@id":"https:\/\/ito-u-oti.com\/?author=1#author"},"publisher":{"@id":"https:\/\/ito-u-oti.com\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/ito-u-oti.com\/wp-content\/uploads\/2017\/10\/spring.png","width":900,"height":900},"datePublished":"2019-02-03T20:05:02+09:00","dateModified":"2019-02-03T20:13:36+09:00","inLanguage":"ja","mainEntityOfPage":{"@id":"https:\/\/ito-u-oti.com\/?p=657#webpage"},"isPartOf":{"@id":"https:\/\/ito-u-oti.com\/?p=657#webpage"},"articleSection":"\u30a8\u30e9\u30fc\u30fb\u30d0\u30b0\u5bfe\u51e6, @Scope, BeanCreationException, Spring batch, step"},{"@type":"BreadcrumbList","@id":"https:\/\/ito-u-oti.com\/?p=657#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/ito-u-oti.com#listItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/ito-u-oti.com","nextItem":{"@type":"ListItem","@id":"https:\/\/ito-u-oti.com\/?cat=6#listItem","name":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"}},{"@type":"ListItem","@id":"https:\/\/ito-u-oti.com\/?cat=6#listItem","position":2,"name":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","item":"https:\/\/ito-u-oti.com\/?cat=6","nextItem":{"@type":"ListItem","@id":"https:\/\/ito-u-oti.com\/?cat=7#listItem","name":"\u30a8\u30e9\u30fc\u30fb\u30d0\u30b0\u5bfe\u51e6"},"previousItem":{"@type":"ListItem","@id":"https:\/\/ito-u-oti.com#listItem","name":"\u30db\u30fc\u30e0"}},{"@type":"ListItem","@id":"https:\/\/ito-u-oti.com\/?cat=7#listItem","position":3,"name":"\u30a8\u30e9\u30fc\u30fb\u30d0\u30b0\u5bfe\u51e6","item":"https:\/\/ito-u-oti.com\/?cat=7","nextItem":{"@type":"ListItem","@id":"https:\/\/ito-u-oti.com\/?p=657#listItem","name":"@Scope(&#8220;step&#8221;)\u306e\u30c6\u30b9\u30c8\u3067\u30a8\u30e9\u30fc\uff08No context holder available for step scope\uff09"},"previousItem":{"@type":"ListItem","@id":"https:\/\/ito-u-oti.com\/?cat=6#listItem","name":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"}},{"@type":"ListItem","@id":"https:\/\/ito-u-oti.com\/?p=657#listItem","position":4,"name":"@Scope(&#8220;step&#8221;)\u306e\u30c6\u30b9\u30c8\u3067\u30a8\u30e9\u30fc\uff08No context holder available for step scope\uff09","previousItem":{"@type":"ListItem","@id":"https:\/\/ito-u-oti.com\/?cat=7#listItem","name":"\u30a8\u30e9\u30fc\u30fb\u30d0\u30b0\u5bfe\u51e6"}}]},{"@type":"Person","@id":"https:\/\/ito-u-oti.com\/#person","name":"\u3044\u3068\u3068\u3044","image":{"@type":"ImageObject","@id":"https:\/\/ito-u-oti.com\/?p=657#personImage","url":"https:\/\/ito-u-oti.com\/wp-content\/uploads\/2021\/06\/IMG_20191231_122527_095-150x150.jpg","width":96,"height":96,"caption":"\u3044\u3068\u3068\u3044"},"sameAs":["https:\/\/twitter.com\/itouoti_IoT"]},{"@type":"Person","@id":"https:\/\/ito-u-oti.com\/?author=1#author","url":"https:\/\/ito-u-oti.com\/?author=1","name":"\u3044\u3068\u3068\u3044","image":{"@type":"ImageObject","@id":"https:\/\/ito-u-oti.com\/?p=657#authorImage","url":"https:\/\/ito-u-oti.com\/wp-content\/uploads\/2021\/06\/IMG_20191231_122527_095-150x150.jpg","width":96,"height":96,"caption":"\u3044\u3068\u3068\u3044"},"sameAs":["https:\/\/twitter.com\/itouoti_IoT"]},{"@type":"WebPage","@id":"https:\/\/ito-u-oti.com\/?p=657#webpage","url":"https:\/\/ito-u-oti.com\/?p=657","name":"@Scope(\u201cstep\u201d)\u306e\u30c6\u30b9\u30c8\u3067\u30a8\u30e9\u30fc\uff08No context holder available for step scope\uff09 | \u30f0\u5200\u306e\u304a\u3082\u3061\u3083\u7bb1","description":"\u4e8b\u8c61 @Scope(\"step\")\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u304c\u4ed8\u4e0e\u3055\u308c\u3066\u3044\u308b\u30af\u30e9\u30b9\u306b\u5bfe\u3057\u3066Junit\u306b\u3088\u308bSpringJU","inLanguage":"ja","isPartOf":{"@id":"https:\/\/ito-u-oti.com\/#website"},"breadcrumb":{"@id":"https:\/\/ito-u-oti.com\/?p=657#breadcrumblist"},"author":{"@id":"https:\/\/ito-u-oti.com\/?author=1#author"},"creator":{"@id":"https:\/\/ito-u-oti.com\/?author=1#author"},"image":{"@type":"ImageObject","url":"https:\/\/ito-u-oti.com\/wp-content\/uploads\/2017\/10\/spring.png","@id":"https:\/\/ito-u-oti.com\/?p=657\/#mainImage","width":900,"height":900},"primaryImageOfPage":{"@id":"https:\/\/ito-u-oti.com\/?p=657#mainImage"},"datePublished":"2019-02-03T20:05:02+09:00","dateModified":"2019-02-03T20:13:36+09:00"},{"@type":"WebSite","@id":"https:\/\/ito-u-oti.com\/#website","url":"https:\/\/ito-u-oti.com\/","name":"\u30f0\u5200\u306e\u304a\u3082\u3061\u3083\u7bb1","description":"music\u00d7IT\u00d7guiter\u00d7programing","inLanguage":"ja","publisher":{"@id":"https:\/\/ito-u-oti.com\/#person"}}]},"og:locale":"ja_JP","og:site_name":"\u30f0\u5200\u306e\u304a\u3082\u3061\u3083\u7bb1","og:type":"article","og:title":"@Scope(\u201cstep\u201d)\u306e\u30c6\u30b9\u30c8\u3067\u30a8\u30e9\u30fc\uff08No context holder available for step scope\uff09 | \u30f0\u5200\u306e\u304a\u3082\u3061\u3083\u7bb1","og:description":"\u4e8b\u8c61 @Scope(&quot;step&quot;)\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u304c\u4ed8\u4e0e\u3055\u308c\u3066\u3044\u308b\u30af\u30e9\u30b9\u306b\u5bfe\u3057\u3066Junit\u306b\u3088\u308bSpringJU","og:url":"https:\/\/ito-u-oti.com\/?p=657","og:image":"https:\/\/ito-u-oti.com\/wp-content\/uploads\/2017\/10\/spring.png","og:image:secure_url":"https:\/\/ito-u-oti.com\/wp-content\/uploads\/2017\/10\/spring.png","og:image:width":900,"og:image:height":900,"article:published_time":"2019-02-03T11:05:02+00:00","article:modified_time":"2019-02-03T11:13:36+00:00","twitter:card":"summary","twitter:title":"@Scope(\u201cstep\u201d)\u306e\u30c6\u30b9\u30c8\u3067\u30a8\u30e9\u30fc\uff08No context holder available for step scope\uff09 | \u30f0\u5200\u306e\u304a\u3082\u3061\u3083\u7bb1","twitter:description":"\u4e8b\u8c61 @Scope(&quot;step&quot;)\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u304c\u4ed8\u4e0e\u3055\u308c\u3066\u3044\u308b\u30af\u30e9\u30b9\u306b\u5bfe\u3057\u3066Junit\u306b\u3088\u308bSpringJU","twitter:creator":"@itouoti_IoT","twitter:image":"https:\/\/ito-u-oti.com\/wp-content\/uploads\/2017\/10\/spring.png"},"aioseo_meta_data":{"post_id":"657","title":null,"description":null,"keywords":[{"label":"Spring batch","value":"Spring batch"},{"label":"BeanCreationException","value":"BeanCreationException"},{"label":"step","value":"step"},{"label":"@Scope","value":"@Scope"}],"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":"","og_description":"","og_object_type":"article","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[],"defaultGraph":"","defaultPostTypeGraph":""},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-04-11 14:11:17","updated":"2025-06-04 05:56:08","seo_analyzer_scan_date":null},"_links":{"self":[{"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/posts\/657","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=657"}],"version-history":[{"count":4,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/posts\/657\/revisions"}],"predecessor-version":[{"id":661,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/posts\/657\/revisions\/661"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/media\/93"}],"wp:attachment":[{"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=657"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}