ObjectInputStream happy with FileInputStream, not happy with getResourceAsStream

后端 未结 5 1743
闹比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:17

    One issue is that maven tries to filter everything in the resource folder. Make a separate folder and then instruct maven not to filter it.

    
       
           ${basedir}/bin
           false
           
               **/*
           
       
    
    

提交回复
热议问题