no declaration can be found for element‘contest:property-placeholder解决办法

but no declaration can be found for element 'context:property-placeholder'. but no declaration can be found for element ‘context:property-placeholder’. context:property-placeholder标签无效 要使用context:property-placeholder,必须在XML文件中设置模式映射。 将表头代码换为以下: <?xml version="1.0" encoding... 阅读详情

问题描述:

报错文件:applicationContext-dao.xml

报错提示:The matching wildcard is strict,but no declaration can be found for element'contest:property-placeholder'.

意思是,找不到元素标签。

解决思路:

1、顺藤摸瓜倒推,既然提示找不到这个元素,应该是xml头文件没有引入这个标签。引入一下就可以了。

xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/context
                    http://www.springframework.org/schema/context/spring-context.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:p="http://www.springframework.org/schema/p"
       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
                           http://www.springframework.org/schema/context/spring-context.xsd
                           http://www.springframework.org/schema/mvc
                           http://www.springframework.org/schema/mvc/spring-mvc.xsd">
<!--配置解析properties文件的工具类-->
<!--context:property-placeholder location="/WEB-INF/classes/jdbc.properties"-->
<context:property-placeholder location="classpath:resource/*.properties"/>

反思:

1、通过百度,度娘并没有直接答案。但是在同类的错误给了点提示(a.标签没有引入;b.标签引入时,字母敲错了)

2、通过审查该xml的头文件,果然是头文件引入错了(在IDEA中,喜欢Ctrl+D 复制一行,忘记修改了)

总结:

如上所述,xml头文件,引入context就可以了。

解决:dubbo找不到dubbo.xsd报错 构建dubbo项目的时候会遇到: 操作步骤: http://blog.csdn.net/gjldwz/article/details/50555922 Multiple annotations found at this line: - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'. - schema_reference.4: Failed to read schema document 'http://code.alibabatech.com/schema/dubbo/dubbo.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element 立即下载

相关推荐

ICCompiler II学习笔记(一)ICC II使用全流程 overview

学习笔记同步发布在我的个人网站上,欢迎来访查看。 个人学识有限,理解可能有误,仅供参考。 文章目录一、前言二、 ICC II 简介和 GUI2.1 Blocks 和 Design Libraries2.2 Objects2.3 Application Options三、Design Setup四、APR flow五、 课程主题:如何用 ICC II来实现最好的PPA 一、前言 现在的芯片都在追求一个极致的PPA 芯片的生成可以分为以下 5大步骤: Front-end Design:前端设计,最终产生

一名FPGA芯片设计爱好者的技术博客 2万+

The matching wildcard is strict, but no declaration can be found for element 解决方法

The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'. 在xml里经常会报错,查看错误信息会像类似的报错, 原因是:在配置文件里用的是标签,程序不知道你的标签表示什么意思。 比如我这里没有定义  。 wildcard:通配符

dkvirus 1万+

OSGEarth三维可视化避坑指南:如何高效加载SHP/TIF地理数据?

本文详细介绍了OSGEarth在三维地球可视化中高效加载SHP/TIF地理数据的实战策略,包括空间参考系配置、性能优化、二三维联动等关键技巧。通过具体案例和代码示例,帮助开发者解决坐标偏移、性能卡顿等常见问题,提升三维GIS开发效率。

weixin_29216957的博客 231

XML文件报“The matching wildcard is strict, but no declaration can be found for element 'mvc:annotation”

问题描述:Description    Resource    Path    Location    Typecvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'mvc:annotation-driven'.    springmvc.xml  ...

包包小公子的私人博客 1万+

Spacedesk保姆级教程:用旧平板给Windows电脑当副屏,从安装到避坑一步到位

本文提供Spacedesk保姆级教程,教你如何将旧平板变成Windows电脑的副屏,从软件安装到网络配置、显示优化及声音交互,一步步避开常见陷阱。通过WiFi实现扩展屏功能,支持4K分辨率和60Hz刷新率,让闲置设备焕发新生。

