当前位置:  编程技术>软件工程/软件设计
本页文章导读:
    ▪Play!framework 项目部署到Tomcat      Play Framework有自带的服务器,也可部署到其他服务器上。这里讲解下如何将Play的项目部署到Tomcat。 1.准备war包 首先进入play目录: 比如我的: cd C:\play-1.2.5\play-1.2.5 然后利用命令:play war [项目.........
    ▪dedecms如何做中英文网站?       一、首先在后台建栏目,有三点需要注意 3.封面栏目“高级选项”的列表模板设置为cn_index.htm或者en_index.htm 每种语言的封面栏目和每种语言下的导航栏目都是单独调用的,用{dede:type typeid='*.........
    ▪Spring Batch Framework– introduction chapter(上)       Bacth processes are hard to write-especially when using ageneral language like Java. Batch jobs run every night, making it easy formillions of people to do things like banking, online shopping, querying billinginformation. Spring Batch is Java Framewo.........

[1]Play!framework 项目部署到Tomcat
    来源: 互联网  发布时间: 2013-11-19

Play Framework有自带的服务器,也可部署到其他服务器上。这里讲解下如何将Play的项目部署到Tomcat。

1.准备war包

首先进入play目录:

比如我的:

cd C:\play-1.2.5\play-1.2.5

然后利用命令:play war [项目所在绝对路径] -o [生成的war包名称(包括路径)]

这里要注意生成的war包最好指定到其他目录,比如C盘根目录。

比如我的项目:

C:\play-1.2.5\play-1.2.5>play war C:\msysgit\msysgit\git\gitrep7\applyful\module
s\applyful.appserver_v2 -o c:\applyful.war
~        _            _
~  _ __ | | __ _ _  _| |
~ | '_ \| |/ _' | || |_|
~ |  __/|_|\____|\__ (_)
~ |_|            |__/
~
~ play! 1.2.5, http://www.playframework.org
~
CompilerOracle: exclude jregex/Pretokenizer.next
Listening for transport dt_socket at address: 8000
17:19:22,085 INFO  ~ Starting C:\msysgit\msysgit\git\gitrep7\applyful\modules\ap
plyful.appserver_v2
17:19:22,085 INFO  ~ Module japid is available (C:\msysgit\msysgit\git\gitrep7\a
pplyful\modules\applyful.appserver_v2\modules\japid-0.9.4.3)
17:19:22,085 INFO  ~ Module morphia is available (C:\msysgit\msysgit\git\gitrep7
\applyful\modules\applyful.appserver_v2\modules\morphia-1.2.9a)
17:19:22,101 INFO  ~ Module press is available (C:\msysgit\msysgit\git\gitrep7\a
pplyful\modules\applyful.appserver_v2\modules\press-1.0.25)
17:19:24,191 INFO  ~ JapidPlugin.onload().
17:19:24,191 INFO  ~ [Japid] play in DEV mode. Detecting changes...
[Japid] Processing 15 templates in directory tree: C:\msysgit\msysgit\git\gitrep
7\applyful\modules\applyful.appserver_v2\app
[Japid] Transforming template: japidviews\OnboardingController\step2.html to: st
ep2.java
[Japid] Transforming template: japidviews\OnboardingController\step5.html to: st
ep5.java
[Japid] Transforming template: japidviews\OnboardingController\step4.html to: st
ep4.java
[Japid] Transforming template: japidviews\PageController\about.html to: about.ja
va
[Japid] Transforming template: japidviews\SchoolController\page_more_info.html t
o: page_more_info.java
[Japid] Transforming template: japidviews\Landing\index.html to: index.java
[Japid] Transforming template: japidviews\PageController\createPage.html to: cre
atePage.java
[Japid] Transforming template: japidviews\OnboardingController\finishedProfile.h
tml to: finishedProfile.java
[Japid] Transforming template: japidviews\_tags\pagelike.html to: pagelike.java
[Japid] Transforming template: japidviews\AccountController\signupresult.html to
: signupresult.java
[Japid] Transforming template: japidviews\_layouts\step_layout.html to: step_lay
out.java
[Japid] Transforming template: japidviews\_layouts\new_signupresult_layout.html
to: new_signupresult_layout.java
[Japid] Transforming template: japidviews\_layouts\signupresult_layout.html to:
signupresult_layout.java
[Japid] Transforming template: japidviews\OnboardingController\step3.html to: st
ep3.java
[Japid] Transforming template: japidviews\OnboardingController\step1.html to: st
ep1.java
17:19:24,847 INFO  ~ Precompiling ...
17:19:44,440 INFO  ~ Done.
~ Packaging current version of the framework and the application to c:\applyful.
war ...
~ Done !
~
~ You can now load c:\applyful.war as a standard WAR into your servlet container

~ You can't use play standard commands to run/stop/debug the WAR application...
~ ... just use your servlet container commands instead
~
~ Have fun!
~

C:\play-1.2.5\play-1.2.5>mongod

2.  部署到Tomcat

将得到的war文件夹里的WEB-INF文件复制到Tomcat目录下的ROOT下,直接覆盖。

启动Tomcat即可访问:http://localhost:8080/


作者:huxiweng 发表于2013-7-9 17:44:27 原文链接
阅读:2 评论:0 查看评论

    
[2]dedecms如何做中英文网站?
    来源: 互联网  发布时间: 2013-11-19

用dedecms织梦程序如何做中英文网站?今天就给大家来一个详细的图文教程,希望能帮助到大家。

以下所讲的和截图是本人用dedecms织梦程序制作过的一个5国预言网站,下面开始教程。

一、首先在后台建栏目,有三点需要注意

1.需要做几种语言就加几个大的栏目,我把这个栏目叫做封面栏目,里面都是自己语言的导航栏目

2.封面栏目“常规选项”的文件保存目录设置为cn或者en

3.封面栏目“高级选项”的列表模板设置为cn_index.htm或者en_index.htm

二、网站代码的调用

每种语言的封面栏目和每种语言下的导航栏目都是单独调用的,用{dede:type typeid='*'}单独调用,请看图

三、剩下的就是分别建设每种语言下的栏目

模板文件建议用cn_、en_、jp_等这些前缀区分一下,一种语言就是一个网站,做好一种语言模板,然后复制改下文字图片

希望这次的图文教程够详细,做多种语言也是同样的道理,以此类推。

作者:haor2756 发表于2013-7-10 16:43:04 原文链接
阅读:49 评论:0 查看评论

    
[3]Spring Batch Framework– introduction chapter(上)
    来源: 互联网  发布时间: 2013-11-19

Bacth processes are hard to write-especially when using ageneral language like Java. Batch jobs run every night, making it easy formillions of people to do things like banking, online shopping, querying billinginformation.

Spring Batch is Java Framework that makes it easy to writebatch applications. Batch applications invlove reliably and efficientlyprocessing large volumes of data to and from various data sources (files,databases, and so on). Spring Batch is great at doing this and provides thenecessary foundation to meet the stringent requirements of batch appliocations.Sir Isaac Newton said, “If I have seen further it is only by standing on theshoulders of giants.” Spring batch builds on the shoulders of one giant inpraticular: the Spring Framework. Spring is the framework of choice for asignificant segment of the Enterprise Java development market. Spring Batchmakes the Spring programming model – based on simplicity and efficiency –easier to apply for batch applications.

What are batch applications? Batch applications processlarge amounts of data without human intervention. You’d opt to use bacthapplications to compute data for generating monthly financial statements,calculating statistics, and indexing files.

The most common scenario for a batch application isexporting data to files from one system and processing them in another. A batchapplication processes data automatically, so it must be robust and reliablebecause there is no human interaction to recover from an error. The greater thevolume of data a batch application must process, the longer it takes tocomplete. This means you must also consider performance in your batchapplication because it’s often restricted to execute within a specific timewindow. Every day, large and complex calculations take place to index billionsof documents, using cutting-edge algorithms like MapReduce. For data exchange,message-based solutions are also popular, having the advantage over batchapplications of being(close to) real time.




The goal of the Spring Batch project is to provide an opensource batch-oritened framework that effectively addresses the most common needsof batch applications.

Spring Batch isn’t a scheduler!

Spring Batch drives batch jobs (we use the terms job, batch,and process interchangeably) but doesn’t provide advanced support to launchthem according to a schedule. Spring Batch leaves this task to dedicatedschedulers like Quartz and cron. A scheduler triggers the launching of SpringBatch jobs by accessing the Spring Batch runtime ( like Quartz because it’s ajava solution) or by launching a dedicated JVM process( in the case of cron).Sometimes a scheduler launches batch jobs in sequence; first job A, and thenjob B if A succeeded, or job C if A failed. The scheduler can use the filesgenerated by the jobs or exit codes to orchestrate the sequence. Spring Batchcan aslo orchestrate such sequences itself; Spring Batch jobs are made ofsteps, and you can easily configure the sequence by using Spring Batch XML.

Should a whole batch fail because of one badly formattedline? Not always. The decision to skip an incorrect line or an incorrect itemis declarative in Spring Batch. It’s all about configuration. Components can trackeverything they do, and the framework provides them with the execution data onrestart. The components then know ehre they left off and can restart processingat the right place.


Spring Batch processes items in chunks. A job reads andwrites items in small chunks. Chunk processing allows streaming data instead ofloading all the data in memory. By default, chunk processing is single threadedand susally performs well. But some batch jobs need to execute faster, soSpring Batch provides ways to make chunk processing multi-threaded and todistribute processing on multiple physical nodes.

Partitioning splits a step into substeps, each of whichhandles a specific portion of the data. This implies that you know thestructure of the input data and that you know in advance how to distribute databetween substeps. Distribution can take place by ranges of primary key valuesfor database records or by directories for files. The substeps can executelocally or remotely, and Spring Batch provides support for multi-threadedsubsteps.

Spring Batch and grid computing

When dealing with large amounts of data—petabytes-a popularsolution to scaling is to divide the enormous amounts of computations intosmaller chunks, compute them in parallel(usually on different nodes), and thengather the results. Some open source frameworks(Haddop, GridGain, andHazelcast, for example) have appeared in the last few years to deal with theburden of distributing units of work so that developers can focus on developingthe computations themselves. How does Spring Batch compare to thesegrid-computing frameworks? Spring Batch is a loghtweight solution: all it needsis the Java Runtime installed, whereas grid-computing frameworks need a moreadvanced infrastucture. As an example, Hadoop usually works on top of its owndistributed fle system, HDFS. In terms of features, Spring Batch provides a lotof support to work with flat files, XML files, and relational database.


作者:zmycoco2 发表于2013-7-10 12:10:12 原文链接
阅读:102 评论:0 查看评论

    
最新技术文章:
▪主-主数据库系统架构    ▪java.lang.UnsupportedClassVersionError: Bad version number i...    ▪eclipse项目出现红色叉叉解决方案
▪Play!framework 项目部署到Tomcat    ▪dedecms如何做中英文网站?    ▪Spring Batch Framework– introduction chapter(上)
▪第三章 AOP 基于@AspectJ的AOP    ▪基于插件的服务集成方式    ▪Online Coding开发模式 (通过在线配置实现一个表...
▪观察者模式(Observer)    ▪工厂模式 - 程序实现(java)    ▪几种web并行化编程实现
▪机器学习理论与实战(二)决策树    ▪Hibernate(四)——全面解析一对多关联映射    ▪我所理解的设计模式(C++实现)——解释器模...
▪利用规则引擎打造轻量级的面向服务编程模式...    ▪google blink的设计计划: Out-of-Progress iframes    ▪FS SIP呼叫的消息线程和状态机线程
▪XML FREESWITCH APPLICATION 实现    ▪Drupal 实战    ▪Blink: Chromium的新渲染引擎
▪(十四)桥接模式详解(都市异能版)    ▪你不知道的Eclipse用法:使用Allocation tracker跟...    ▪Linux内核-进程
▪你不知道的Eclipse用法:使用Metrics 测量复杂度    ▪IT行业为什么没有进度    ▪Exchange Server 2010/2013三种不同的故障转移
▪第二章 IoC Spring自动扫描和管理Bean    ▪CMMI简介    ▪目标检测(Object Detection)原理与实现(六)
▪值班总结(1)——探讨sql语句的执行机制    ▪第二章 IoC Annotation注入    ▪CentOS 6.4下安装Vagrant
▪Java NIO框架Netty1简单发送接受    ▪漫画研发之八:会吃的孩子有奶吃    ▪比较ASP和ASP.NET
▪SPRING中的CONTEXTLOADERLISTENER    ▪在Nginx下对网站进行密码保护    ▪Hibernate从入门到精通(五)一对一单向关联映...
▪.NET领域驱动设计—初尝(三:穿过迷雾走向光...    ▪linux下的块设备驱动(一)    ▪Modem项目工作总结
▪工作流--JBPM简介及开发环境搭建    ▪工作流--JBPM核心服务及表结构    ▪Eclipse:使用JDepend 进行依赖项检查
▪windows下用putty上传文件到远程Linux方法    ▪iBatis和Hibernate的5点区别    ▪基于学习的Indexing算法
▪设计模式11---设计模式之中介者模式(Mediator...    ▪带你走进EJB--JMS编程模型    ▪从抽象谈起(二):观察者模式与回调
▪设计模式09---设计模式之生成器模式(Builder)也...    ▪svn_resin_持续优化中    ▪Bitmap recycle方法与制作Bitmap的内存缓存
▪Hibernate从入门到精通(四)基本映射    ▪设计模式10---设计模式之原型模式(Prototype)    ▪Dreamer 3.0 支持json、xml、文件上传
▪Eclipse:使用PMD预先检测错误    ▪Jspx.net Framework 5.1 发布    ▪从抽象谈起(一):工厂模式与策略模式
▪Eclipse:使用CheckStyle实施编码标准    ▪【论文阅读】《Chain Replication for Supporting High T...    ▪Struts2 Path_路径问题
▪spring 配置文件详解    ▪Struts2第一个工程helloStruts极其基本配置    ▪Python学习入门基础教程(learning Python)--2 Python简...
▪maven springmvc环境配置    ▪基于SCRUM的金融软件开发项目    ▪software quality assurance 常见问题收录
▪Redis集群明细文档    ▪Dreamer 框架 比Struts2 更加灵活    ▪Maven POM入门
▪git 分支篇-----不断更新中    ▪Oracle非主键自增长    ▪php设计模式——UML类图
▪Matlab,Visio等生成的图片的字体嵌入问题解决...    ▪用Darwin和live555实现的直播框架    ▪学习ORM框架—hibernate(二):由hibernate接口谈...
▪(十)装饰器模式详解(与IO不解的情缘)    ▪无锁编程:最简单例子    ▪【虚拟化实战】网络设计之四Teaming
▪OSGi:生命周期层    ▪Javascript/Jquery——简单定时器    ▪java代码 发送GET、POST请求
▪Entity Framework底层操作封装(3)    ▪HttpClient 发送GET、POST请求    ▪使用spring框架,应用启动时,加载数据
CSS属性参考手册 iis7站长之家
 


站内导航:


特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

©2012-2021,,E-mail:www_#163.com(请将#改为@)

浙ICP备11055608号-3