springarchitectureumldeployment-diagram

Where to put controller service and repository in deployment diagram


I want to put more in my deployment diagram like the controller layer, the service layer and the repository that are in my spring application. So where shall I put these 3 layers?

Here is my current deployment diagram: enter image description here

Do you think it can be a component inside the Application: java spring artifact or is it wrong to do it this way?


Solution

  • The UML deployment diagram should reflect your architecture. I'm not a spring / java expert, but here some elements based on my understanding: