大家好!
我刚学Spring 框架,可是我在建一个十分简单的SpringMVC项目时,确出现不能显示页面。。
我的具体操作是:
首先建一个web 动态项目。
然后配置 web.xml和相关配置(不太懂,照着别人写的).
然后就是写了一个简单的bean
再然后就是写一个显示的jsp.
再配置相关信息。
然后直接在tomcat下的运行,就是出不来东西。
我想问问大家,建一个SpringMVC项目有哪些步骤,它们有哪些配置是必要(在eclipse下,而不是myeclipse).如果谁有简单的源码可以给看看哦。。先在这谢谢大家。
一时也难说清楚,建议你看看这里:http://developer.51cto.com/art/200906/130120.htm
http://developers-blog.org/blog/default/2009/05/21/Spring-MVC
下载地址
http://www.developers-blog.org/resources/default/spring-mvc-example.zip
There's a Maven archetype (template project structure) for Spring MVC here:
[url]http://docs.codehaus.org/display/MAVENUSER/Archetypes+List[/url]
That's a good starting place for this kind of investigation. To create an archetype using Maven, first install Maven:
[url]http://maven.apache.org/plugins/maven-install-plugin/[/url]
and then create a project using the archetype:
[url]http://maven.apache.org/guides/introduction/introduction-to-archetypes.html[/url]
You can also use the m2eclipse plugin for Eclipse to simplify this and it takes you through the stages of the project using a wizard. Just right click -> New Project -> Other, Maven and select the archetype. Hope that helps.