0
值我有我的春天批處理程序編寫的所有工作正常,直到我試圖重構豆類和相應的類名的名稱才把我開始變得異常下面
Error creating bean with name
'org.springframework.batch.core.configuration.xml.SimpleFlowFactoryBean#3':
Cannot create inner bean '(inner bean)#6aed4066' of type
[org.springframework.batch.core.job.flow.support.StateTransition] while
setting bean property 'stateTransitions' with key [24]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name '(inner bean)#6aed4066': Cannot create inner bean '(inner
bean)#7e1f1f61' of type
[org.springframework.batch.core.job.flow.support.state.StepState] while
setting constructor argument; nested exception is
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name '(inner bean)#7e1f1f61': Unsatisfied dependency
expressed through constructor argument with index 0 of type
[org.springframework.batch.core.Step]: Could not convert constructor
argument value of type [$Proxy55] to...
所以我試圖瞭解$Proxy 55
是什麼以及爲什麼會發生這種異常。
$代理是一個類,是名在您的配置中作爲代理創建。 Spring將爲接口,抽象類和可能的其他事物創建代理。您的問題可能不是由$ Proxy 55引起的。$ Proxy 55似乎是您遇到的問題的症狀。 – DwB
而不是使用「我做許多換器然後測試」的技術,嘗試重置回工作源,然後做一個改變然後測試。 – DwB
@DwB感謝您的意見和建議將嘗試幾個選項,並會恢復,以防我需要更多的幫助 –