前两天在工作中需要一个用于测试文件下载的简单web程序,条件是使用Tomcat Docker Image作为载体,所以为了方便就使用了SpringBoot框架快速搭建起来。The first step in producing a deployable war file is to provide a...【阅读全文】
3、应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描。如:可以在num上设置默认值0,确保表中num列没有null值,然后这样查询:4、尽量避免在 where 子句中使用 or 来连接条件,否则将导致引擎放弃使用索引而进行全表扫描,如:可以这样查询:union all...【阅读全文】
原文地址:http://www.oodesign.com/factory-pattern.htmlFactory Design PatternMotivationThe Factory Design Pattern is probably the most used design pattern in modern programming languages like Java and C#. It comes in different variants and implementatio...【阅读全文】