<bean id="string.message.service" class="com.ce.indiabringsService">
<constructor-arg ref="com.ce.indiabrings.consumer" />
<constructor-arg ref="com.ce.indiabrings.value.function" />
</bean>
我想將其轉換爲基於Java註釋豆(@Bean)。如何轉換以下基於XML的Spring bean到基於Java註釋豆?
什麼迄今已試過嗎?請一些教程 https://www.tutorialspoint.com/spring/spring_java_based_configuration.htm經歷 –