Separating Service Level from Web Tier in a Spring Application

I am currently studying Spring. So far, I have created a basic application consisting of Hibernate / JPA, DAO objects and classes that execute business logic. This is what I call a service.

If now I want to use SpringMVC to add a web interface to this application, how can I separate it?

i.e. Do I need to create a separate Dynamic Web project in Eclipse for a web layer? If so, how can I integrate the two? I suppose I can just copy the service level source to a web project, but that doesn't seem like the best approach.

+3
source share
2 answers

, , .

, - , WAR .

, -, JAR JAR -. - Maven .

+2

Maven? , webapp " " .

+2

Source: https://habr.com/ru/post/1770679/


All Articles