本文介绍了Web上不再提供Spring Beans Schema吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

访问 http://www.springframework.org/schema/beans/spring-beans-3.1.xsd 在我的浏览器中生成403.

Visiting http://www.springframework.org/schema/beans/spring-beans-3.1.xsd in my browser produces a 403.

访问 http://www.springframework.org/schema/security/spring-security-3.1.xsd 在我的浏览器中返回有效的架构...

Visiting http://www.springframework.org/schema/security/spring-security-3.1.xsd in my browser returns a valid schema...

那我想念什么?这是暂时的问题吗?还是将Bean模式移到了其他地方?

So what am I missing? Is this a transient issue? Or have the beans schemas moved somewhere else?

推荐答案

我遇到了同样的问题,看来Internet上的公共模式不可用.

I had the same problem, it appears that the public schemas on the internet are unavailable.

我更改了架构位置以在类路径上使用xsd,例如

I changed the schema location to use the xsd on the classpath e.g.

http://www.springframework.org/schema/beans/spring-beans-3.0.xsd

成为:

classpath:/org/springframework/beans/factory/xml/spring-beans-3.0.xsd

并修复了该问题.

这篇关于Web上不再提供Spring Beans Schema吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-19 01:15