diff --git a/spring/springmvc-base-annotation/README.md b/spring/springmvc-base-annotation/README.md
index a74658d..466479d 100644
--- a/spring/springmvc-base-annotation/README.md
+++ b/spring/springmvc-base-annotation/README.md
@@ -1,80 +1,68 @@
-# springmvc基础(基于注解)
-
-## 目录
-一、搭建hello spring工程
- 1.1 项目搭建
- 1.2 相关注解说明
+# Spring MVC 基础(基于注解)
+
-## 一、搭建hello spring工程
+
+
+## 一、搭建 Hello Spring 工程
### 1.1 项目搭建
-1.新建 maven web 工程,并引入相应的依赖
+1.新建 maven web 工程,并引入相应的依赖:
```xml
-
- 5.1.3.RELEASE
-
+
+ 5.1.3.RELEASE
+
-
- org.springframework
- spring-context
- ${spring-base-version}
-
-
- org.springframework
- spring-beans
- ${spring-base-version}
-
-
- org.springframework
- spring-core
- ${spring-base-version}
-
-
- org.springframework
- spring-web
- ${spring-base-version}
-
-
- org.springframework
- spring-webmvc
- ${spring-base-version}
-
-
- javax.servlet
- javax.servlet-api
- 4.0.1
- provided
-
-
+
+ org.springframework
+ spring-context
+ ${spring-base-version}
+
+
+ org.springframework
+ spring-beans
+ ${spring-base-version}
+
+
+ org.springframework
+ spring-core
+ ${spring-base-version}
+
+
+ org.springframework
+ spring-web
+ ${spring-base-version}
+
+
+ org.springframework
+ spring-webmvc
+ ${spring-base-version}
+
+
+ javax.servlet
+ javax.servlet-api
+ 4.0.1
+ provided
+
+
```
-2.得益于 servlet3.0 和 spring 的支持,我们可以在没有 web.xml 的情况下完成关于 servlet 配置。
-
- 新建 DispatcherServletInitializer.java 文件,这个类的作用相当于我们在 xml 方式下 web.xml 中配置的 DispatcherServlet
+2.得益于 servlet3.0 和 Spring 的共同支持,我们可以在没有 `web.xml` 的情况下完成关于 servlet 配置。新建 DispatcherServletInitializer,这个类的作用相当于我们在 xml 方式下 web.xml 中配置的 DispatcherServlet:
```java
-package com.heibaiying.config;
-
-import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;
-
-/**
- * @author : heibaiying
- */
-
public class DispatcherServletInitializer extends AbstractAnnotationConfigDispatcherServletInitializer {
protected Class>[] getRootConfigClasses() {
@@ -92,30 +80,9 @@ public class DispatcherServletInitializer extends AbstractAnnotationConfigDispat
```
-3.新建 ServletConfig.java,文件内容如下 (这个类相当于我们在 xml 配置方式中的 springApplication.xml)
+3.新建 ServletConfig ,文件内容如下 (这个类相当于我们在 xml 配置方式中的 `springApplication.xml` ):
```java
-package com.heibaiying.config;
-
-import com.heibaiying.exception.NoAuthExceptionResolver;
-import com.heibaiying.interceptors.MyFirstInterceptor;
-import com.heibaiying.interceptors.MySecondInterceptor;
-import org.springframework.context.annotation.Bean;
-import org.springframework.context.annotation.ComponentScan;
-import org.springframework.context.annotation.Configuration;
-import org.springframework.web.servlet.HandlerExceptionResolver;
-import org.springframework.web.servlet.ViewResolver;
-import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer;
-import org.springframework.web.servlet.config.annotation.EnableWebMvc;
-import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
-import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
-import org.springframework.web.servlet.view.InternalResourceViewResolver;
-
-import java.util.List;
-
-/**
- * @author : heibaiying
- */
@Configuration
@EnableWebMvc
@ComponentScan(basePackages = {"com.heibaiying.controller"})
@@ -144,20 +111,9 @@ public class ServletConfig implements WebMvcConfigurer {
```
-4.在 src 下新建 controller 用于测试
+4.新建 Controller 用于测试整体配置是否成功:
```java
-package com.heibaiying.controller;
-
-import com.heibaiying.exception.NoAuthException;
-import org.springframework.stereotype.Controller;
-import org.springframework.web.bind.annotation.RequestMapping;
-
-/**
- * @author : heibaiying
- * @description : hello spring
- */
-
@Controller
@RequestMapping("mvc")
public class HelloController {
@@ -166,12 +122,10 @@ public class HelloController {
private String hello() {
return "hello";
}
-
}
-
```
-5.在 WEB-INF 下新建 jsp 文件夹,新建 hello.jsp 文件
+5.在 WEB-INF 下新建 jsp 文件夹,并创建一个简单的 hello.jsp 文件:
```jsp
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
@@ -185,13 +139,13 @@ public class HelloController {