上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 18 下一页
摘要: @RunWith(SpringRunner.class) @SpringBootTest(classes = DemoApplication.class)//加载启动类 public class TestAnnotation { @Autowired private AnnontationServiceTestImpl a; @Test public ... 阅读全文
posted @ 2019-05-08 16:36 宇枫 阅读(191) 评论(0) 推荐(0) 编辑
摘要: java设计模式,按照模式的应用目标分类,设计模式可分为创建型模式、结构型模式和行为模式 1.创建型模式,是指对对象创建过程的各种问题和解决方案的总结,包括各种工厂模式factory、abstractFactory,单例模式 singleton,构建器模式builder,原型模式protoType; 阅读全文
posted @ 2019-04-21 20:47 宇枫 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 使用漏桶算法,规定桶子大小,流速大小,让请求以匀速进入系统业务处理层; 工具类: 阅读全文
posted @ 2019-04-04 12:00 宇枫 阅读(806) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-04-02 11:08 宇枫 阅读(690) 评论(0) 推荐(0) 编辑
摘要: import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import javax.servlet.http.HttpServletRequest; import org.apache.commons.lang.StringUtils; /** * * ... 阅读全文
posted @ 2019-03-21 16:08 宇枫 阅读(2419) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2019-03-21 11:09 宇枫 阅读(17) 评论(0) 推荐(0) 编辑
摘要: import java.util.regex.Matcher; import java.util.regex.Pattern; public class StringUtils { public static String replaceBlank(String str) { String dest = ""; if (str!=null) { ... 阅读全文
posted @ 2019-03-19 11:58 宇枫 阅读(664) 评论(0) 推荐(0) 编辑
摘要: import java.lang.management.ManagementFactory; import java.net.InetAddress; import java.net.NetworkInterface; /** * Twitter_Snowflake * SnowFlake的结构如下(每部分用-分开): * 0 - 0000000000 0000000000 000000... 阅读全文
posted @ 2019-03-13 20:32 宇枫 阅读(1516) 评论(0) 推荐(0) 编辑
摘要: public enum TestTypeEnum { TEST("CODE", "name", "other"); private final String remark; private final String type; private final String other; TestTypeEnum(String type, String ... 阅读全文
posted @ 2019-03-13 15:29 宇枫 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 转:https://blog.csdn.net/werqerwer 一:https://blog.csdn.net/werqerwer/article/details/88061689 Java职业发展路径 二:https://blog.csdn.net/werqerwer/article/deta 阅读全文
posted @ 2019-03-12 11:38 宇枫 阅读(3024) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 18 下一页