摘要: package test; import java.util.*; /** * Created by ming */ public class Test { public static void main(String[] args) { Set longSet=new HashSet(); longSet.add(1L); l... 阅读全文
posted @ 2016-10-24 17:54 全力以赴001 阅读(12990) 评论(0) 推荐(0)
摘要: 现在你建一个类: 然后在你的配置属性文件加上: 然后在spring启动类上加上配置,目的是为了注入: 最后使用如下: 然后常量就能访问了。这个常量好处就是你可以根据不同的属性文件配置,在生产或者开发文件配置不同的变量值了。。。 so day day up... 阅读全文
posted @ 2016-10-24 16:53 全力以赴001 阅读(18589) 评论(0) 推荐(0)