分类: Java
2010-01-14 10:10:33
1.基本配置:
xmlns:xsi=""
xmlns:context=""
xsi:schemaLocation="
/spring-beans-2.5.xsd
/spring-context-2.5.xsd
">
2.开启AOP:
xmlns:xsi=""
xmlns:context=""
xmlns:aop=""
xsi:schemaLocation="
/spring-beans-2.5.xsd
/spring-aop-2.5.xsd
/spring-context-2.5.xsd
">
AOP的xml版本
xmlns:xsi=""
xmlns:context=""
xmlns:aop=""
xsi:schemaLocation="
/spring-beans-2.5.xsd
/spring-aop-2.5.xsd
/spring-context-2.5.xsd
">
3.开启事务和注解:
xmlns:xsi=""
xmlns:context=""
xmlns:aop=""
xmlns:tx=""
xsi:schemaLocation="
/spring-beans-2.5.xsd
/spring-context-2.5.xsd
/spring-aop-2.5.xsd
/spring-tx-2.5.xsd
">
XML版本:
xmlns:xsi=""
xmlns:context=""
xmlns:aop=""
xmlns:tx=""
xsi:schemaLocation="
/spring-beans-2.5.xsd
/spring-context-2.5.xsd
/spring-aop-2.5.xsd
/spring-tx-2.5.xsd
">
4.SSH:
xmlns:xsi=""
xmlns:context=""
xmlns:aop=""
xmlns:tx=""
xsi:schemaLocation="
/spring-beans-2.5.xsd
/spring-context-2.5.xsd
/spring-aop-2.5.xsd
/spring-tx-2.5.xsd
">
hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
hibernate.hbm2ddl.auto=update
hibernate.show_sql=false
hibernate.format_sql=false
hibernate.cache.use_second_level_cache=true
hibernate.cache.use_query_cache=false
hibernate.cache.provider_class=org.hibernate.cache.EhCacheProvider
5.SSH2:
xmlns:xsi=""
xmlns:context=""
xmlns:aop=""
xmlns:tx=""
xsi:schemaLocation="
/spring-beans-2.5.xsd
/spring-context-2.5.xsd
/spring-aop-2.5.xsd
/spring-tx-2.5.xsd
">
hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
hibernate.hbm2ddl.auto=update
hibernate.show_sql=false
hibernate.format_sql=false
hibernate.cache.use_second_level_cache=true
hibernate.cache.use_query_cache=false
hibernate.cache.provider_class=org.hibernate.cache.EhCacheProvider
6.SSJ:
xmlns:xsi=""
xmlns:context=""
xmlns:aop=""
xmlns:tx=""
xsi:schemaLocation="
/spring-beans-2.5.xsd
/spring-context-2.5.xsd
/spring-aop-2.5.xsd
/spring-tx-2.5.xsd
">