数据库
黑蛋先生
这个作者很懒,什么都没留下…
展开
-
Mybatis中的模糊查询语法
案例一:#{} 业务层加上%%mapper.java@Repositorypublic interface Demo{ long getCount(@Param("id")String id,@Param("keyword")String keyword);}mapper.xml<select id="getCount" resultType="java.lang.Long"> SELECT COUNT(*),b.nickname ...原创 2021-08-05 19:57:19 · 260 阅读 · 0 评论 -
jdbc.properties文件的大坑
jdbc.properties文件的正确写法url=jdbc:mysql://localhost:3306/heidan?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=trueusername=rootpassword=6666driverClass=com.mysql.jdbc.Driver注意注意注意原创 2021-03-24 14:50:24 · 417 阅读 · 0 评论