简体   繁体   English

动态Web项目蚀的解耦架构方法

[英]Decoupled architecture approach with dynamic web project eclipse

The eclipse-maven-tomcat project(containing html/css, jquery, javascript ) will make ajax-jquery calls, using exposed web service url's(using json/xml) and interact with database. eclipse-maven-tomcat项目(包含html/css, jquery, javascript )将使用公开的Web服务url(使用json / xml)进行ajax-jquery调用,并与数据库进行交互。 The database persistence layer and web framework ( spring ), etc, modules are part of another project which exposes web services. 数据库持久层和Web框架( spring )等模块是另一个公开Web服务的项目的一部分。

Will using the above mentioned technologies will follow the headless websites/ decoupled architecture ? 使用上述技术是否会遵循无头网站/ 分离的架构

Quoting this answer : 引用此答案

A "Headless Architecture" is a buzz phrase in the software development community pertaining generally to web applications describing an approach which splits the code base cleanly between server side (eg REST webs services) code which defines data and business logic from client side (eg JavaScript) code which invokes the logic and renders the data and typically as part of an MVC pattern. “无头架构”是软件开发社区中的流行语,通常与Web应用程序相关,描述了一种在服务器端(例如REST Web服务)代码之间清晰地划分代码库的方法,该代码定义了来自客户端(例如JavaScript)的数据和业务逻辑)代码,该代码调用逻辑并呈现数据,通常作为MVC模式的一部分。

So of course you can implement this using HTML/CSS/JS for the front-end and Spring for backend in separate projects. 因此当然可以在单独的项目中使用HTML / CSS / JS进行前端实现,并使用Spring进行后端实现。

Eclipse, Tomcat or Maven are quite orthogonal to the question. Eclipse,Tomcat或Maven与问题完全正交。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM