导入项目报错: The matching wildcard is strict, but no declaration can

Troyturk 2015-09-14 02:45:38
不好意思我又来了,,,
我是从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()这个方法的
也就是代码是没什么问题的,就是不知道我还要改哪里才不会报错
各位大神有没有啥思路什么的



...全文
736 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
Troyturk 2015-09-15
  • 打赏
  • 举报
回复
我是用eclipse直接从git上导下来的项目, 然后可以点进去看jar包里的类 不过不是我这边的问题就好 还是谢谢了
  • 打赏
  • 举报
回复
引用 7 楼 Troyturk 的回复:
[quote=引用 6 楼 shijing266 的回复:] 这种问题没办法,你反编译看下 ,getPrice1和getPrice2有没有
我刚刚反编译了一下,还真没有诶 这是为什么呢 明明看的时候是正常的,反编译了就少了这几个(⊙_⊙)?[/quote] 看? 你是怎么看的.... 我觉得你打包出来的时候可能出了问题,导致这两个方法没有
Troyturk 2015-09-14
  • 打赏
  • 举报
回复
引用 6 楼 shijing266 的回复:
这种问题没办法,你反编译看下 ,getPrice1和getPrice2有没有
我刚刚反编译了一下,还真没有诶 这是为什么呢 明明看的时候是正常的,反编译了就少了这几个(⊙_⊙)?
  • 打赏
  • 举报
回复
这种问题没办法,你反编译看下 ,getPrice1和getPrice2有没有
Troyturk 2015-09-14
  • 打赏
  • 举报
回复
引用 4 楼 shijing266 的回复:
会不会是没编译,重新编译下 顺便把jar放到lib下面试试
我clean项目后只能好几秒,几秒之后那两个Controller就又报错了 会不会是git上导下来的不全
  • 打赏
  • 举报
回复
会不会是没编译,重新编译下 顺便把jar放到lib下面试试
Troyturk 2015-09-14
  • 打赏
  • 举报
回复
引用 2 楼 shijing266 的回复:
一、能自己解决肯定好啊 二、这个问题会影响项目么
服务器是跑的起来,因为它是在Controller里面报的错 所以关于这个Controller的测试用例是不行的 所以大约应该是在哪里可能出现的问题会导致这样的状况呢
  • 打赏
  • 举报
回复
一、能自己解决肯定好啊 二、这个问题会影响项目么
Troyturk 2015-09-14
  • 打赏
  • 举报
回复
第一个错误解决了,唉,每次发完帖子自己解决了是要怎样=_= 第二个错误有没有人有啥思路啊

81,091

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