03 2023 档案
摘要:模糊查询 mapper接口:这里使用username进行模糊查询 List<User> selectUserByLikeName( @Param("username") String username); 映射文件:这里可以使用三种方式,第一种是使用${},因为#{}无法在单引号中使用,要么使用co
阅读全文
摘要:Mybatis优化 log4j日志显示 在pom.xml中的<dependencies>标签中加入 <!--log4j日志 --> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.17
阅读全文