java - VS Code srcmainresources not included in the class path - Stack Overflow

admin2025-04-26  13

Using VS Code I am trying to access the file application.conf located in the resources folder of a java maven project:

In the projects setting I have src/main/resources in the classpath:

Unfortunately running maven lifecyles the resources folder is not available in the target/classes folder:

Hence the java program with VS Code cannot access any file in the resources folder, how can I add src/main/resources to the class path? (right click folder -> add "Add Folder to Java Source Path" does not work with maven in VS Code)

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1745666660a313068.html

最新回复(0)