码迷,mamicode.com
首页 >  
搜索关键字:desing pattern    ( 7671个结果)
ElasticSearch之Java Api 测试
增加Maven依赖 src/main/resource下增加log4j2.properties appender.console.type = Console appender.console.name = console appender.console.layout.type = Pattern ...
分类:编程语言   时间:2019-02-16 23:09:49    阅读次数:268
C++学习书籍推荐《More Effective C++》下载
百度云及其他网盘下载地址:点我 编辑推荐 《More Effective C++:35个改善编程与设计的有效方法(中文版)》:传世经典书丛 百度云及其他网盘下载地址:点我 编辑推荐 《More Effective C++:35个改善编程与设计的有效方法(中文版)》:传世经典书丛 媒体推荐 《Effe ...
分类:编程语言   时间:2019-02-16 20:37:20    阅读次数:387
springboot 集成druid
1、加入druid相关配置(.yml配置文件) 2、引入druid依赖 3、测试 访问ip:port/druid验证即可,效果如下: 具体源码参照:【Springboot集成Druid】 ...
分类:编程语言   时间:2019-02-16 16:57:12    阅读次数:220
Spring boot 自定义拦截器
1.新建一个类实现HandlerInterceptor接口,重写接口的方法 2.入口类的目录或者兄弟目录下新建一个类继承WebMvcConfigurerAdapter类并重写addInterceptors方法 至此,拦截器配置完毕,可以启动下服务看下效果; ...
分类:编程语言   时间:2019-02-15 18:07:28    阅读次数:145
设计模式
1、什么是设计模式 设计模式(Design pattern)是一套被反复使用、多数人知晓的、经过分类编目的、代码设计经验的总结。使用设计模式是为了可重用代码、让代码更容易被他人理解、保证代码可靠性。 毫无疑问,设计模式于己于他人于系统都是多赢的,设计模式使代码编制真正工程化,设计模式是软件工程的基石... ...
分类:其他好文   时间:2019-02-14 20:56:46    阅读次数:190
正则表达式——子模式
import re# string = "this is a love1ly girl lovel1y"# pattern = re.compile(r"lovely")# ret = pattern.search(string)# print(ret.group())# # group()是返回匹 ...
分类:其他好文   时间:2019-02-14 10:32:18    阅读次数:172
grep,sed,awk用法整理
grep -c 打印出符合要求的行数 -i 忽略大小写 ignore -n 连同符号一起输出 num -v 打印出不符合要求的行 -A2 本行及下面两行 -B2 本行及上面两行 -C2 本行及上下两行 grep ^root passwd #过滤以root开头的行 grep root$ passwd ...
分类:其他好文   时间:2019-02-13 12:41:59    阅读次数:173
LeetCode-44-Wildcard Matching
算法描述: Given an input string (s) and a pattern (p), implement wildcard pattern matching with support for '?' and '*'. The matching should cover the ent ...
分类:其他好文   时间:2019-02-13 10:58:59    阅读次数:145
0.简单工厂-simplefactory(非23之一)
初识简单工厂 定义 简单工厂模式(Simple Factory Pattern):又称为静态工厂方法(Static Factory Method)模式,它属于创建型模式。提供一个创建对象实例的功能,而无须关心其具体实现。被创建实例的类型可以是接口、抽象类,也可以是具体的类。(ps:简单工厂不是一个标 ...
分类:其他好文   时间:2019-02-13 09:33:43    阅读次数:195
builder模式
Builder pattern vs Constructor vs Setter You could have built an object with this: // Example 1 new FlyingMachine("Boeing 787", 2, false); Or this: // ...
分类:其他好文   时间:2019-02-12 21:59:35    阅读次数:169
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!