开发者

serialVersionUID not declared in Servlet

开发者 https://www.devze.com 2023-02-14 08:43 出处:网络
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

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

精彩评论

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