DEV Community

Discussion on: Edit Item in Intellij IDEA

Collapse
raviyasas profile image
Ravi Yasas

When we are creating a Spring web application, the business logic should be in a separate layer as a Service. So we have Controller, Service, Repositories, and Models. Please check this github.com/raviyasas/spring-boot-hibernate-demo.git

Thread Thread
arotto8719 profile image
arotto8719 Author • Edited on

I have all that on there but I need to know what to put in the exact lines so I can save and edited item.

Something besides the Post or whatever.

I have artifact repository.

Am I supposed to copy and paste what you have or do I have to make mine similar to yours?

Thread Thread
raviyasas profile image
Ravi Yasas

It is better if you can write your own code like mine or you can use my one. It is the best practice to write code in mvc pattern. That is why I mentioned it.