当前位置: 代码迷 >> Java Web开发 >> 导入项目报错: The matching wildcard is strict, but no declaration can,该如何处理
  详细解决方案

导入项目报错: The matching wildcard is strict, but no declaration can,该如何处理

热度:787   发布时间:2016-04-13 22:35:25.0
导入项目报错: The matching wildcard is strict, but no declaration can
本帖最后由 Troyturk 于 2015-09-14 14:51:09 编辑
不好意思我又来了,,,
我是从git上导入的一个maven项目
然后导进来好多地方就报错了
代码应该不会出什么错的,估计是本身版本兼容问题或者其他的什么什么的
错误主要有两个:
一、

<?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:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:p="http://www.springframework.org/schema/p" 
xmlns:context="http://www.springframework.org/schema/context"
xmlns:dubbo="http://code.alibabatech.com/schema/dubbo"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://code.alibabatech.com/schema/dubbo
        http://code.alibabatech.com/schema/dubbo/dubbo.xsd"
default-autowire="byName">

<dubbo:application name="-----"  owner="---------------------" />
    <dubbo:registry protocol="zookeeper" address="----------------------"  file="/data/application/dubbo/-------------"/> 
<dubbo:reference id="poiServiceDubbo" interface="com.---------.service.PoiService"  version="1.0" timeout="2000"/>
</beans>

横线地方是我自己修改的
报错:



二、

GoodsBaseInfo这个类是封装在jar包里的
我非常肯定GoodsBaseInfo这个类里面是有.getPrice2()这个方法的
也就是代码是没什么问题的,就是不知道我还要改哪里才不会报错
各位大神有没有啥思路什么的




------解决思路----------------------
一、能自己解决肯定好啊

二、这个问题会影响项目么
  相关解决方案