Separate frontend and backend in Java - Spring MVC Framework

Ertuğrul Çetin

I'm new at Spring MVC framework i want to learn how to fully separate frontend(html,js etc.) and backend(java).

I'm going to use RESTfull services, play with JSONs. I think i'm going to build Single Page Application.

Most of tutorials shown in jsp pages which i dont like.

I saw my friends company project(Using Spring MVC) they used Embedded Jetty server and in server configuration they assigned two different paths for frontend and backend paths.

I saw frontend codes there was only html javascripts etc. on the backend side the approach was the same.(Fully Separated !!!)

My question is:'How they pass requests from frontend to backend and get results from backend and update frontend'.

Also they were using Maven backend and frontend defined as modules in the root.

Could you share tutorials so i can understand playing with codes ?

Neil McGuigan

'How they pass requests from frontend to backend and get results from backend and update frontend'

They probably use HTTP[S] as the transport and JSON as the data representation format. Browsers support AJAX which allows you to make HTTP connections without reloading the page.

Could you share tutorials so i can understand playing with codes ?

No, that's not what this site is for.

Comments:

JSP is still very useful for generating HTML on the server. This is pretty close to necessary if you want Google to crawl your site.

Check out Spring Data REST for a framework for quick REST APIs.

Also check out ExtJS or Dojo for good Single Page App frameworks.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Deploy frontend in angular and backend in java in cpanel

Java backend with JavaScript frontend - why JSON?

Docker compose for java backend and python frontend application

Manage project backend and frontend in two separate branches or repositories?

Separate graphql/relay backend and frontend

Separate frontend and backend with Heroku

How can I separate wordpress in backend & frontend with docker container?

Deploy app to Heroku with separate frontend/backend servers

How do you separate backend and frontend in laravel projects?

Deploying website with React frontend and Django rest framework backend

NGINX setup for separate Vue Frontend and Express Backend

Issues implementing websockets (Spring backend/React frontend)

Download file with Angular frontend from Java backend

Cookies when using separate Dyno for react frontend and Django backend

Java backend + Angular 2 (or higher) frontend

Is it good practise to have separate projects for backend and frontend with Django?

Synchronizing "Frontend" and "Backend" in Java (and SWT)

Should I treat the frontend and backend of a webapp as ONE project, or as separate parts?

Frontend framework to consume RESTful backend

API for a website: separate backend and frontend with an API

Zend Framework 2 - How make views separation for frontend and backend?

How to test Yeoman frontend against (Spring) Backend?

codeigniter Different/separate 404 page for frontend and backend

Spring hibernate mvc - loop in frontend

Angular 2 frontend django 2 REST framework backend user auth

Separate frontend from backend in Java App with docker containers

How to separate frontend and admin in CodeIgniter framework?

What is a web framework and how frontend and backend related to web framework?

Rendering an image on a Java-Backend then displaying it in the Frontend