<property name="typeAliasesPackage" value="entity"/>
时间: 2023-11-28 21:06:34 浏览: 103
dcm4chee-arc.xml
This line of code is used to configure the MyBatis framework to scan the "entity" package for Java classes that represent database tables. These Java classes are known as "type aliases" and are used by MyBatis to map database tables to Java objects. By default, MyBatis uses the simple class name as the type alias, but this property allows you to specify a different package where your type aliases are located.
阅读全文