How to define the methods that are often used in business classes

in the process of developing a module, some code appears repeatedly in multiple business classes. I want to strip it out and write it as a separate method, but I don"t know where to write it, because the method is also related to business, so it feels strange to be written in util, directly under a calling class, and somewhat inappropriate for other calling classes. I don"t know how to write a reasonable point

.

there is nothing wrong with putting it in util. Just call it AServiceUtil,.


MVSC = > has one more layer of Service than the traditional MVC , which is mainly used to put business logic.

M dealing with databases

V dealing with views

C controls receiving parameters and outputs data

S is responsible for the business logic.

I write php, I don't know how java is implemented

Menu