Does Spring: controller need to provide an interface like service, and then write an Impl class?

does Spring: controller need to provide an interface like service, and then write an Impl class?

Mar.22,2021

Controller is equivalent to the facade of a store, no one wants to enter the door of the fresh supermarket, as a result, it sells decoration materials. What Service provides is a function, and the salesperson in a store, who is going to be the salesperson, all do the same thing. So, it's not necessary.

Menu