开发者

What project type do I choose in eclipse for a spring mvc web app?

What project type in eclipse do I choose when I want a spring mvc web application? (i'm not using maven).

I want a layout where I can choose the folder names.

i 开发者_如何学JAVAwant them to be similiar in layout to how spring's sample applications are setup (basic mvc, petclinic etc).


You'd choose a standard web project and put the Spring JARS in the WEB-INF/lib. The Spring context XML would be loaded by the ContextLoaderListener, and the path would be declared in the web.xml.


I usually just go with Java Project, and build the rest of the structure myself. If I was building apps regularly, I'd skip past this, but building new apps infrequently, it strongly helps me re-familiarize with where everything is in that schema.


You can use Spring IDE http://www.springsource.org/springide/release-20 to get help to create config files.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