2019独角兽企业重金招聘Python工程师标准>>>

此为转载学习

原链接:https://github.com/zhangkaitao/es/edit/master/web/src/main/resources/spring-speed-up.xml#

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"profile="development" ><!-- 启动时加 spring.profiles.active=development --><bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"><property name="url" value="${connection.url}"/><property name="username" value="${connection.username}"/><property name="password" value="${connection.password}"/></bean><!-- 优化spring启动 通过移除bean定义 和 lazy init 实现 --><bean class="com.sishuok.es.common.spring.SpeedUpSpringProcessor"><!-- 需要从bean定义中移除的bean的名字 --><property name="removedBeanNames"><list><!--spring-config-task.xml --><value>executor</value><value>scheduler</value><!-- <task:scheduled-tasks> 自动注册的 --><value>org.springframework.scheduling.config.ContextLifecycleScheduledTaskRegistrar</value><!-- <task:annotation-driven/> 自动注册的 --><value>org.springframework.context.annotation.internalAsyncAnnotationProcessor</value><value>org.springframework.context.annotation.internalScheduledAnnotationProcessor</value><value>org.springframework.scheduling.config.internalAsyncExecutionAspect</value><!-- <task:scheduled-tasks> 自动注册的 --><value>org.springframework.scheduling.config.ContextLifecycleScheduledTaskRegistrar</value><!-- spring-config-shiro.xml --><value>rememberMeCookie</value><value>rememberMeManager</value><value>shiroCacheManager</value><value>sessionValidationScheduler</value><!-- spring-config-monitor.xml --><value>druidStatInterceptor</value><value>druidAdvisor</value></list></property><!-- 需要从bean定义中移除的bean的属性 --><!--替换掉的属性值 see removedBeanProperties 只支持简单属性--><property name="removeOrReplaceBeanProperties"><list><!-- spring-config-shiro.xml --><value>sessionManager@cacheManager</value><value>sessionManager@sessionValidationScheduler</value><value>securityManager@rememberMeManager</value><!-- spring-config.xml --><value>entityManagerFactory@jpaPropertyMap@hibernate.cache.use_second_level_cache=false</value><value>entityManagerFactory@jpaPropertyMap@hibernate.cache.use_query_cache</value><value>entityManagerFactory@jpaPropertyMap@hibernate.cache.region.factory_class</value><value>entityManagerFactory@jpaPropertyMap@hibernate.cache.use_structured_entries</value><value>entityManagerFactory@jpaPropertyMap@net.sf.ehcache.configurationResourceName</value><!-- spring-mvc.xml(<mvc:async-support default-timeout="30000" task-executor="executor"/>) --><value>org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0@asyncRequestTimeout</value><value>org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0@taskExecutor</value><value>org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0@executor</value><value>org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0@callableInterceptors</value><value>org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0@deferredResultInterceptors</value></list></property><!-- 需要从bean定义中移除指定的类类型 正则表达式--><property name="removedClassPatterns"><list><!--<value>com\.sishuok\.es\.showcase.*</value>--><!--<value>com\.sishuok\.es\.monitor.*</value>--><!--<value>com\.sishuok\.es\.extra\.aop.*</value>--><!--<value>com\.sishuok\.es\.extra\.quartz.*</value>--><!--<value>com\.sishuok\.es\.maintain.*</value>--><!--<value>com\.sishuok\.es\.personal.*\.web\.controller.*</value>--><!--<value>com\.sishuok\.es\.sys.*\.web\.controller.*</value>--></list></property><!-- 指定非延迟加载的bean--><property name="noneLazyBeanNames"><list><value>domainClassConverter</value></list></property></bean>
</beans>

转载于:https://my.oschina.net/heroShane/blog/198434

