I want to refactor a method annotated with @PostContruct in a common class of all my controller.
public abstract class Controller {
@PostConstruct
protected void PostContruct() { ..}
}
public class AuthController extends Controller {}
public class CartController extends Controller {}
But spring doesn't seems to call my inherit method. What is the pattern to use in this situation ?