淘淘商城第九课 ssm框架整合service层整合

1.新建service层的配置文件(applicationContext-service.xml)

主要配置内容是在指定的包里面扫描service注解


2.构建service层(是由接口和具体的实现类组成的)

interface下的src/main/java下新建一个包是com.taotao.service(存放接口的包)
service下的src/main/java下新建一个包是com.taotao.service.impl(存放具体的实现类)

3.新建事务配置文件(applicationContext-trans.xml)

主要配置内容是事务。(俺忘了,待俺复习一下aop和事务。)

4.服务层的配置文件通过web.xml来初始化spring容器(监听器我也忘了)


	
		contextConfigLocation
		classpath:spring/applicationContext-*.xml
	
	
	
	
		org.springframework.web.context.ContextLoaderListener
	

你可能感兴趣的:(淘淘商城,淘淘商城,service整合)