小编Mat*_*att的帖子

驱动程序:org.postgresql.Driver@3ed03652为URL返回null ...在部署春季启动时到Heroku

我尝试在Heroku上部署我的应用程序,但有一些错误,我无法修复我的application.poperties

    spring.mvc.view.prefix = /WEB-INF/view/
spring.mvc.view.suffix = .jsp

spring.datasource.url = jdbc:postgres://user:pass@ec2-54-247-166-129.eu-west-1.compute.amazonaws.com:5432/database

# Username and password
spring.datasource.username = user
spring.datasource.password = pass

# Keep the connection alive if idle for a long time (needed in production)
spring.datasource.testWhileIdle = true
spring.datasource.validationQuery = SELECT 1

spring.datasource.driverClassName=org.postgresql.Driver

# ===============================
# = JPA / HIBERNATE
# ===============================

# Use spring.jpa.properties.* for Hibernate native properties (the prefix is
# stripped before adding them to the entity manager).

# Show or not log for each sql query
spring.jpa.show-sql …
Run Code Online (Sandbox Code Playgroud)

java postgresql spring heroku maven

3
推荐指数
1
解决办法
6387
查看次数

标签 统计

heroku ×1

java ×1

maven ×1

postgresql ×1

spring ×1