当前位置: 首页 > news >正文

南宁学网站开发东莞网站建设在哪里

南宁学网站开发,东莞网站建设在哪里,专业网站建设公司怎么选,应该选用哪种口罩原文#xff1a;http://www.cnblogs.com/LiuChunfu/p/5605473.html ------------------------------------------------------------------------------ 一、引入其他 模块XML   在Spring的配置文件#xff0c;有时候为了分模块的更加清晰的进行相关实体类的配置。 比如…原文http://www.cnblogs.com/LiuChunfu/p/5605473.html ------------------------------------------------------------------------------ 一、引入其他 模块XML   在Spring的配置文件有时候为了分模块的更加清晰的进行相关实体类的配置。 比如现在有一个job-timer.xml的配置 ?xml version1.0 encodingUTF-8? beans xmlnshttp://www.springframework.org/schema/beans xmlns:xsihttp://www.w3.org/2001/XMLSchema-instancexsi:schemaLocationhttp://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd!-- 要执行任务的任务类。 --bean idtestQuartz classcom.mc.bsframe.job.TestJob/bean!-- 将需要执行的定时任务注入JOB中。 --bean idtestJob classorg.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBeanproperty nametargetObject reftestQuartz/property!-- 任务类中需要执行的方法 --property nametargetMethod valuedoSomething/property!-- 上一次未执行完成的要等待有再执行。 --property nameconcurrent valuefalse/property/bean!-- 基本的定时器会绑定具体的任务。 --bean idtestTrigger classorg.springframework.scheduling.quartz.SimpleTriggerFactoryBeanproperty namejobDetail reftestJob/propertyproperty namestartDelay value3000/propertyproperty namerepeatInterval value200000/property/beanbean idscheduler classorg.springframework.scheduling.quartz.SchedulerFactoryBeanproperty nametriggerslistref beantestTrigger/ref/list/property/bean /beans 在Spring的整体的配置文件中使用 import resourceclasspath*:/spring/job-timer.xml /引入。 ?xml version1.0 encodingUTF-8? beans xmlnshttp://www.springframework.org/schema/beans xmlns:xsihttp://www.w3.org/2001/XMLSchema-instancexmlns:scpanhttp://www.springframework.org/schema/contextxsi:schemaLocationhttp://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd!-- 会自动扫描com.mc.bsframe下的所有包包括子包下除了Controller的类。 --scpan:component-scan base-packagecom.mc.bsframescpan:exclude-filter typeannotation expressionorg.springframework.stereotype.Controller /scpan:exclude-filter typeannotation expressionorg.springframework.web.bind.annotation.ControllerAdvice //scpan:component-scan!-- Spring中引入其他配置文件 --import resourceclasspath*:/spring/job-timer.xml //beans 二、引入properties文件。 方法1 !--引入数据库配置信息 --context:property-placeholder locationclasspath*:properties/db.properties / 方法2 情况1配置一个 bean idpropertyConfigurer classorg.springframework.beans.factory.config.PropertyPlaceholderConfigurerproperty namelocation valueclasspath*:db/jdbc.properties //bean 情况2配置多个 bean idpropertyConfigure classorg.springframework.beans.factory.config.PropertyPlaceholderConfigurerproperty namelocationslistvalueclasspath:/opt/demo/config/demo-db.properties/value valueclasspath:/opt/demo/config/demo-db2.properties/value /list/property/bean 这些properties中就是key-value的键值对使用的时候可以使用${xxx} 获取。
http://www.yutouwan.com/news/111917/

相关文章:

  • 品牌网站建设有哪些内容seo技术秋蝉
  • 网站核验单下载wordpress用什么主机好
  • 网站首页建设中页面大连甘井子区教育公共服务平台
  • 青岛做网站皆赴青岛博采深圳自适应网站的公司
  • 新手网站设计定价吉林电商网站建设公司哪家好
  • 如何做正规电影网站湖北省建设部网站
  • 建设通网站怎么查项目经理在建做高端网站建设公司
  • 怎样做自己的 优惠卷网站网站服务器的费用
  • 怎么做装修网站福州网站设计网站系统制作
  • 西安网站制作公司排阜阳哪里做网站的多
  • 怎样在手机做自己的网站wordpress 外链图片
  • vps做自己的网站洛阳做网站哪家便宜
  • php网站后台模板下载不了利用大平台做网站
  • 做暧暧小视频免费网站抖音代运营都做什么
  • 常熟网站建设专业的公司网站的定位分析
  • php网站开发 多少钱外贸软件定制
  • 网站制作和推广lv官网微信网页版下载安装
  • 网站建设维护属于什么专业广告推广是什么
  • 手机网站建设的背景有别墅的件怎么写者
  • 华为电子商务网站建设网站首页html
  • 中学网站建设 课设17网站一起做网店广州国大
  • 兰州优化网站网站建设的认可
  • 做网站图片怎么做wordpress实现301跳转详解
  • 泉州有哪些做网站的平面设计公司广告语
  • 做英文网站怎样网站建设
  • 吉林省级建设行政主管部门政务网站烟台网站制作企业
  • wordpress删除角色名seo网站推广的作用
  • 南昌加盟网站建设现代简约室内设计说明200字
  • 红酒网站建设方案范本网站首页制作采用
  • 网站设计的公司选哪家淘宝推广网站怎么做