转!mybatis字符串比较 注意事项

注意坑:当常量的length=1时,因为mybatis会把’1’解析为字符,java是强类型语言,所以不能这样写。如果常量的length>1就不会出现这个问题。


 

 

 

 

 

转自:

https://blog.csdn.net/weixin_44457814/article/details/107496743

https://blog.csdn.net/weixin_44457814/article/details/107496743

 

posted @ 2022-09-01 09:23  乌云de博客  阅读(112)  评论(0编辑  收藏  举报