1.启动服务器,加载一些配置文件
DispatcherServlet 对象被创建
springmvc.xml 被加载
HelloController 对象被创建
InternalResourceViewResolver 视图解析器对象被创建
开启mvc的注解支持
对应代码
初始网站页面index.jsp
<%-- Created by IntelliJ IDEA. User: ASUS Date: 2020/4/11 Time: 12:56 To change this template use File | Settings | File Templates. --%> <%@ page contentType="text/html;charset=UTF-8" language="java" %> <html> <head> <title>Title</title> </head> <body> <h3>入门程序</h3> <a href="hello">12</a> </body> </html>