I'm trying to deploy my project that includes: Java , Mysql, Angular. i've succeed to export the project as Jar and Open it LocalHost. The project runs well on local host.
I've recently Opened AWS Elastic Beanstalk Environment. Based on Java. I've Succeed to connect to the AWS DB with Mysql workbench. i've Succeed to modify my project that will able to connect to the AWS DB.
i've Upload the Jar to Elastic Beanstalk and then i open the url and gets:
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Tue Nov 12 10:41:36 UTC 2019
There was an unexpected error (type=Not Found, status=404).
No message available
So i opened the last 100 lines in the log, and it said:
2019/11/12 10:24:39 [error] 6677#0: *3 connect() failed (111: Connection refused) while connecting to upstream, client: {My IP} , server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "{My Site}"
I've Also succeed to Enter the swagger UI and Post/Get
Thanks For Help!
EDIT 1: I Added @ComponentScan -> the problem still exists
EDIT 2: PROBLEM SOLVED! MY index.html must be under resources/static.