maven - Intellij : web app is fine at work but stops working at home (via VPN)

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

如果这个问题没有太大意义,我深表歉意,我对前端编程还很初级。

我有这个使用 gradle 的公司 Web 应用程序。我熟悉 NPM/ReactJS/JS/etc,但对 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 应用程序正在使用的数据库

最佳答案

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

关于maven - Intellij : web app is fine at work but stops working at home (via VPN),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45380168/

相关文章:

java - 以通用方式管理任何 HTTP 请求

java - 是否可以根据 @Autowire 的路径变量来决定使用哪个 bean?

java - Gradle + TestNG 仅将某些测试作为单个测试运行

构建时的Android gradle uploadArchives

java - 如何处理maven中复杂的依赖关系?

maven - Dockerfile-ARG SHA和Curl

android - 无法在 intellij idea 的设计选项卡中看到 View

java - 如何将现有的 java Maven 模块添加到 Grails Maven 模块?

spring-boot - 是否可以为 Spring Boot 应用程序提供 oauth 和基本用户名密码登录选项?

java - Intellij 无法识别我在 Gradle 中的 Java 应用程序?