开发者

serialVersionUID not declared in Servlet

I am getting the following e开发者_开发技巧rror in my Servlet.

The serializable class Regstn does not declare a static final serialVersionUID field of type long

How to resolve this error?


This is just a warning not an error. In your servlet class just add a class variable.

 private static final long serialVersionUID = 1L;

I hope your class or any super-class of it, implements Serializable

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