Hibernate逆向工程时不能选择spring Dao

开始打开项目文件夹
找到.springBeans ,用记事本打开,添加Spring 配置文件的位置.
<?xml version="1.0" encoding="UTF-8"?>
<beansProjectDescription>
<version>1</version>
<pluginVersion><![CDATA[2.2.0.me200911090405]]></pluginVersion>
<configSuffixes>
  <configSuffix><![CDATA[xml]]></configSuffix>
</configSuffixes>
<enableImports><![CDATA[false]]></enableImports>
<configs>
  <config>WebRoot/WEB-INF/applicationContext.xml</config>//spring位置文件的位置,每个人不一定相同
</configs>
<configSets>
</configSets>
<springVersion>2.5</springVersion>
</beansProjectDescription>
最后把项目刷新一下,就可以了
为什么会这样我也不清楚了,有人说是没按标准步骤来。。。

猜你喜欢

转载自wljzhchgx.iteye.com/blog/1025544
DAO
今日推荐