Spring概述
- 格式:ppt
- 大小:57.00 KB
- 文档页数:14


1 The Spring Festival
By Inesa Pleskacheuskaya
We all love holidays and the happy gatherings of family and friends that they bring, and the Chinese are
no exception. The Chinese celebrate festivals based on the lunar calendar dating back thousands of years. The
popular favorite is Lunar New Year1, or Spring Festival, which falls on the first day of the first lunar month.
Spring Festival, or chunjie, dates back to the Western Zhou Dynasty2(1046 --771B.C.). Two weeks
before-hand, a feeling of pleasurable holiday anticipation permeates the atmosphere. Everything must be
prepared just so: music on the streets, decorations and illuminations.
What I most like about China is that its ancient traditions are still very much alive. Many people,
especially those living in countryside, still celebrate chunjie in the traditional manner. This means buying
spring mvc学习教程(一)-入门实例 引言 1.MVC:Model-View-Control 框架性质的C层要完成的主要工作:封装web请求为一个数据对象、调用业务逻辑层来处理数据对象、返回处理数据结果及相应的视图给用户。 2.简要概述springmvc Spring C 层框架的核心是 DispatcherServlet,它的作用是将请求分发给不同的后端处理器,也即 使用了一种被称为Front Controller 的模式(后面对此模式有简要说明)。 Spring 的C 层框架使用了后端控制器来、映射处理器和视图解析器来共同完成C 层框架的主要工作。并且spring 的C 层框架还真正地把 业务层处理的数据结果和相应的视图拼成一个对象,即我们后面会经常用到的ModelAndView 对象。 一、入门实例 1. 搭建环境 在spring的官方API文档中,给出所有包的作用概述,现列举常用的包及相关作用: org.springframework.aop-3.0.5.RELEASE.jar:与Aop编程相关的包 org.springframework.beans-3.0.5.RELEASE.jar:提供了简捷操作bean的接口 org.springframework.context-3.0.5.RELEASE.jar:构建在beans包基础上,用来处理资源文件及国际化。 org.springframework.core-3.0.5.RELEASE.jar:spring核心包 org.springframework.web-3.0.5.RELEASE.jar:web核心包,提供了web层接口 org.springframework.web.servlet-3.0.5.RELEASE.jar:web 层的一个具体实包, DispatcherServlet也位于此包中。 后文全部在spring3.0 版本中进行,为了方便,建议在搭建环境中导入spring3.0 的所有jar 包(所有jar 包位于dist 目录下)。 2.编写HelloWorld实例 步骤一、建立名为springMVC_01_helloword,并导入上面列出的jar 包。 步骤二、编写web.xml配置文件,代码如下: spring
Spring2.0集成iReport报表技术概述
文章分类:Java编程
首先是你要下载关于iRport的lib文件,这可以在你下载的jasperReport中全部找到,因为什么版本编译的模板文件之中用对应的版本进行解析,所以要保持你工程中与模板设计的一致性!
首先在web.xml声明关于模板访问的路径例如:
repdpt
org.springframework.web.servlet.DispatcherServlet
4
以及他的映射Path:
repdpt
*.rep
接下来按照SpringMVC的一般规则,需要在WEB-INF的文件夹下面家里一个repdpt-servlet.xml文件,内容如下:
xmlns:xsi="/2001/XMLSchema-instance"
xmlns:util="/schema/util"
xmlns:aop="/schema/aop"
xsi:schemaLocation="
/schema/beans
/schema/beans/spring-beans-2.0.xsd
/schema/util
/schema/util/spring-util-2.0.xsd
/schema/aop
/schema/aop/spring-aop-2.0.xsd">
class="org.springframework.web.servlet.view.XmlViewResolver">
/WEB-INF/jsper-views.xml
导读
捧读此文,实实存在的感受是:在享受。
本文的难能可贵处是:既写出了朱自清《荷塘月色》的清俊飘逸,同时又向读者从容展示了许多“留守寒带”的动物如何过冬的丰富知识,意趣无穷!
文章的开头,空灵而清新:
Nothing. No tracks but my own are stitched into the dusting of fresh snow, white as birch bark,
that fell during the night.
Nothing一词,独立篇首,让人暗生联想:天地间白茫茫一片! 而后句的动词stitched则把自己印住雪地里的一长串脚印,比作缝上白布的一条细密针脚!翻译此词,谈何容易!
What sun there is this time of year shines weakly, halfheartedly through the white gauze of clouds,
offering not even the slightest pretense of warmth.
想必读者不会放过上句里的一个副词,品后又击节叹赏:halfheartedly。
作者在赏美国何处的冬景? 文中随意流露:
For nearly a week temperatures around my Wisconsin cabin have not risen above zero.
冬日虽然快走到了尽头,但是作者似乎有点失望:
At first glance nature doesn't seem to have invested much in this late-winter day.
细心的读者可能已经感到句中的At first glance是一个漂亮的伏笔!果然,他听到了春天的脚步声:
Just as I start to turn back home I hear it: the soft, two-toned whistle of chickadees. …On the