ssm框架整合
摘要:一、项目结构 二、pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema
阅读全文
spring基于纯注解的声明式事务控制
摘要:一、spring配置类 package com.wuxi.configs; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Confi
阅读全文
spring基于注解的声明式事务控制
摘要:一、spring的xml配置文件 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/X
阅读全文
spring基于xml的声明式事务控制
摘要:一、pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan
阅读全文
spring的APO注解方式
摘要:一、配置 1、xml配置方式 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XML
阅读全文
spring的APO
摘要:一、pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan
阅读全文
spring整合测试
摘要:一、pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan
阅读全文
spring新注解
摘要:一、@configuration注解的配置类 /* @Configuration:指定当前类是一个配置类 @ComponentScan:用于通过注解指定spring在创建容器时要扫描的包 属性:value、basePackages是一个数组 作用:相当于在spring的xml配置文件中配置: <co
阅读全文
spring注解
摘要:一、pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan
阅读全文
spring的IOC和依赖注入
摘要:一、pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan
阅读全文