Issue
I am currently developing an single-page web app using React.js and backend using servlet according to the requirements for my internship project. I wanted to know as to how can I make my react front end and java backend run together on tomcat server inside my IDE? I am using eclipse IDE and Tomcat 8.5.
Solution
I guess you are using the webpack server to run the react app and tomcat to run your java backend. What you will have to do is serve the react app through your Java backend itself instead of serving your react app from another server
Answered By - Near