org.xml.sax.SAXParseException; lineNumber: 36; columnNumber: 53; cvc-complex-type.2.4.c: 通配符的匹配很全面, 但无法找到元素'mvc:view-controller'
的声明。
路径的cache
改为mvc
。
xmlns:mvc="http://www.springframework.org/schema/cache"
http://www.springframework.org/schema/cache
http://www.springframework.org/schema/cache/spring-cache.xsd
改完后的路径
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
https://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc.xsd">
因为我们是以MVC的路径访问相关的控制器。
本次实验如果对有你有帮助,欢迎一键三连支持我一下,我是程序员飞鸟,我们下次见。