RESTFUL提示java.lang.NoSuchMethodException: Could not find a suitable constructor in
来源:互联网 发布:centos 6.7 安装教程 编辑:程序博客网 时间:2024/06/05 08:42
出现这个问题是因为我们写了一个接口,全部的restful的annotation都写在了这个接口上,然后让提供服务的类实现这个接口。就导致了这个问题。
其实想一想还是很容易理解的,我们可能写多个类实现这个接口,这样就会出现找不到到底哪个子类才是我们想要的实现的情况。
请看stackoverflow上面的一篇讨论:http://stackoverflow.com/questions/20148269/restful-service-interface-with-jersey
0 0
- RESTFUL提示java.lang.NoSuchMethodException: Could not find a suitable constructor in
- java.lang.IllegalStateException: Could not find a method capture(View) in the activity class
- java.lang.IllegalStateException: Could not find a method false(View) in the activity class com.xuan
- java.lang.IllegalStateException: Could not find method onClickcrea(View) in a parent or ancestor Con
- java.lang.IllegalStateException: Could not find a method onStartSingleInstanceActivityClickLisenter(
- java.lang.IllegalStateException: Could not find a method add(View) in the activity class haha.com.e
- 错误提示:java.lang.NoSuchMethodException
- Could not locate a suitable jar utility
- android 报错 java.lang.IllegalStateException: Could not find a method next(View)
- Could not find a coercion from type java.lang.String to type epro.db.domain.LotStepInfo.
- 安装Spark 客户端 提示"the install4j wizard could not find a java(TM) Runntime......“
- could not find a getter for in class方法解决
- could not find a getter for ... in class ...
- Could not find a getter for salesName in class
- could not find a getter for ... in class ...
- could not find a getter for ... in class ...
- Could not find a storyboard named 'MainStoryBoard' in bundle NSBundle
- Could not find a storyboard named 'Main' in bundle
- IntelliJ IDEA 导入maven项目
- 使用Android API最佳实践 Retrofit OKHttp GSON
- Android 修改应用包名
- 论ORACLE 9i 的体系图为什么这么金典
- OKHTTP的单例和再封装
- RESTFUL提示java.lang.NoSuchMethodException: Could not find a suitable constructor in
- c++学习之运算符重载
- 如何使用nsenter 进入Docker容器
- USB驱动程序框架
- HttpURLConnection下载数据,JSON解析数据, BaseAdapter 适配数据。
- SpatialSpark和SparkDistributedMatrix调研小结
- 游戏界面刷新模式
- HTTP Keep-Alive
- JAVA线程 -- wait notify notifyAll