Intellij:网络应用程序在工作正常,但停止在家工作(通过VPN)

时间:2017-07-28 18:29:16

标签: maven spring-boot intellij-idea gradle build.gradle

如果这个问题没有多大意义,我很抱歉,我对前端编程的态度还很不错。

我有这个使用gradle的公司Web应用程序。我熟悉NPM / ReactJS / JS /等,但对gradle不熟悉。通过使用Intellij / springboot,我可以在localhost上运行应用程序(我需要运行两件事,一个是'引擎'另一个是UI)。我相信这些是在localhost 9000和9001上运行的某种TOMCAT服务器。这在工作中很好用(我可以访问localhost上的UI),但是引擎和UI都停止在家工作(当使用VPN连接到公司时)内联网)。

错误似乎很长,但我认为这些应该是重要的部分:

Error starting ApplicationContext. To display the auto-configuration report enable debug logging (start with --debug)
2017-07-29 01:27:15 12948 [main] ERROR o.s.boot.SpringApplication - Application startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]


Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]

Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set

Process finished with exit code 1

有人能就如何解决这个问题提出建议吗?

鉴于此只停止工作(即通过VPN在家中),我认为这是罪魁祸首。

我注意到有关maven存储库(http://repo1.maven.org/maven2)的intellij警告,但没有加载。我以为这就是问题所在。过了一段时间,我设法在maven安装部分添加代理设置。存储库加载正常,但我仍然得到错误

======================

当连接到公司VPN时,我可以通过远程桌面连接连接到虚拟机。通过这个虚拟机,我可以访问Web应用程序正在使用的数据库

1 个答案:

答案 0 :(得分:1)

我最终找到了解决方案。在Windows凭据(在Windows搜索中搜索'cred'),我在那里保存我的数据库服务器登录详细信息。从谷歌搜索,似乎有一个长期存在的问题,我不太明白,如果我在家里使用我的笔记本电脑,凭据将被删除。我把它们加回来了,现在就可以了。发布这个以防其他人有同样的问题我做了。谢谢大家的帮助