InvalidArgumentException:未配置Database [database]

时间:2016-11-29 11:44:27

标签: php postgresql laravel heroku laravel-5.3

我已经将一个网络应用程序部署到了heroku,一切似乎都没问题。我运行了迁移,但它很成功。

当我尝试在浏览器中打开应用程序时出现以下错误,可能是什么问题?考虑到迁移是成功的,当我从本地主机访问heroku数据库时,它运行良好。

    List<LeaveManagement> leaveManagements =      session.createCriteria(LeaveManagement.class)
            .add( Restrictions.isNull("approvedTimeStamp") )
            .uniqueResult();

    If you want to write a hql query you can write as:

    String hql = "from LeaveManagement where approvedTimeStamp is null";
         Query query = session.createQuery(hql);
        LeaveManagement results = (LeaveManagement) query.uniqueResult();

请帮助。

0 个答案:

没有答案