weixin_42524945的博客 1万+

Windows Server远程桌面断开后,PyWinAuto/按键精灵脚本失效?试试这个‘会话保持’的终极配置

本文深入解析Windows Server远程桌面断开后导致PyWinAuto/按键精灵脚本失效的问题,提供会话保持的终极配置方案。通过转换到控制台会话(console模式)和调整组策略,确保自动化程序在断开连接后持续稳定运行,适用于Windows Server各版本。

weixin_28738165的博客 235

The matching wildcard is strict, but no declaration can be found for element ‘mvc:default-servlet..‘

我的是springmvc,应该导入spirngmvc中的annotion-driven.匹配的通配符是严格的,找不到这个元素。也就是找不到这个配置。

weixin_66476244的博客 761

Linux内存压力测试工具【memtester】详且精

对Linux下的压力测试工具memtester有一个比较人性化的概述,以及避坑心得。

weixin_44118923的博客 1万+

- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for eleme

在Spring中配置bean.xml文件时出现一下问题 面向切面aop命名空间没有配置好 导致出现以下问题Multiple annotations found at this line: - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element  '...

SilentWu的博客 2375

多角度模板匹配的模板创建技巧

基于形状的模板匹配多角度创建技巧

manuoo的专栏 3412

【OD统一考试(B卷)】比赛的冠亚季军,Python 解答

比赛的规则是 0 号和 1 号比赛,2 号和 3 号比赛,以此类推,每一轮,相邻的运动员进行比赛,获胜的进入下一轮,实力值大的获胜,实力值相等的情况,id 小的情况下获胜,轮空的直接进入下一轮。第一轮比赛,id 为 0 实力值为 2 的运动员和 id 为 1 实力值为 3 的运动员比赛, 1 号胜出进入下一轮争夺冠亚军,id 为 2 的运动员和 id 为 3 的运动员比赛,3 号胜出进入下一轮争夺冠亚军;2 号与 0 号,比赛进行季军的争夺,2 号实力值为 4,0 号实力值 2,故 2 号胜出,得季军。

梦想橡皮擦,专栏100例写作模式先行者,现象级专栏 《Python 爬虫 100 例》作者、《滚雪球学 Python 专栏》原创者 1万+

The matching wildcard is strict, but no declaration can be found for element 'apollo:config

      最近技改,项目升级,原先的一个老系统的jdk和spring都升级到了最新版本,并且接入了apollo。更新代码之后,发现有xml报错,内容如下: Multiple annotations found at this line:     - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declarati...

wmx1992的博客 2394

如何懂固高卡以及滚筒轴+平移轴配合运动?

🏆本文收录于专栏,主要记录项目实战过程中所遇到的Bug或因后果及提供真实有效的解决方案,希望能够助你一臂之力,帮你早日登顶实现财富自由🚀;同时,欢迎大家!持续更新中,up!up!up!!

**My Coding Family** 861

The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'

在eclipse中导入了一个新的maven工程,然后发现有xml报错,具体报错内容如下: Multiple annotations found at this line:     - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo...

wmx1992的博客 2044

vb 6.0并口开发操作实例

vb6并口开发,简体中文,试例内有inpout32.dll动态链接库

visio安装包

Microsoft Office Visio 是一款专业的制图软件。利用经过更新的形状、协作工具和数据链接图表,创建专业级图表以简化复杂的信息。

The matching wildcard is strict, but no declaration can be found for element 'context:component-scan

Description    Resource    Path    Location    Type cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:component-scan'.    applicationContext...

qq_34117624的博客 1863

C# WinForm 基于DirectShow.dll编写的程序,可边预览边保存视频,音频和图片

