1、当时搞联表查询的时候,通过xml配置联表查询特别难搞,问了好几个人都不会。后来问了一个大佬,教给我用注解配置就特别简单,特此记录一下。(xml和注解可以混用,推荐使用注解配置,xml配置一次就要重启tomcat,时间太长,而改注解配置的时候,重新发布一下即可,需要的时间比较少)
@Select("select * from class where id not in(select cid from classchoice where
name=#{name})and id not in(select cid from examine where name=#{name}) and
id!=1 and num>0" ) List<Class> queryMyChoiceClassNotChoiced(String name);
 相当于以下
select * from class where id not in( select cid from classchoice where
name=#{name} ) and id not in( select cid from examine where name=#{name} ) and
id!=1 and num>0

2、tomcat搞欢迎界面的时候,welcome不管用。后来通过直接配置tomcat的url实现了

 

技术
今日推荐
PPT
阅读数 93
下载桌面版
GitHub
百度网盘(提取码:draw)
Gitee
云服务器优惠
阿里云优惠券
腾讯云优惠券
华为云优惠券
站点信息
问题反馈
邮箱:ixiaoyang8@qq.com
QQ群:766591547
关注微信