






web.xml 配置
- 全局变量(ioc) 启动服务引用ioc容器
- spring 监听器 可以获取ioc容器的ApplicationContext对象
- 前端控制器 servlet,每个请求都会从这里过来处理一下,让他引入到spring-mvc中
spring-mvc配置
- mvc注解驱动 可以进行对象自动转换(POJO转换成json对象)
- 配置视图解析器,返回相应的view
-
静态资源权限开放 ,可以访问css,img,html等资源
image-20211120165241423.png
网友评论