自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(19)
  • 资源 (1)
  • 收藏
  • 关注

原创 严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderLis

严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderLis解决方法 可能是你的jar文件没有同步发布到自己项目的lib目录中(如果你是用Maven进行构建的话) 可以试试 下面的办法 项目点击右键 点击 Properties 选择Deployment Ass

2016-03-02 19:16:51 607

转载 设计模式

简述一下你了解的设计模式。 答:所谓设计模式,就是一套被反复使用的代码设计经验的总结(情境中一个问题经过证实的一个解决方案)。使用设计模式是为了可重用代码、让代码更容易被他人理解、保证代码可靠性。设计模式使人们可以更加简单方便的复用成功的设计和体系结构。将已证实的技术表述成设计模式也会使新系统开发者更加容易理解其设计思路。 在GoF的《Design Patterns: Elements of

2016-02-28 16:09:25 596

翻译 java NIO

最近看到一篇很好的讲解java NIO的文章《Java NIO Tutorial》,将持续翻译。1.Java NIO 说明Java NIO(New IO)是一个可以替代标准Java IO API的IO API(从Java 1.4开始),Java NIO提供了与标准IO不同的IO工作方式。Java NIO: Channels and Buffers(通道和缓冲区)标准

2016-02-28 15:02:59 330

转载 java 知识体系

1.知识体系总体结构 2.面向对象 3.常用API 4.Collection集合 5.IO

2016-02-28 13:39:34 385

转载 java 面向对象 OO 反射 "六原则一法则"

1.获得一个类的类对象有哪些方式? 答: - 方法1:类型.class,例如:String.class - 方法2:对象.getClass(),例如:”hello”.getClass() - 方法3:Class.forName(),例如:Class.forName(“java.lang.String”)2.如何通过反射创建对象? 答: - 方法1:通过类对象调用newInstance

2016-02-28 12:57:53 1848

转载 java JDBC 数据库 事务 ACID

1.阐述JDBC操作数据库的步骤。2.Statement和PreparedStatement有什么区别?哪个性能更好?3.使用JDBC操作数据库时,如何提升读取数据的性能?如何提升更新数据的性能? 4.在进行数据库编程时,连接池有什么作用? 5.什么是DAO模式? 6.事务的ACID是指什么? 7.JDBC中如何进行事务处理? 8.JDBC能否处理Blob和Clob?

2016-02-27 19:39:51 1423

转载 java IO 流Stream 序列化Serializable 文件File

一、什么是流 二、流的分类三、流结构介绍四、常用流类介绍五、Serializable六、面试题

2016-02-27 11:12:04 3967

转载 java 线程

Thread, Runnable sleep(), join(), yield(), wait(), notify(), notifyAll() run(), start() synchronized

2016-02-26 16:20:08 305

转载 java中Collection/Collections;List/Set/Map;ArrayList/Vector/LinkedList;HashSet/HashMap/TreeSet/TreeMap

整理一些有关java中 Collection/Collections; List/Set/Map; ArrayList/Vector/LinkedList; HashSet/HashMap/TreeSet/TreeMap 的知识与面试题。

2016-02-25 20:39:49 752

转载 java 日期和时间

1.如何取得年月日、小时分钟秒? 2.如何取得从1970年1月1日0时0分0秒到现在的毫秒数? 3.如何取得某月的最后一天? 4.如何格式化日期? 5.打印昨天的当前时刻。

2016-02-25 12:56:41 391

转载 java类加载机制

