App找不到hbm.cfg.xml的驱动程序

时间:2013-07-12 13:24:10

标签: java hibernate

当我删除hbm.cfg.xml文件时,应用程序无论如何在jdbc:mysql:// localhost:3306 / test中找到驱动程序。我在standalone.xml中更改了数据库名称...但是从那里它没有。有没有人知道如何在没有hbm.cfg.xml和更改的standalone.xml的情况下找到驱动程序?

1 个答案:

答案 0 :(得分:0)

如果您使用的是tomcat,请确保在部署新的.war文件时删除webapp / {webappname}目录,否则可能会使用展开的目录,而不是新的.war存档,希望有帮助......