Jsf 2 JSF2项目结构
这里有没有专家特别喜欢JSF2的项目结构。目前,我有以下几点:Jsf 2 JSF2项目结构,jsf-2,Jsf 2,这里有没有专家特别喜欢JSF2的项目结构。目前,我有以下几点: root Java Resources: src dao.au.com.xyz model.au.com.xyz ant WebContent META-INF resources css javascript images WEB-INF sections (for common sections like: m
root
Java Resources: src
dao.au.com.xyz
model.au.com.xyz
ant
WebContent
META-INF
resources
css
javascript
images
WEB-INF
sections (for common sections like: menu, header, footers)
templates (common templates)
views (xhtml pages)
index.html (redirect to index.xhtml under views folder)
这个结构对于JSF2(Facelets)项目结构是否合理/有效?我在JSF规范中找不到任何与我想要的接近的东西。这是主观的、个人的,更依赖于用户。只要导出的WAR符合servlet规范中指定的目录结构,并且您/团队认为它是最好的可用性和可维护性,那么就可以了
不过,关于包裹名称,我更愿意选择。从大到小,而不是相反,甚至混合。例如,
com.example.model
等等,而不是model.com.example
谢谢,巴卢斯克。非常感谢。文件夹名为WebContent,对吗?