基于微软的DirectShow.dll的二次开发1.自动识别连接的摄像头跟麦克风且可以对其进行选择(默认选中第一个)2.可录制wmv和avi两种格式的视频并且都带有音频,avi可以录制的分辨率和帧数进行选择,wmv默认进行了淸晰度优化如不喜欢可去除代码中有相关提示3.可在预览点开之后进行拍照,也可边录制视频边拍照4.添加了视频和音频的压缩功能(酌情使用)这次二次开发发现C#对DirectShow的相关信息太少,这次做完也不敢藏私共享出来,还望大家指正

cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element

在dubbo创建服务和引用服务时,报错:cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 在appplicationContext-dubbo.xml中引用服务时,设置了dubbo约束,会报错,提示找不到dubbo:application、dub...

xiejunna的博客 860

Data-Structures-and-Algorithm-Analysis-in-Java.pdf

作者: Weiss, Mark A. 出版社: Addison Wesley Data Structures and Algorithm Analysis in Java is an “advanced algorithms” book that fits between traditional CS2 and Algorithms Analysis courses. In the old ACM Curriculum Guidelines, this course was known as CS7. This text is for readers who want to learn good programming and algorithm analysis skills simultaneously so that they can develop such programs with the maximum amo...

The matching wildcard is strict, but no declaration can be found for element 'aop:config'

The matching wildcard is strict, but no declaration can be found for element 'aop:config'.    applicationContext.xml    /BookManageSystem/src/main/resources    line 126    XML Problem 这是错误名 解决方法:把下的...

talentNot的博客 1212

The matching wildcard is strict, but no declaration can be found for element 'aop:aspectj’

新增AOP切面,统计系统方法耗时。 package com.xyzq.afa.pbank.console.aop; /** * Created by YANG on 2017-7-6. */ import com.xyzq.afa.util.PBankUtil; import org.aspectj.lang.JoinPoint; import org.aspectj.lang.Pro

hithedy的专栏 2万+

The matching wildcard is strict, but no declaration can be found for element ‘rabbit:queue‘.

web项目启动时xml解析错误,具体错误信息如下: Offending resource: URL [jar:file:/usr/local/tomcat/webapps/ROOT/WEB-INF/lib/****-config-3.0.3-SNAPSHOT.jar!/spring-com/applicationContext-appcontext.xml]; nested exception is org.springframework.beans.factory.xml.XmlBeanDefinitio

xilin6664的博客 666

springmvc报错:cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found

 cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'mvc:annotation-driven'.       解决:头的引入顺序混乱 将http://www.springframework.org/schema/tx的位置移动到 ...

zzxwefxf的博客 1220

The matching wildcard is strict, but no declaration can be found for element ‘aop:config‘.

The matching wildcard is strict, but no declaration can be found for element 'aop:config'.

m0_51975064的博客 2471

spring错误“The matching wildcard is strict, but no declaration can be found for element ‘context:prop“

xml文件中context:property-placeholder标签报错:“The matching wildcard is strict, but no declaration can be found for element 'context:prop” 解决方法,添加"xmlns:context="http://www.springframework.org/schema/context""

weixin_43971862的博客 1115

dubbo报错

dubbo配置文件报错 在配置dubbo服务的过程中,经常会遇到虽然程序能够跑起来,但是配置文件一堆红叉,虽然不影响功能,但是确实很让人恶心。 报错信息如下: Multiple annotations found at this line: – cvc-complex-type.2.4.c: The matching wildcard is strict, but no d...

pengfeifei26的专栏 246

cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration的解决

导入了一个工程,编译什么的都还好,但是报了一个XML的错误。 cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'.  具体错误如下: Multiple annotations found

DDSHANG的专栏 3万+
上一篇: java设计模式之—追美眉的技术:状态模式(State):同一个方法,根据不同的状态来执行不同的结果
下一篇: IDEA工具避坑指南(八):GitHub登录下载安装 | Invalid authentication data.404 | push时 Push failed:errno 10053
血煞长虹
博客等级 码龄16年 296粉丝 139原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值