ObjectInputStream happy with FileInputStream, not happy with getResourceAsStream

后端 未结 5 1758
闹比i
闹比i 2020-12-10 12:42

I have some pretty standard code which takes in a serialized object from a stream, which bascially looks like this:

  Object getObjectFromStream(InputStream is) {         


        
5条回答
  •  北荒
    北荒 (楼主)
    2020-12-10 13:25

    This one worked for me.

            
              maven-resources-plugin
              2.5
              
                UTF-8
                
                  xls
                  xlsx
                  jrxml
                  jasper
                
              
            
    

提交回复
热议问题