摘要:
1. 配置过程: ① 配置servlet(org.springframework.web.servlet.DiapatcherServlet)拦截请求 ② SpringMVC的默认配置文件:servletName-servlet.xml ③ 可以通过配置servlet的 <init-param>标签 阅读全文
摘要:
1. 使用步骤 ① 在pom.xml 增加父级依赖(spring-boot-starter-parent) ② 增加项目起步依赖,如spring-boot-starter-web ③ 配置JDK版本插件 ④ 增加入口类 ⑤ 给main所在类增加注解@EnableAutoConfiguration声明 阅读全文