<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    KK

    Kim-'s-Blog.Object-Everything.I'm POJO.

    .紀-錄.爲了忘卻的記憶..真的勇士,要敢于直面遇到的問題,敢于正視繁雜的原碼......在實踐中積累!

      BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
      74 Posts :: 1 Stories :: 70 Comments :: 0 Trackbacks

    2014年4月24日 #

    使用Chrome瀏覽器,靜默打印 Silent Print,直接打印,全屏模式

    同事遇到這樣一個需求:在Chrome瀏覽器中希望可以靜默打印,直接打印

    查了些資料,發現Chrome本身的設置就可以滿足,

    同時Chrome的一些其他設置可以用在軟件開發中.


    在地址欄敲: about:flags ,打開設置界面:

    停用:Enable Print Preview Registration Promos Windows, Linux, Chrome OS

     

    Chrome快捷方式增加:

    --kiosk-printing

     


    這樣就可以靜默,打印,直接使用默認打印機進行打印。


    另:如需是Chrome全屏+靜默打印: 使用 --kiosk --kiosk-printing

    posted @ 2014-04-24 16:11 Kim' 閱讀(17480) | 評論 (3)編輯 收藏

    2014年3月4日 #

    讓你更多關注手上的工作,而不是其他什么地方.如圖
    .
    posted @ 2014-03-04 10:14 Kim' 閱讀(256) | 評論 (0)編輯 收藏

    2011年12月1日 #

    沒有對應的列,增加該列 OK
    posted @ 2011-12-01 11:50 Kim' 閱讀(777) | 評論 (0)編輯 收藏

    2011年11月30日 #

    需要用svn cleanup上次關閉時的鎖定


    右鍵文件夾,清理
    posted @ 2011-11-30 16:13 Kim' 閱讀(382) | 評論 (0)編輯 收藏

    2011年1月16日 #

    posted @ 2011-01-16 22:07 Kim' 閱讀(422) | 評論 (1)編輯 收藏

    2011年1月13日 #

    Facebook就是使用的此類數據庫,效率相當高。


    NOSQL的優勢
    易擴展

    NoSQL數據庫種類繁多,但是一個共同的特點都是去掉關系數據庫的關系型特性。數據之間無關系,這樣就非常容易擴展。也無形之間,在架構的層面上帶來了可擴展的能力。

    大數據量,高性能

    NoSQL數據庫都具有非常高的讀寫性能,尤其在大數據量下,同樣表現優秀。這得益于它的無關系性,數據庫的結構簡單。一般MySQL使用Query Cache,每次表的更新Cache就失效,是一種大粒度的Cache,在針對web2.0的交互頻繁的應用,Cache性能不高。而NoSQL的Cache是記錄級的,是一種細粒度的Cache,所以NoSQL在這個層面上來說就要性能高很多了。

    靈活的數據模型

    NoSQL無需事先為要存儲的數據建立字段,隨時可以存儲自定義的數據格式。而在關系數據庫里,增刪字段是一件非常麻煩的事情。如果是非常大數據量的表,增加字段簡直就是一個噩夢。這點在大數據量的web2.0時代尤其明顯。

    高可用

    NoSQL在不太影響性能的情況,就可以方便的實現高可用的架構。比如Cassandra,HBase模型,通過復制模型也能實現高可用。

     

     

    posted @ 2011-01-13 21:03 Kim' 閱讀(290) | 評論 (0)編輯 收藏

    2009年11月18日 #

    使用Struts2 上傳 zip rar
    使用的 MIME:
    <interceptor-ref name="fileUpload">
     <param name="allowedTypes">application/zip,application/x-zip-compressed,application/rar,application/octet-stream</param>
     <param name="maximumSize">3145728</param>
    </interceptor-ref>

    通過Debug FileUploadInterceptor可知,
    zip文件是[application/x-zip-compressed]
    rar是[application/octet-stream]

    posted @ 2009-11-18 15:24 Kim' 閱讀(1113) | 評論 (5)編輯 收藏

    2009年11月13日 #

    使用Jbpm4.2 集成Spring 出現問題:
      
       2009-11-12 15:49:51,640 ERROR [org.springframework.web.context.ContextLoader] - Context initialization failed
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngine' defined in file [......\WEB-INF\classes\spring\applicationContext-jbpm.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.jbpm.api.ProcessEngine org.jbpm.pvm.internal.cfg.SpringConfiguration.buildProcessEngine()] threw exception; nested exception is java.lang.NullPointerException

      Caused by: java.lang.NullPointerException
     at org.jbpm.pvm.internal.cfg.ProcessEngineImpl.checkDb(ProcessEngineImpl.java:177)

     userCommandService 為null

      經調試發現,使用Spring后userCommandService 確實是null,
      配置中缺少什么東西?未知。 文檔中并無特殊說明,
     4.1沒有出現問題~ 
     應該是4.2的Bug

    posted @ 2009-11-13 14:45 Kim' 閱讀(3565) | 評論 (1)編輯 收藏

    2009年10月29日 #

    最近遇到的問題比較少,
    不知是好事還是壞事~
    也許是太忙了~
    看來要抽空主動去研究點什么東西了~

     

    posted @ 2009-10-29 15:38 Kim' 閱讀(246) | 評論 (1)編輯 收藏

    2009年9月7日 #

    Jbpm4.1特性:
    4.1與Tomcat集成的很好
    4.1提供基于Web的流程編輯功能

    在開發指南中有相關整合章節:

    Replace the standard-transaction-interceptor with the spring-transaction-interceptor. The hibernate session needs the attribute current=”true”. Also, the <transaction/> must be removed from the transaction-context if you want the transactions to be handled by Spring only. This forces jBPM to search for the current session, which will be provided by Spring.

    <process-engine-context>
    <command-service>
    <spring-transaction-interceptor />
    ...
    </command-service>
    ...
    </process-engine-context>
    <transaction-context>
    ...
    <hibernate-session current="true"/>
    </transaction-context>
    

     

    The Spring integration provides a special context, which is added to the set of context where the jBPM engine will look for beans. Using this SpringContext, it is now possible to retrieve beans from the Spring Application Context. For the Spring context to be known, a SpringConfiguration must be created. This class extends the JbpmConfiguration but will add itself as a context. The single constructor take the location of the jBPM configuration.

    <bean id="jbpmConfiguration" class="org.jbpm.pvm.internal.cfg.SpringConfiguration">
    <constructor-arg value="be/inze/spring/demo/jbpm.cfg.xml" />
    </bean>
    

     

    The jBPM services can also be defined in the Spring applicationContext, as following:

    <bean id="processEngine" factory-bean="jbpmConfiguration" factory-method="buildProcessEngine" />
    <bean id="repositoryService" factory-bean="processEngine" factory-method="getRepositoryService" />
    <bean id="executionService" factory-bean="processEngine" factory-method="getExecutionService" />
    

     

    The previous section already showed how the jBPM services can be made accessible for other Spring services. The other use case is calling Spring beans from within a process. This can be done by using an expression which resolves to the name of a Spring bean.

    <java name="echo" expr="#{echoService}" method="sayHello" >
    <transition name="to accept" to="join1"/>
    </java>
    

    The scripting engine will look into all contexts from the bean named echoService. If you configured the ScriptManager as above, Spring will be the last context to search for. You can also add a Spring bean to the Spring Application context (eg IdentitySessionImpl with id identitySession) and use it in the jBPM config (eg by adding <env class="identitySession" />)

    整合過程與 4 基本相同。
    jbpm.cfg.xml
    <?xml version="1.0" encoding="UTF-8"?>

    <jbpm-configuration>

      
    <import resource="jbpm.default.cfg.xml" />
      
    <import resource="jbpm.tx.spring.cfg.xml" />
      
    <import resource="jbpm.jpdl.cfg.xml" />
      
    <import resource="jbpm.identity.cfg.xml" />
      
    <import resource="jbpm.businesscalendar.cfg.xml" />

      
    <!-- Job executor is excluded for running the example test cases. -->
      
    <!-- To enable timers and messages in production use, this should be included. -->
      
    <!--
      <import resource="jbpm.jobexecutor.cfg.xml" />
      
    -->
      
    <import resource="jbpm.jobexecutor.cfg.xml" />
      
    <import resource="jbpm/jbpm.mail.templates.examples.xml" />
      
    </jbpm-configuration>

    工作日歷從 default中分離
    整合XML在原生的jbpm.tx.spring.cfg.xml 中

    posted @ 2009-09-07 15:15 Kim' 閱讀(2163) | 評論 (2)編輯 收藏

    jj
    主站蜘蛛池模板: 伊人久久亚洲综合| 十八禁视频在线观看免费无码无遮挡骂过| 麻豆视频免费播放| 青青操免费在线视频| 亚洲国产精品嫩草影院| 亚洲欧洲日本天天堂在线观看| 亚洲精品午夜无码电影网| 亚洲а∨天堂久久精品| 日本一道高清不卡免费| 国产精品美女午夜爽爽爽免费| 99视频免费播放| 免费黄网站在线观看| 爱情岛论坛免费视频| 看亚洲a级一级毛片| 亚洲欧美aⅴ在线资源| 国产亚洲中文日本不卡二区| 亚洲欧洲日韩在线电影| 亚洲2022国产成人精品无码区 | 激情综合亚洲色婷婷五月APP| 国产亚洲一区二区精品| 久久影视综合亚洲| 亚洲第一黄片大全| 在线a亚洲v天堂网2018| 全部免费a级毛片| 免费又黄又爽又猛的毛片| 俄罗斯极品美女毛片免费播放| 国产男女猛烈无遮档免费视频网站| 成年女人免费视频播放77777 | 久久综合亚洲色一区二区三区| 久久亚洲免费视频| 久久精品国产亚洲av日韩| 亚洲精品人成在线观看| 亚洲男女一区二区三区| 亚洲色欲色欲www| 亚洲精品亚洲人成在线播放| 亚洲综合无码一区二区痴汉| 亚洲色欲啪啪久久WWW综合网| 亚洲国产成人AV在线播放| 国产亚洲精品AAAA片APP| 无人视频免费观看免费视频| 国产A∨免费精品视频|