捣鼓了挺长时间,终于让我试出来了。
xsd文件放在WEB-INF文件夹下不会被找到,所以放在WebContent下,按照文件结构写相对路径就能找到了。
<beans:beans xmlns="http://www.springframework.org/schema/security" xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans \xsd\spring-beans-2.5.xsd http://www.springframework.org/schema/security \xsd\spring-security-2.0.4.xsd">