运行都是正常
但是它那个类总是有一个黄色的叹号
比较烦人,不知道为什么
例如:
public class LiuyanForm extends ActionForm {警告是在LiuyanForm 上
说的警告是
The serializable class LiuyanForm does not declare a static final serialVersionUID field of type long不知道是什么意思。怎么解决~~
但是它那个类总是有一个黄色的叹号
比较烦人,不知道为什么
例如:
public class LiuyanForm extends ActionForm {警告是在LiuyanForm 上
说的警告是
The serializable class LiuyanForm does not declare a static final serialVersionUID field of type long不知道是什么意思。怎么解决~~
在Eclipse的设置中也可以把它关掉的,设置如下:
Window ==> Preferences ==> Java ==> Compiler ==> Error/Warnings ==> Potential programming problems
将Serializable class without serialVersionUID的warning改成ignore即可。(警告改成忽略)
public abstract class ActionFormextends java.lang.Objectimplements java.io.Serializable