Place code together
In Chapter 2, Vue.js 2 - It Works in the Way You Expected, we created the frontend and used http-server to serve the index.html file and the static .js assets. When the integration is done, the embedded Tomcat server will serve these files. Now, let's move the frontend code to the backend.
Besides putting the frontend and the backend together in a single project and deploying it as a whole, you can also keep them separated and deploy them separately so that the team can benefit from this decoupling when they need to work on each end independently. In this book, we will keep both ends together.
As mentioned earlier in the Spring MVC section, when requests come in, they go through Filter and DispatcherServlet objects ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access