开发者

How load xml files, in IntelliJ IDEA

开发者 https://www.devze.com 2022-12-18 00:22 出处:网络
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

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/Perso开发者_如何学运维nSqlMap.xml

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

help me


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号