spring-speed-up.xml相关推荐

  1. Struts2+spring+jdbc 以xml配置形式整合

    今天做作业,练习一下Struts2+spring+jdbc 以xml配置形式整合 整合步骤: 工程结构图: 重要配置文件 web.xml <?xml version="1.0" ...

  2. Unable to locate Spring NamespaceHandler for XML schema namespace [http://cxf.apache.org/jaxws]

    利用cxf调试webservice接口的时候出现下面的错误 error:Unable to locate Spring NamespaceHandler for XML schema namespac ...

  3. spring中基于XML的AOP配置步骤

    spring中基于XML的AOP配置步骤 IAccountService.java package com.itheima.service;/*** 账户的业务层接口*/ public interfa ...

  4. spring框架的概述以及spring中基于XML的IOC配置——概念

    1.spring的概述     spring是什么     spring的两大核心     spring的发展历程和优势     spring体系结构 2.程序的耦合及解耦     曾经案例中问题   ...

  5. Spring JDBC-使用XML配置声明式事务

    系列 概述 基于aop/tx命名空间的配置 示例 tx:method元素属性 系列 Spring对事务管理的支持概述以及 编程式的事务管理 Spring JDBC-使用XML配置声明式事务 Sprin ...

  6. springboot项目中的注解 启动项目的方式 解决spring的bean.xml配置不生效 spring的基础JDBC配置

    依赖 创建一个 Spring Boot 工程时,可以继承自一个 spring-boot-starter-parent ,也可以不继承 先来看 parent 的基本功能有哪些? 定义了 Java 编译版 ...

  7. java 自定义xml_6.1 如何在spring中自定义xml标签

    dubbo自定义了很多xml标签,例如,那么这些自定义标签是怎么与spring结合起来的呢?我们先看一个简单的例子. 一 编写模型类 1 packagecom.hulk.testdubbo.model ...

  8. Spring MVC 无XML配置入门示例

    Spring MVC 无XML(纯 Java)配置入门示例 本示例是从<Spring in Action, Fourth Edition>一书而来,涉及的是书中5.1节部分内容,书中其实说 ...

  9. Spring框架----Spring的基于XML的AOP的实现

    导入依赖 <dependency><groupId>org.springframework</groupId><artifactId>spring-co ...

  10. Spring框架中XML配置文件注入集合(数组、LIST、MAP、SET)属性

    Spring框架中XML配置文件注入集合属性 前言 创建测试类与属性 配置XML配置文件 建立调用类 调用结果 前言 某些类的属性是可能是集合,包括:数组.LIST.MAP.SET等集合,在Sprin ...

最新文章

  1. 8种优秀预训练模型大盘点,NLP应用so easy!
  2. JAVA--网络编程
  3. jQuery-强大的jQuery选择器 (详解)
  4. solaris php,solaris 十系统上架构phpwind论坛环境(转)
  5. android布局属性,Android 布局学习之——LinearLayout属性baselineAligned的作用及baseline...
  6. 在腾讯云开通短信验证服务设置正确格式的签名和正文模板并完成群发消息测试
  7. vue项目引入sass
  8. 防止SQL注入的五种方法
  9. matlab教程易,Matlab经典教程—从入门到精通 中文PDF
  10. ts中简单的用法和存储器 get set 的用法
  11. WHYZOJ-#116[NOIP模拟] czy把妹(区间DP)
  12. 下载频道2013年超人气精华资源汇总---全都是免积分下载
  13. html和js画圣诞树图片,基于JS2Image实现圣诞树代码
  14. echarts 堆叠柱状图 在顶部显示数据总数
  15. 区块链的最大作用,在于区块链可以将大数据、云计算、人工智能等新技术连接在一起
  16. Win7系统提示“内置管理员无法激活此应用”的原因和解决方法
  17. 软件开发项目经理岗位职责
  18. 做时间的记录者—手机摄影达人20天养成计划
  19. 我帮你弄条长虹 | 兄弟姊妹篇
  20. 雨课堂知识点总结(十)

热门文章

  1. c语言上机作业题及答案,C语言上机题库及答案
  2. Notepad2 在Win7 64位下替换系统notepad
  3. 【Python】Python核心编程
  4. java开发转测试开发经历
  5. Linphone-Android源码学习(一)
  6. 3、Go语言核心编程(高级篇)
  7. mysql 数据库优化
  8. 谭浩强C语言(第三版)习题9.10
  9. ajax 上传文件实例,Ajax 之文件上传
  10. Aardio格式化代码工具