How load xml files, in IntelliJ IDEA

好久不见. 提交于 2019-12-06 11:11:06

问题


IntelliJ not find xml file under sources folder.

example) src/net/saltfactory/domain/PersonSqlMap.xml

but, If I copy it and past out folder, IntelliJ find xml file

example) out/net/saltfactory/domain/PersonSqlMap.xml

I hope that don't copy and past XML files to out folder

help me


回答1:


First, make sure src is marked as a source folder for your module in Module Settings --> Modules --> --> Sources.

Second, make sure the list of recognized resources includes one for XML files (?*.xml) in Settings --> Project --> Compiler --> Resource Settings.

This is how IntelliJ knows what to copy into your classpath (output folder) in addition to class files. If this doesn't help, please provide more information.



来源:https://stackoverflow.com/questions/2144221/how-load-xml-files-in-intellij-idea

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!