问题一:使用@Autowired报错 BeanNotOfRequiredTypeException:
Bean named 'userDownloadService' is expected to be of type 'com.xxx.openplatform.portal.service.impl.UserDownloadService'
but was actually of type 'com.sun.proxy.$Proxy133'。
代理混用导致的! 默认用了jdk动态代理,所以你注入接口没事 应该开启cglib代理。
问题二:No tests were found 控制台也没有报错 只是提示测试套件为空
答: 解决方案,项目删掉从svn重新拉一下。 估计是缓存问题。