Are JavaService and JavaController implemented in 1.4.0 generator? regards Andrey You received this message because you are subscribed to the Google Groups "mybatis-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/mybatis-user/CAAJ_J17r0JC_37j5ao0FPk4aY-KkDtzJzfE7xiWg3dSZoSzM1A%40mail.gmail.com. |
I'm not sure what you mean. Are you referring to Spring @Service and @Controller? On Mon, Mar 2, 2020 at 8:23 AM Andrey Rogov <[hidden email]> wrote:
You received this message because you are subscribed to the Google Groups "mybatis-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/mybatis-user/CAKpaNj5ULrgfeZs6QWoeG18yrrLWUsfYPZHfNDd0ChS5myyp8A%40mail.gmail.com. |
yes Jeff. I'm about
Spring @Service and @Controller? пн, 2 мар. 2020 г. в 15:54, Jeff Butler <[hidden email]>:
You received this message because you are subscribed to the Google Groups "mybatis-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/mybatis-user/CAAJ_J142tndF6dRA%2BEGhP1eMXRqG7%3D3W8DbO%3D2hkJtK36vAY%2Bw%40mail.gmail.com. |
The generator doesn't add these annotations to anything it generates. I think you could make a case that a generated mapper is somewhat like a service. Although, in my opinion, a generated MyBatis mapper is too fine grained to be considered a real service. In my experience it is more common to inject mappers into services.
-- MyBatis Spring support implements a scanner for the @Mapper annotation that makes it easy to inject mappers into other Spring objects. The generator will add the @Mapper annotation to generated objects. On Monday, March 2, 2020 at 9:21:02 AM UTC-5, andrey.rogov wrote:
You received this message because you are subscribed to the Google Groups "mybatis-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/mybatis-user/3ee778d0-7c89-4e23-8dcf-ad3c3ce207d3%40googlegroups.com. |
Free forum by Nabble | Edit this page |