最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin2浏览0评论

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)

发布评论

评论列表(0)

  1. 暂无评论