IntelliJ not seeing resources folder

后端 未结 5 746
忘了有多久
忘了有多久 2021-02-13 15:04

I created a new Project from scratch in IntelliJ by using a Maven Module. I didn\'t select any specific archetypes and I clicked on finish. The project gets created

5条回答
  •  隐瞒了意图╮
    2021-02-13 15:30

    Had similar issue. Solution that worked for me:

    ClassLoader classLoader = getClass().getClassLoader();
    File file = new File(classLoader.getResource("path").getFile());
    

提交回复
热议问题