摘要:
MVC拦截器配置步骤 1. 创建Interceptor拦截器类 该类需要实现HandlerInterceptor类,复写其中的方法。 public interface HandlerInterceptor { default boolean preHandle(HttpServletRequest 阅读全文
摘要:
1 Spring环境搭建步骤 ①创建工程 ②导入静态页面 ③导入需要坐标 ④创建包结构 ⑤导入数据库脚本 ⑥创建POJO类 ⑦创建配置文件 对于⑦重点说明: 配置文件主要是对applicationContext和spring-mvc以及web.xml进行配置。 web.xml:1)配置Spring监 阅读全文