Start from the web.xml
Every web application has a web descriptor which will be parsed by the web server.So it is prefered to start learning with the sample application from the web.xml file.There is a tag called context-param
, from its literal meaning i can know that the parameters defined here can be used through the singleton web application.In this sample, a parameter called contextConfigLocation
are paired with the values:applicationContext and schedulingContext, which i have checked the reference can be comma-separated , colon-separated and space-separated and the wildcards can be used to match the fazzy files.Following that a spring-specific listener called ContextLoadListner
is registered which would call the ContextLoader to load the spring context.Note that Log4jConfigListener
should be registered before the ContextLoadListener if Log4j exists.
After that is Spring MVC DispatcherServlet which dispatches requests to registered handlers and has its own servlet context abiding by the convention servletname-servlet.xml
,which can be overridden by specifying the init-param contextConfigLocation.
There can exist several DispatcherServlets, which are actually servlet.
The root applicationContext.xml
First, note that namespaces - tx,beans,context which should be declared.
-
context:property-placeholder
(context are the prefix of some particular namespace which is declared in the root element beans
)defines the external properties.
- define a pooled datasource which can also be defined throug jndi.
- TransactionManager for a single datasource.
- Active @Transactional for the datasources registered in the TransactionManager.
The schedule schedulingContext-quartz.xml
This is an useful application tool, which facilitates the background jobs such as checking for emails,backuping databases,copying statistic files.
1.define SchedulerFactoryBean
, which is responsible for the management of all kinds of scheduled jobs.It has a property called triggers in which the scheduling jobs are stored as triggers.
2.CronTriggerBean defines the trigger detail such as jobdetail and the running time expression which contains seven fields:second,minute,hour,day,month,week,year.There are several principles,asterisk(*) means every value in that field,0/2 stands for start from 0 and the increase interval is 2.and day and week can exist only one and the hidden field identified by question symbol(?).
3.Followed those is the JobDetailBean
. The jobclass must extend super class QuartzJobBean and properties in it are injected through a property called jobDataAsMap in the JobDetailBean.
分享到:
相关推荐
NULL 博文链接:https://thinktothings.iteye.com/blog/1143659
资源分类:Python库 所属语言:Python 资源全名:imagedb-0.1.0-py2.py3-none-any.whl 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
ImageDB.rarImageDB.rar
1,小例子使用功能强大的Spring框架作为项目的管理框架。 2,数据层使用JDBC,并使用Spring提供的LobHandler来处理大个资源,如图片等。 3,项目中集成使用quartz来进行调度。 4,Web层使用Struts2实成文件的上传与...
图片数据库、支持各种格式的图片、JPEG、TIFF、GIF、PSD,提供灵活、分级管理
ImageDB图片数据库、支持各种格式的图片、JPEG、TIFF、GIF、PSD,提供灵活、分级管理
ImageDB_RPT
AROS图像,项目,数据,元数据和实验室自动化系统数据库。 当前,此存储库包含实际的postgres数据库和Web-GUI Image Viewer,但很快将分为两个单独的存储库,一个用于数据库,另一个用于Web接口。...
图像数据库请注意ImageDB 目前不适合生产。 目前,它纯粹用于教育和测试目的。安装请确保已安装 Node.js 和 MongoDB,然后输入以下命令。 git clone ...
建筑学带有mongoDb的Docker 带有NodeJ的后端带有React的前端如何运行项目克隆存储库:旋转mongo imageDb docker docker run --name mongodb -p 27017:27017 -d mongo 导航到后端文件夹并执行以下命令; yarn --...
collect images from camera into folder imagedb/ face.recognize.CollectData VM: -Djava.library.path=<opencv>/build/lib2. train images to generate YML file under folder model/ face.recognize.Train VM: ...
function response ( room , msg , sender , isGroupChat , replier , ImageDB , package ) { /* @String room : 메세지를 받은 방 이름 리턴 @String sender : 메세지를 보낸 상대의 이름 리턴 @Boolean ...
cd /var/lib/docker/image/overlay2/imagedb/content/sha256 该目录即为 docker 中的所有镜像文件(以shar256加密方式加密后的镜像文件),我们通过 ll 查看一下: 删哪个呢?别慌,docker images 中的 IMAGE ID 就...