`
281460530
  • 浏览: 1199 次
  • 性别: Icon_minigender_1
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
web 项目里面经常会定义一些常量的接口,类,方便开发引用。在维护工作中,如果修该了这个常量值Constant类,发布过程中只替换Constant类,你会发现引用类中的值根本没有改掉。 例:定义一个常量类Constant 定义了两个基本常量。 public class Constant {  public final static int Max_size = 120;  public final static String xxSQL="select *From SCOTT;"; }写个调用类: public class Client { public stat ...
Global site tag (gtag.js) - Google Analytics