为什么传入mybatis的mapper类方法中的不支持自动绑定到sql上,而需要使用@param注解手动配置,Why to mybatis mapper class methods does not support automatic binding to the SQL, and need to use @ param annotation manually configure

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

为什么传入mybatis的mapper类方法中的不支持自动绑定到sql上,而需要使用@param注解手动配置,Why to mybatis mapper class methods does not support automatic binding to the SQL, and need to use @ param annotation manually configure

秦开远

Why to mybatis mapper class methods does not support automatic binding to the SQL, and need to use @ param annotation manually configure





--
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].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: 为什么传入mybatis的mapper类方法中的不支持自动绑定到sql上,而需要使用@param注解手动配置,Why to mybatis mapper class methods does not support automatic binding to the SQL, and need to use @ param annotation manually configure

Kazuki Shimizu

Since MyBatis 3.4.1, it has been supported using -parameters added by JDK 8.

For detail see https://github.com/mybatis/mybatis-3/issues/549.


On Saturday, April 29, 2017 at 2:51:41 PM UTC+9, 秦开远 wrote:

Why to mybatis mapper class methods does not support automatic binding to the SQL, and need to use @ param annotation manually configure




<a href="https://lh3.googleusercontent.com/-_2jBuSb9aJ0/WQQpm660dBI/AAAAAAAAAAk/s2VUxiYCAaUuCzp14jp88QrQbBjeerzSACLcB/s1600/%2525LJ%2528V65%2524%255DWP%2524S77VVR%2529WV%2529H.png" style="margin-left:1em;margin-right:1em" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://lh3.googleusercontent.com/-_2jBuSb9aJ0/WQQpm660dBI/AAAAAAAAAAk/s2VUxiYCAaUuCzp14jp88QrQbBjeerzSACLcB/s1600/%2525LJ%2528V65%2524%255DWP%2524S77VVR%2529WV%2529H.png&#39;;return true;" onclick="this.href=&#39;https://lh3.googleusercontent.com/-_2jBuSb9aJ0/WQQpm660dBI/AAAAAAAAAAk/s2VUxiYCAaUuCzp14jp88QrQbBjeerzSACLcB/s1600/%2525LJ%2528V65%2524%255DWP%2524S77VVR%2529WV%2529H.png&#39;;return true;">


--
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].
For more options, visit https://groups.google.com/d/optout.
Loading...