摘要:
#解决方案 连接Mysql报错 The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 检查mys 阅读全文
摘要:
#写在前面 Mybatis使用模糊查询,查询结果为空的解决方案,我的代码是 select * from sp_user where 1=1 <if test="username!=null"> and username like '%'#{username}'%' </if> 查询结果如下: 202 阅读全文
摘要:
#写在前面 最近实现一个小需求,前端需要菜单的信息,需要向后端发起获取菜单的请求,菜单又是一个多级菜单,后端我用的mybatis进行数据库查询,实现的方法我这里想到有两种,欢迎大家补充。 ##1. 在Menu类中添加属性private List children 在菜单类中添加一个属性private 阅读全文