Chat/src/main/resources/mybatis.xml

27 lines
1.3 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
<environments default="development">
<environment id="development">
<transactionManager type="JDBC"/>
<dataSource type="POOLED">
<property name="driver" value="com.mysql.cj.jdbc.Driver"/>
<property name="url" value="jdbc:mysql://119.29.254.99:3306/chat"/>
<property name="username" value="root"/>
<property name="password" value="ob666666"/>
</dataSource>
</environment>
</environments>
<!--注册mapper配置文件mapper文件路径配置
url:网络上的映射文件
注意映射配置文件位置要和映射器位置一样映射器在com.mycode.dao里
那么配置文件就应该在resources的com/mycode/dao目录下否则会报
Could not find resource com.mycode.dao.UserMapper.xml类似错误
-->
<mappers>
<!--下面编写mapper映射文件↓↓↓↓↓ 参考格式:<VueLoginMapper.xml resource="dao/VueLoginMapper.xml"/> -->
<mapper resource="mapper/LoginMapper.xml"></mapper>
</mappers>
</configuration>