问:描述一下JVM加载class文件的原理机制? 答:JVM中类的装载是由类加载器(ClassLoader)和它的子类来实现的,Java中的类加载器是一个重要的Java运行时系统组件,它负责在运行时查找和装入类文件中的类。 由于Java的跨平台性,经过编译的Java源程序并不是一个可执行程序,而是一个或多个类文件。当Java程序需要使用某个类时,JVM会确保这个类已经被加载、连接(验证、准备

2016-02-25 10:16:56 458

原创 java 对象克隆

1. 为什么需要克隆 2. 克隆的实现方式2.1. 浅度克隆,使用clone 2.2. 深度克隆,使用clone2.3. 深度克隆,使用对象序列化和反序列化实现3. java方法参数的理解4. clone中String与StringBuffer区别

2016-02-24 21:22:52 567

原创 java中抽象的(abstract)方法是否可同时是静态的(static),是否可同时是本地方法(native),是否可同时被synchronized修饰

java中抽象的(abstract)方法是否可同时是静态的(static),是否可同时是本地方法(native),是否可同时被synchronized修饰

2016-02-24 20:37:39 16155

转载 java中 本地方法 Native Method

一. 什么是Native Method   简单地讲,一个Native Method就是一个java调用非java代码的接口。一个Native Method是这样一个java的方法:该方法的实现由非java语言实现,比如C。这个特征并非java所特有,很多其它的编程语言都有这一机制,比如在C++中,你可以用extern "C"告知C++编译器去调用一个C的函数。   "A native m

2016-02-24 16:57:12 1047

原创 java中抽象类(abstract class)和接口(interface)

抽象类和接口都不能够实例化,但可以定义抽象类和接口类型的引用。一个类如果继承了某个抽象类或者实现了某个接口都需要对其中的抽象方法全部进行实现,否则该类仍然需要被声明为抽象类。反之,一个全部实现了的类也可以是抽象类:比如将一些含有相同方法的类的相同方法抽取到父类中,而这些类又有不同的方法,此时父类就可能是完全实现的,没有必要为所有子类的方法留接口,因为不同子类的方法可能本身就不同,这样父类被设置为抽

2016-02-24 15:38:58 2331

原创 java中Overload(重载)和Override(重写、覆盖)

面试题:重载(Overload)和重写(Override)的区别。重载的方法能否根据返回类型进行区分? 答:方法的重载和重写都是实现多态的方式,区别在于前者实现的是编译时的多态性,而后者实现的是运行时的多态性。重载发生在一个类中,同名的方法如果有不同的参数列表(参数类型不同、参数个数不同或者二者都不同)则视为重载;重写发生在子类与父类之间,重写要求子类被重写方法与父类被重写方法有相同的参数列表,

2016-02-24 13:16:09 2309

原创 java中String、StringBuffer、StringBuilder

String、StringBuffer、StringBuilder区别 什么情况下用+运算符进行字符串连接比调用StringBuffer/StringBuilder对象的append方法连接字符串性能更好?String相等测试,intern

2016-02-24 10:47:30 2843

转载 Spring面试题和答案

参考69道Spring面试题和答案,慢慢整理目录Spring 概述依赖注入Spring beansSpring注解Spring数据访问Spring面向切面编程(AOP)Spring MVCSpring 概述1. 什么是spring?Spring 是个java企业级应用的开源开发框架。Spring主要用来开发Java应用,但是有些扩展是针对构建J2EE平台的web应用。S

2016-02-23 22:29:59 460

转载 java中HashSet浅析

面试题:统计一列数中各个数字的出现频率。 可以用HashMap。 能否用HashSet实现? 答案是,不能。 java中HashSet详解 对于 HashSet 而言,它是基于 HashMap 实现的,HashSet 底层采用 HashMap 来保存所有元素,因此 HashSet 的实现比较简单,查看 HashSet 的源代码,可以看到如下代码: public class HashSet<

2016-02-23 17:33:41 953

SQL语言艺术

The Art of SQL 中文版 For all the buzz about trendy IT techniques, data processing is still at the core of our systems, especially now that enterprises all over the world are confronted with exploding volumes of data. Database performance has become a major headache, and most IT departments believe that developers should provide simple SQL code to solve immediate problems and let DBAs tune any "bad SQL" later. In The Art of SQL, author and SQL expert Stephane Faroult argues that this "safe approach" only leads to disaster. His insightful book, named after Art of War by Sun Tzu, contends that writing quick inefficient code is sweeping the dirt under the rug. SQL code may run for 5 to 10 years, surviving several major releases of the database management system and on several generations of hardware. The code must be fast and sound from the start, and that requires a firm understanding of SQL and relational theory. The Art of SQL offers best practices that teach experienced SQL users to focus on strategy rather than specifics. Faroult's approach takes a page from Sun Tzu's classic treatise by viewing database design as a military campaign. You need knowledge, skills, and talent. Talent can't be taught, but every strategist from Sun Tzu to modern-day generals believed that it can be nurtured through the experience of others. They passed on their experience acquired in the field through basic principles that served as guiding stars amid the sound and fury of battle. This is what Faroult does with SQL. Like a successful battle plan, good architectural choices are based on contingencies. What if the volume of this or that table increases unexpectedly? What if, following a merger, the number of users doubles? What if you want to keep several years of data online? Faroult's way of looking at SQL performance may be unconventional and unique, but he's deadly serious about writing good SQL and using SQL well. The Art of SQL is not a cookbook, listing problems and giving recipes. The aim is to get you-and your manager-to raise good questions.

2015-12-07

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除