Eclipse Juno m2ecliipse : directory structure explanation

后端 未结 1 1126
一向
一向 2021-01-27 14:31

I\'m working under Eclipse Juno on a maven-archetype-webapp project done with m2eclipse.

I don\'t understand directory structure. Anyone could explain how it\'s working?

相关标签:
1条回答
  • 2021-01-27 15:20

    All of this is explained here.

    • src/main/java This is where your source code goes
    • src/main/resources This is where you put your resources like your xml files. Things that aren't java classes but need to be in your classpath. If you put them under /java, they won't be copied into your classpath so you have to put them here.
    • src/main/webapp This is for webapps. Everything you put in here will be copied over to your war file, directly.
    0 讨论(0)
提交回复
热议问题