[quote=引用 5 楼 Ricky_As 的回复:] int a = 1; mybatis 占位符#{a} 需要指定参数类型 在xml中是在select标签中 指定parameterType属性的值
int a = 1; mybatis 占位符#{a} 需要指定参数类型 在xml中是在select标签中 指定parameterType属性的值
没写过 不敢妄加指点; 但是一般xml中的 是 select * from xx where xxx='1' 这个常量1 用单引号引起来;
....注解的sql 现在sql都不写在xml里面了吗...
67,512
社区成员
225,885
社区内容
加载中
试试用AI创作助手写篇文章吧