上一页 1 2 3 4 5 6 7 8 ··· 14 下一页
摘要: package com.fh; public class Student { private String age; private Integer sex; public String getAge() { return age; } public void setAge(String age) 阅读全文
posted @ 2018-07-17 17:33 默默行走 阅读(55639) 评论(0) 推荐(2) 编辑
摘要: SELECT * FROM ********* info WHERE projectid in (99999999,35566789,23456726,12345678) ORDER BY FIELD(projectid,99999999,35566789,23456726,12345678) 阅读全文
posted @ 2018-07-16 15:41 默默行走 阅读(187) 评论(0) 推荐(0) 编辑
摘要: -- CREATE INDEX three_index ON index_test(names,phone,email); -- SHOW INDEX FROM index_test; -- 3个字段的复合索引 -- 使用第一个字段和第三个字段做条件 ,走索引-- 使用第三个字段和第一个字段做条件, 阅读全文
posted @ 2018-06-15 10:12 默默行走 阅读(136) 评论(0) 推荐(0) 编辑
摘要: package com.fh.interview; /** * @author * @create 2018-06-12 下午10:15 **/ public class Interrent { public static void main(String[] args) { Thread run = new Thread(new Runnable() { ... 阅读全文
posted @ 2018-06-12 22:47 默默行走 阅读(104) 评论(0) 推荐(0) 编辑
摘要: package com.fh.interview.cache; /** * 事实上,Redis的高效性和灵活性正是得益于对于同一个对象类型采取不同的底层结构, * 并在必要的时候对二者进行转换;以及各种底层结构对内存的合理利用。 * * redis的数据结构 * String * List * Set * SortSet * HashSet * * redis的持久化 ... 阅读全文
posted @ 2018-06-09 18:58 默默行走 阅读(77) 评论(0) 推荐(0) 编辑
摘要: package com.fh.interview.cache; import com.google.common.cache.Cache; import com.google.common.cache.CacheBuilder; import java.util.concurrent.Callable; /** * 缓存相关 * FIFO:First In First Out,先进先出... 阅读全文
posted @ 2018-06-09 17:18 默默行走 阅读(136) 评论(0) 推荐(0) 编辑
摘要: package com.fh.interview.tomcat; /* * 运行模式: * BIO * NIO * Apr --从操作系统级别解决了异步IO问题 * * 使用线程池来处理相关的业务逻辑 * * 注释掉AJP--一般不用 * * 但是在高并发场景下AJP协议是优于HTTP协议的 * * @author * @create 2018-06-09 下午4:1... 阅读全文
posted @ 2018-06-09 16:31 默默行走 阅读(86) 评论(0) 推荐(0) 编辑
摘要: package com.fh.interview.aop; /** * Aop测试类 * * Spring中的Aop代理由IOC容器负责创建,管理,其依赖关系也由IOC容器负责管理 * * 默认使用JDK的动态代理创建接口实例的代码 * 当需要代理的类而不是接口的时候,使用Cglib * * * * 阅读全文
posted @ 2018-06-09 16:30 默默行走 阅读(81) 评论(0) 推荐(0) 编辑
摘要: package com.fh.interview; import java.util.concurrent.Exchanger; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; /** * @author * @create 2018-06-03 下午4:31 **/... 阅读全文
posted @ 2018-06-03 16:38 默默行走 阅读(82) 评论(0) 推荐(0) 编辑
摘要: package com.fh.interview; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.Semaphore; /** * @author * * Semaphore用来做特殊资源的并发访问控制是相当合... 阅读全文
posted @ 2018-06-03 16:31 默默行走 阅读(100) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 14 下一页