Stripes:java.lang.NoSuchMethodException:net.sourceforge.Stripes.action.Resolution<;初始化>;
我是stripes新手,在向Java应用程序发布帖子时,我遇到以下错误:Stripes:java.lang.NoSuchMethodException:net.sourceforge.Stripes.action.Resolution<;初始化>;,java,stripes,Java,Stripes,我是stripes新手,在向Java应用程序发布帖子时,我遇到以下错误: java.lang.NoSuchMethodException: net.sourceforge.stripes.action.Resolution.<init> java.lang.NoSuchMethodException:net.sourceforge.stripes.action.Resolution。 post接收良好,并调用了相应的方法(setheaders),但无论何时post发生,它都会在日
java.lang.NoSuchMethodException: net.sourceforge.stripes.action.Resolution.<init>
java.lang.NoSuchMethodException:net.sourceforge.stripes.action.Resolution。
post接收良好,并调用了相应的方法(setheaders),但无论何时post发生,它都会在日志和控制台中留下大堆栈转储,这显然是由于上述原因
是什么导致了这个问题?发现我有两个名为“setheaders”的方法,还有两个名为“getheaders”的方法,它们具有不同的签名,Stripes开始混淆并调用了错误的方法 所以stripes试图为属性调用我的“GetHeaders”,当它想要一个“GetHeaders”作为解析时,它可以返回一个响应 解决方案是简单地将我的post方法名称更改为“saveheaders”,而不是“setheaders”,以避免冲突