爪哇 MyBatis 2021-10-25 1097.什么情况下用注解绑定,什么情况下用 xml 绑定? 当 Sql 语句比较简单时候,用注解绑定;当 SQL 语句比较复杂时候,用 xml 绑定,一般用xml 绑定的比较多