spring-service.xml

时间:2021-04-06 15:03:33   收藏:0   阅读:0
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd">

<!-- 1,扫描service下的包-->
<context:component-scan base-package="com.taskMaster.service"></context:component-scan>
<!-- 2,将所有的业务类注入到spring配置注解,也可以用注解完成(推荐)-->
<bean id="UserLoginServiceImpl" class="com.taskMaster.service.UserLoginServiceImpl"></bean>
<!-- 3,声明式事务-->
<!-- <bean id="transactionmanage" class="org.springframework"-->
</beans>
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!