我也不知,随便

📅 2026/7/2 12:32:58 👁️ 阅读次数 📝 编程学习
我也不知,随便

<?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:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd">

<bean id = "dao" class = "org.mybatis.spring.mapper.MapperFactoryBean">
<property name = "mapperInterface" value= "com.lw.dao.Dao" >
</property>

<property name = "sqlSessionFactory" ref = "sqlSessionFactory">

</property>
</bean>

<bean id = "seivice" class = "com.lw.seivice.Serivice">
<property name = "dao" ref = "dao">
</property>
</bean>
<bean id = "sqlSessionFactory" class = "org.mybatis.spring.SqlSessionFactoryBean">
<property name = "dataSource" ref = "dataSource">
</property>
</bean>
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="com.mysql.jdbc.Driver"/>
<property name="url" value="jdbc:mysql://localhost:3306/six_ten?userUnicode=true&amp;characteEncoding=utf-8&amp;useSSL=false"/>
<property name="username" value="root"/>
<property name="password" value="123456"/>
</bean>

</beans>