08 2021 档案

摘要:代码: 1 <sql id="if-title-author"> 2 <if test="title !=null"> 3 title=#{title} 4 </if> 5 <if test="author != null"> 6 and author=#{author} 7 </if> 8 </s 阅读全文
posted @ 2021-08-26 22:31 现在开始JAVA 阅读(118) 评论(0) 推荐(0)
摘要:1:mybatis_config.xml 1 <?xml version="1.0" encoding="UTF-8" ?> 2 <!DOCTYPE configuration 3 PUBLIC "-//mybatis.org//DTD Config 3.0//EN" 4 "http://mybat 阅读全文
posted @ 2021-08-23 23:59 现在开始JAVA 阅读(35) 评论(0) 推荐(0)
摘要:接口中: 1 int addUser2(Map<String,Object> map); View Code mapper.xml中: 1 <insert id="addUser2" parameterType="map"> 2 insert into mybatis.user (id, name, 阅读全文
posted @ 2021-08-19 21:35 现在开始JAVA 阅读(208) 评论(0) 推荐(0)
摘要:在pom.xml文件中添加配置: 1 <!-- 在build中配置resources,来防止我们资源导出失败的问题--> 2 <build> 3 <resources> 4 <resource> 5 <directory>src/main/resources</directory> 6 <inclu 阅读全文
posted @ 2021-08-18 23:03 现在开始JAVA 阅读(34) 评论(0) 推荐(0)