ApplicationContext.xml配置文件

前端之家收集整理的这篇文章主要介绍了ApplicationContext.xml配置文件前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jee="http://www.springframework.org/schema/jee"
  4. xmlns:tx="http://www.springframework.org/schema/tx" xmlns:context="http://www.springframework.org/schema/context"
  5. xsi:schemaLocation="http://www.springframework.org/schema/beans
  6. http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
  7. http://www.springframework.org/schema/tx
  8. http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
  9. http://www.springframework.org/schema/jee
  10. http://www.springframework.org/schema/jee/spring-jee-3.0.xsd
  11. http://www.springframework.org/schema/context
  12. http://www.springframework.org/schema/context/spring-context-3.0.xsd"
  13. default-lazy-init="true">


如果要加入aop等其他配置加上就行,例如加上aop的

  1. xmlns:aop="http://www.springframework.org/schema/aop"
  1. http://www.springframework.org/schema/aop
  2. http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
default-lazy-init延迟加载,必须设为true,不然巨卡。

猜你在找的XML相关文章