摘要:心里想着是不是应该到北京发展,那里有个自己向往的企业,创新工场打开了好久没看的创新工场的主页,竟然看到了创新工场落户上海的消息。
阅读全文
09 2011 档案
摘要:没有真正理解内核,只是模仿使用。用来定时检验是否为工作日。applicationContext.xml<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.or
阅读全文
摘要:DateFormat df = DateFormat.getDateTimeInstance();//得到日期时间DateFormat dftom = DateFormat.getDateInstance(); //得到日期Date dateToday = new Date(System.currentTimeMillis());//当前时间(毫秒)Date dateTomorrow= new Date(dateToday.getTime()+24*60*60*1000);SimpleDateFormat formatter = new SimpleDateFormat("yyyy-
阅读全文
摘要:windows ->preferences ->java ->Editor->Content Assist.Auto activation triggers for java:.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ如果不方便写,可以先export,然后改好了再import。
阅读全文
摘要:首先来看一个标准的Spring配置文件 applicationContext.xml<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/c
阅读全文
摘要:导入模板:Window->Preferences->Java->Code Style->Code Templates-->Comments-->Import-->找到写好的模板使用的时候新建一个类的时候勾选住comments,然后点击here,Apply即可 <?xml version="1.0" encoding="UTF-8" standalone="no" ?>- <templates> <template autoinsert="true&quo
阅读全文
摘要:CXF旨在为服务创建必要的基础设施,它的整体架构主要由以下几个部分组成:1.Bus它是C XF架构的主干,为共享资源提供了一个可配置的场所,作用非常类似于S p r i n g的ApplicationContext。这些共享资源包括WSDL管理器、绑定工厂等。通过对Bus进行扩展,可以方便地容纳自己的资源,或替换现有的资源。默认Bus实现是基于Spring的,通过依赖注入,将运行时组件串起来。Bus的创建由BusFactory负责,默认是 SpringBusFactory,对应于默认Bus实现。在构造过程中,SpringBusFactory会搜索META-INF/cxf(就包含在 CXF的Ja
阅读全文
摘要:开发环境:Eclipse3.4.2 + Tomcat6.0 + JDK1.6 + CXF2.2.31、Eclipse新建一个Dynamic Web Project工程CxfTest,我习惯把WebContent改为WebRoot,建好后在工程属性Properties->Java Build Path->Source->Default output folder里把CxfTest/build/classes修改为CxfTest/WebRoot/WEB-INF/classes2、从cxf文件夹下的lib文件夹中复制cxf.jar、spring-core.jar、spring-we
阅读全文