Cannot read file within jar file

前端 未结 3 692
半阙折子戏
半阙折子戏 2021-01-22 06:13

I developped an application using spring-boot, I need to read a csv file that contain emails.

this is a snippet how I do:

public Set readFile         


        
3条回答
  •  Happy的楠姐
    2021-01-22 06:35

    Use http://jd.benow.ca/ Jd GUI drop your jar file there and

    1. check is the file is there in the jar

    2. If Yes then see the path/folder structure where it is placed.

    3. If Yes folder exists Access the File using "//myFile.csv"

提交回复
热议问题