<property name="hbm2ddl.auto">update</property>
//加载属性配置文件
<context:property-placeholder location="classpath:config.properties"/>
//加载映射文件(注解)
<mapping class="com.lt.bean.Group"/>
<mapping class="com.lt.bean.User"/>
//加载映射文件(xml类型)
<property name="mappingResources">
<list>
<value>com/gjh/entity/User.hbm.xml</value>
</list>
</property>
自动建表
最新推荐文章于 2023-12-14 15:39:44 发布