美文网首页
idea编写spring mvc程序时 xml文件xmlns报u

idea编写spring mvc程序时 xml文件xmlns报u

作者: 鸟德新之助 | 来源:发表于2020-06-23 04:53 被阅读0次

第一步:idea编写spring mvc程序时 xml文件报URI is not registered ( Setting | Project Settings | Schemas and DTDs ),如图所示

image.png

第二步:打开File -> setting


image.png

第三步:搜索栏输入schema
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd

image.png

第四步:点击apply -> ok 可以看到不报错了


image.png

当然,idea很智能,其实是有更简单的方法的
如果所示,点击小灯泡 -> 点击fetch external resource 就可以自动添加了


image.png

相关文章

网友评论

      本文标题:idea编写spring mvc程序时 xml文件xmlns报u

      本文链接:https://www.haomeiwen.com/subject/jdfcfktx.html