This week's book giveaway is in the Python forum.
We're giving away four copies of Python Continuous Integration and Delivery and have Moritz Lenz on-line!
See this thread for details.
Win a copy of Python Continuous Integration and Delivery this week in the Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

Problem when deploying spring boot project  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want deploy a project in AWS Elastic Beanstalk.

My project is developed in Spring Boot and my database (mySQL) is hosted on 000webhost.

My application.properties is this:

spring.datasource.url = jdbc:mysql://https://databases-auth.000webhost.com/db_structure.php?server=1&db=id8214312_proyecto&token=9461562288b8b7f500d723afabacf603
spring.datasource.driverClassName = com.mysql.jdbc.Driver
spring.datasource.username = id8214312_myusername
spring.datasource.password = mypassword
spring.jpa.database-platform = org.hibernate.dialect.MySQLDialect
spring.jpa.show-sql = true
spring.jpa.hibernate.ddl-auto = update

I generated a War file of the project and I uploaded it to Beanstalk using Tomcat as a platform, but when I open the page I got a 404 error because it does not detect my database.

What changes should I make to solve it?
 
Ranch Hand
Posts: 198
1
Java Python Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you check JDK variance compile time and during runtime?
 
Master Rancher
Posts: 1161
18
Firefox Browser Hibernate IntelliJ IDE Java MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can't remotely connect to the db of 000webhost, I had problems with it myself before.
A good alternative would be db4free.net or to create a local db.
Keep in mind that db4free isn't a production db, it's ment to be for testing, they give no guarantees what's so ever when it comes to protection of your data, latency or uptime, but I used it often before and never had probs
And welcome to the ranch
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!