Spring Batch - MongoDB to XML - Caused by: java.lang.IllegalStateException: A type to convert the input into is required

后端 未结 2 1203
醉酒成梦
醉酒成梦 2021-01-24 18:35

I am developing Spring Batch - MongoDB to XML example. In this example, when I run the main method I see the below error is cominng. Please guide on the below error

2条回答
  •  伪装坚强ぢ
    2021-01-24 19:37

    Thank you @Sergio, it was great help from you, but below configuration works.

    
            
            
            
            
            
                
                      
                
            
        
    

    The only problem I see, nothing is getting write into the XML file. I will raise a separate question for this issue.

    Note: The main reason of this error is you need to set this property correctly.

    You can also refer: http://www.mkyong.com/spring-batch/how-to-convert-date-in-beanwrapperfieldsetmapper/ as another solution.

提交回复
热议问题