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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

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: 196
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: 933
17
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
 
Goodbye moon men. Hello tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!