<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Forrest He的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/forwayfarer</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; forwayfarer]]></copyright><item><title><![CDATA[多线程运行机制 概要]]></title><link>https://blog.csdn.net/ForWayfarer/article/details/3458633</link><guid>https://blog.csdn.net/ForWayfarer/article/details/3458633</guid><author>ForWayfarer</author><pubDate>Sat, 06 Dec 2008 09:29:00 +0800</pubDate><description><![CDATA[    1.多线程运行特点    同一段Java程序，在不同虚拟机(JVM)的实现可能会有不同，尤其Java线程。学习线程时，最令我印象深刻的就是那种不确定性、没有保障性，各个线程的运行完全是以不可预料的方式和速度推进，有的一个程序运行了N次，其结果差异性很大，这全要归咎于JVM。    所谓的多任务是通过周期性地将CPU时间片切换到不同的子任务，虽然从微观上看来，单核的CPU上同时只运行一个子任]]></description><category></category></item><item><title><![CDATA[线程：Lock接口和死锁]]></title><link>https://blog.csdn.net/ForWayfarer/article/details/3455837</link><guid>https://blog.csdn.net/ForWayfarer/article/details/3455837</guid><author>ForWayfarer</author><pubDate>Fri, 05 Dec 2008 22:09:00 +0800</pubDate><description><![CDATA[    1.Lock接口     java.utils.concurrent包是jdk1.5新增的，用来处理多线程。实现java.util.concurrent.locks.Lock接口的类具有与synchronized关键字同样的功能，但是它更加强大一些。java.utils.concurrent.locks.ReentrantLock是较常用的实现了Lock接口的类。下面是ReentrantL]]></description><category></category></item><item><title><![CDATA[线程：sleep()、wait()、yield()和join()方法]]></title><link>https://blog.csdn.net/ForWayfarer/article/details/3455130</link><guid>https://blog.csdn.net/ForWayfarer/article/details/3455130</guid><author>ForWayfarer</author><pubDate>Fri, 05 Dec 2008 20:59:00 +0800</pubDate><description><![CDATA[        1.sleep()和wait()        这两个方法都可以让调用它的线程沉睡(sleep)/停止运行(wait)指定的时间，到了这个时间，线程就会自动醒来，变为可运行状态（RUNNABLE）。        public static native void sleep(long millis) throws InterruptedException;           p]]></description><category></category></item><item><title><![CDATA[线程的状态、实现与启动、实现同步的方法]]></title><link>https://blog.csdn.net/ForWayfarer/article/details/3447293</link><guid>https://blog.csdn.net/ForWayfarer/article/details/3447293</guid><author>ForWayfarer</author><pubDate>Thu, 04 Dec 2008 22:00:00 +0800</pubDate><description><![CDATA[1. 线程的状态public enum State {       NEW,       RUNNABLE,       BLOCKED,       WAITING,       TIMED_WAITING,       TERMINATED;   } (1)NEW（新建状态：A thread that has not yet started is in this state.）：实例化Th]]></description><category></category></item><item><title><![CDATA[标准输入/输出/出错]]></title><link>https://blog.csdn.net/ForWayfarer/article/details/3321471</link><guid>https://blog.csdn.net/ForWayfarer/article/details/3321471</guid><author>ForWayfarer</author><pubDate>Mon, 17 Nov 2008 20:56:00 +0800</pubDate><description><![CDATA[大多数操作系统都有三个标准文件描述符：标准输入，标准输出，标准出错。 这三个标准文件描述符映射到编程语言的标准库中，往往加了一层包装，但是名字通常还是叫标准输入，标准输出，标准出错。在其它语言中的一般写法是：stdin，stdout，stderr（有的语言里大写，有的语言里小写）。对应Java中的System.in，System.out，System.err。 在语言层面的实现三个文件描述]]></description><category></category></item><item><title><![CDATA[JDK和JRE的区别]]></title><link>https://blog.csdn.net/ForWayfarer/article/details/3321410</link><guid>https://blog.csdn.net/ForWayfarer/article/details/3321410</guid><author>ForWayfarer</author><pubDate>Mon, 17 Nov 2008 20:42:00 +0800</pubDate><description><![CDATA[1. 定义JRE(Java Runtime Enviroment)是Java的运行环境。面向Java程序的使用者，而不是开发者。如果你仅下载并安装了JRE，那么你的系统只能运行Java程序。JRE是运行Java程序所必须环境的集合，包含JVM标准实现及Java核心类库。它包括Java虚拟机、Java平台核心类和支持文件。它不包含开发工具(编译器、调试器等)。JDK(Java Develop]]></description><category></category></item><item><title><![CDATA[如果要求精确的答案，请避免使用float和double]]></title><link>https://blog.csdn.net/ForWayfarer/article/details/3052344</link><guid>https://blog.csdn.net/ForWayfarer/article/details/3052344</guid><author>ForWayfarer</author><pubDate>Fri, 10 Oct 2008 19:27:00 +0800</pubDate><description><![CDATA[1. 概述float和double类型的主要设计目的是为了科学计算和工程计算。它们执行二进制浮点运算，这是为了在广域数值范围上提供较为精确的快速近似计算而精心设计的。然而，它们没有提供完全精确的结果，所以不应该被用于要求精确结果的场合。float和double类型对于货币计算尤为不合适，因为要让一个float或者double精确地表示0.1(或者10的任何负数次方值)是不可能的，比如Syste]]></description><category></category></item><item><title><![CDATA[struts2: Form表单有多个submit的提交问题]]></title><link>https://blog.csdn.net/ForWayfarer/article/details/3030259</link><guid>https://blog.csdn.net/ForWayfarer/article/details/3030259</guid><author>ForWayfarer</author><pubDate>Tue, 07 Oct 2008 20:59:00 +0800</pubDate><description><![CDATA[【第1步】多个submit的Form表单页面 or 在jsp页面中使用URL进行提交s:form action="UserAction">            s:submit中的method属性和struts.xml中action标签中的method属性一致(method属性指定了要调用的方法)。        在s:submit中可以为一个action设置多个meth]]></description><category></category></item><item><title><![CDATA[struts2: include和global-results]]></title><link>https://blog.csdn.net/ForWayfarer/article/details/3029177</link><guid>https://blog.csdn.net/ForWayfarer/article/details/3029177</guid><author>ForWayfarer</author><pubDate>Tue, 07 Oct 2008 16:06:00 +0800</pubDate><description><![CDATA[先贴两段代码，在慢慢解释(1)struts-user.xmlstruts>    package name="struts-user" extends="struts-default">                global-results>            result type="redirect-action">UserAction_queryAl]]></description><category></category></item><item><title><![CDATA[struts2: Constant Configuration]]></title><link>https://blog.csdn.net/ForWayfarer/article/details/3026174</link><guid>https://blog.csdn.net/ForWayfarer/article/details/3026174</guid><author>ForWayfarer</author><pubDate>Tue, 07 Oct 2008 10:04:00 +0800</pubDate><description><![CDATA[1. 先从Apache Struts 2 Documentation下摘录一些内容：Constants can be declared in multiple files. By default, constants are searched for in the following order, allowing for subsequent files to override previo]]></description><category></category></item><item><title><![CDATA[Struts2中ActionContext介紹 && Struts2如何获得request]]></title><link>https://blog.csdn.net/ForWayfarer/article/details/3025820</link><guid>https://blog.csdn.net/ForWayfarer/article/details/3025820</guid><author>ForWayfarer</author><pubDate>Tue, 07 Oct 2008 09:19:00 +0800</pubDate><description><![CDATA[1. ActionContext在Struts2开发中,除了将请求参数自动设置到Action的字段中,我们往往也需要在Action里直接获取请求(Request)或会话(Session)的一些信息,甚至需要直接对JavaServlet Http的请求(HttpServletRequest),响应(HttpServletResponse)操作. 我们需要在Action中取得request请求参数]]></description><category></category></item><item><title><![CDATA[SSH整合(2) - struts-types]]></title><link>https://blog.csdn.net/ForWayfarer/article/details/3024581</link><guid>https://blog.csdn.net/ForWayfarer/article/details/3024581</guid><author>ForWayfarer</author><pubDate>Mon, 06 Oct 2008 23:50:00 +0800</pubDate><description><![CDATA[1. Struts2支持不同类型的返回结果：名字 说明Chain Result 用来处理Action链Dispatcher Result 用来转向页面，通常处理JSPFreeMarker Result 处理FreeMarker模板HttpHeader Result 用来控制特殊的Http行为Redirect Resul]]></description><category></category></item><item><title><![CDATA[SSH整合(1)-最小整合框架]]></title><link>https://blog.csdn.net/ForWayfarer/article/details/3024466</link><guid>https://blog.csdn.net/ForWayfarer/article/details/3024466</guid><author>ForWayfarer</author><pubDate>Mon, 06 Oct 2008 23:06:00 +0800</pubDate><description><![CDATA[1. Spring和Hibernate整合：hibernate委托给spring托管。需要改动的地方：(1)需要导入的包：spring.jar + hibernate最小导入包 + commons-dbcp.jar/commons-collections.jar/commons-pool.jar(数据库缓冲池)；(2)applicationContext.xml中增加两个bean：data]]></description><category></category></item><item><title><![CDATA[AOP在spring中的简单实现]]></title><link>https://blog.csdn.net/ForWayfarer/article/details/3014944</link><guid>https://blog.csdn.net/ForWayfarer/article/details/3014944</guid><author>ForWayfarer</author><pubDate>Sat, 04 Oct 2008 08:18:00 +0800</pubDate><description><![CDATA[直接看代码package edu.hust.springProxy;//抽象角色  public interface RoleDAO {     public void doSomething(); }package edu.hust.springProxy;//真实角色 public class RoleDAOImpl implements]]></description><category></category></item><item><title><![CDATA[AOP]]></title><link>https://blog.csdn.net/ForWayfarer/article/details/2980340</link><guid>https://blog.csdn.net/ForWayfarer/article/details/2980340</guid><author>ForWayfarer</author><pubDate>Thu, 25 Sep 2008 22:14:00 +0800</pubDate><description><![CDATA[1.引言我们知道，J2EE应用系统只有部署在J2EE容器中才能运行，那么为什么划分为J2EE容器和J2EE应用系统？通过对J2EE容器运行机制的分析，我们可以发现：实际上J2EE容器分离了一般应用系统的一些通用功能，例如事务机制、安全机制以及对象池或线程池等性能优化机制。这些功能机制是每个应用系统都需要的，而且其设计开发有一定难度，同时对运行的稳定性和快速性要求颇高，必须经过长时间调试和运行经]]></description><category></category></item><item><title><![CDATA[代理]]></title><link>https://blog.csdn.net/ForWayfarer/article/details/2970447</link><guid>https://blog.csdn.net/ForWayfarer/article/details/2970447</guid><author>ForWayfarer</author><pubDate>Wed, 24 Sep 2008 01:31:00 +0800</pubDate><description><![CDATA[1.代理模式的作用是：为其他对象提供一种代理以控制对这个对象的访问(在某些情况下，一个客户不想或者不能直接引用另一个对象，而代理对象可以在客户端和目标对象之间起到中介的作用).2.代理模式一般涉及到的角色有：(1)抽象角色：声明真实对象和代理对象的共同接口; (2)真实角色：代理角色所代表的真实对象，是我们最终要引用的对象; (3)代理角色：代理对象角色内部含有对真实对象的引用，从而可以操作真]]></description><category></category></item><item><title><![CDATA[反射]]></title><link>https://blog.csdn.net/ForWayfarer/article/details/2970438</link><guid>https://blog.csdn.net/ForWayfarer/article/details/2970438</guid><author>ForWayfarer</author><pubDate>Wed, 24 Sep 2008 01:03:00 +0800</pubDate><description><![CDATA[1.问题的提出在Java运行时而非编译时环境中：(1)对于任意一个类，能否知道这个类有哪些属性和方法？(2)对于任意一个对象，能否调用它的任意一个方法？答案是肯定的。这种动态获取类的信息以及动态调用对象的方法的功能来自于Java 语言的反射(Reflection)机制。Java 反射机制主要提供了以下功能：(1)"在运行时"判断任意一个类所具有的成员变量和方法(当然在这之前需要 "在运行时]]></description><category></category></item><item><title><![CDATA[装箱和拆箱]]></title><link>https://blog.csdn.net/ForWayfarer/article/details/2958874</link><guid>https://blog.csdn.net/ForWayfarer/article/details/2958874</guid><author>ForWayfarer</author><pubDate>Sun, 21 Sep 2008 23:14:00 +0800</pubDate><description><![CDATA[1.int、Integer、String三者的相互转换(不涉及Autoboxing/Auto-Unboxing)public static void main(String[] args) {    int num;    Integer integer;    String numString;        //(1) int转换为Integer：public ]]></description><category></category></item><item><title><![CDATA[Date相关]]></title><link>https://blog.csdn.net/ForWayfarer/article/details/2957871</link><guid>https://blog.csdn.net/ForWayfarer/article/details/2957871</guid><author>ForWayfarer</author><pubDate>Sun, 21 Sep 2008 16:27:00 +0800</pubDate><description><![CDATA[java.lang.Object   |--java.util.Date      |--java.sql.Date      |--java.sql.Timestampjava.lang.Object   |--java.text.Format      |--java.text.DateFormat (抽象类, 不能通过构造函数构造对象, 只可以通过getDateTimeInstance()方]]></description><category></category></item><item><title><![CDATA[struts2输入验证--补充]]></title><link>https://blog.csdn.net/ForWayfarer/article/details/2955812</link><guid>https://blog.csdn.net/ForWayfarer/article/details/2955812</guid><author>ForWayfarer</author><pubDate>Sat, 20 Sep 2008 15:23:00 +0800</pubDate><description><![CDATA[1.struts2怎么实现方法签名(类似于struts1的DispatchAction)：在strust.xml中配置如下(1)struts2怎么实现分发验证：对应于每个方法签名，可以有相应的validate()方法如下public void validateRegister()public void validateLogin()public void validateInsert()(]]></description><category></category></item></channel></rss>