One Response

  1. choukoukouamine



    19 January 2018 at 06:44

    Very interesting, thank you very much for sharing.

    Just a note, you do not need to declare a bean as a variable and retrieve it from the context, just use it with its alias or bean name as a variable.
    For example :
    instead of
    $ typeService = spring.getBean (“serviceType”);
    $ typePK = typeService.getTypeForCode (TYPE) .getPk ();
    $ typePK = typeService.getTypeForCode (TYPE) .getPk ();

    This is very useful if we want to get the class of a bean if we want to know if we have the class we want.

Leave a Reply