Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
akwei committed Mar 7, 2012
1 parent aface65 commit ddb855c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
=======================================================
### web 使用说明:
### 1,导入项目依赖jar文件
### 2,配置web.xml,示例:[web.xml]
### 2,配置web.xml,示例:example目录中的web.xml

### 3.在spring配置文件中写入:
### 3.在spring配置文件中写入:example目录中的spring.xml

### 4,在demo.haloweb.dev3g.web目录中写一个Action代码
### 4,在demo.haloweb.dev3g.web目录中写一个Action代码:example目录中的HelloAction.java

[]

### 5,运行tomcat,然后在地址栏输入 http://localhost:8080/webapp/hello/say.do 可以访问say这个方法
到此为基本的mvc运行,里面的Hkrequest HkResponse是HttpServletRequest HttpServletResponse的子类,可以直接使用
Expand Down
2 changes: 1 addition & 1 deletion example/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<!-- spring加载 -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/classes/applicationContext.xml</param-value>
<param-value>/WEB-INF/classes/spring.xml</param-value>
</context-param>
<!-- spring加载 -->
<listener>
Expand Down

0 comments on commit ddb855c

Please sign in to comment.