This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Get Programming with Java (MEAP only) and have Peggy Fisher on-line!
See this thread for details.
Win a copy of Get Programming with Java (MEAP only) this week in the Beginning Java 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 ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Problem when deploying spring boot project  RSS feed

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 is this:

spring.datasource.url = jdbc:mysql://
spring.datasource.driverClassName = com.mysql.jdbc.Driver
spring.datasource.username = id8214312_myusername
spring.datasource.password = mypassword
spring.jpa.database-platform = org.hibernate.dialect.MySQLDialect = 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: 196
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: 933
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 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
Goodbye moon men. Hello tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!