摘要:
mybatis应注意的问题 1.如果dao包里同时有接口和xml文件,在maven中打成war包的时候会报错. 解决办法: 在pom.xml文件中</dependencies>后添加以下代码: <build> <resources> <resource> <directory>src/main/re 阅读全文
posted @ 2020-09-26 23:50
xsyz
阅读(233)
评论(0)
推荐(0)
摘要:
一对多和多对一 Student package com.southwind.entity; import lombok.Data; @Data public class Student { private long id; private String name; private Classes c 阅读全文
posted @ 2020-09-26 21:51
xsyz
阅读(333)
评论(0)
推荐(0)
摘要:
当传递的是实体类中比较少的属性,而且实体类中属性比较多的时候,我们可以选择用map来代替实体类,如果传递的是几个不同的参数,也可以用map。 下面是传递多个参数,可以用map。 void updateInfo1(Map<String,Object> map); <update id="updateI 阅读全文
posted @ 2020-09-26 14:08
xsyz
阅读(643)
评论(0)
推荐(0)
摘要:
在pom.xml中添加如下代码,可以解决java包下存在xml文件不能导出的问题 <build> <resources> <resource> <directory>src/main/resources</directory> <includes> <include>**/*.properties< 阅读全文
posted @ 2020-09-26 00:16
xsyz
阅读(605)
评论(0)
推荐(0)

浙公网安备 33010602011771号