如何找到相应的spring配置的命名空间

2025-03-28 00:24:38
推荐回答(1个)
回答1:

在web.xml中配置SpringMVC拦截路径并指定SpringMVC.xml的位置 不指定的话默认为:servlet.xml
在applicationContext.xml中加入引用
在SpringMVC.xml中加入相同的引用 加入Spring注解驱动 加入Controller的包
指定SpringMVC.xml的视图解析器 返回前缀 后缀