标签:odi utf-8 扫描 use class www 完成 text 推荐
<?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>
标签:odi utf-8 扫描 use class www 完成 text 推荐
原文地址:https://www.cnblogs.com/lebrond/p/14617192.html