springboot整合mybatis时候的配置文件需要进行注意的地方
其次在application.properties文件中配置mybatis的mapper文件位置,和实体类的包路径,还有最好加上驼峰命名规范 ####mybatis配置
# 注意注意
mybatis.mapper-locations=classpath:edu/hohai/chapter1/gt/mapper/*.xml
#mybatis.mapper-locations=classpath:mapper/*.xml #这种方式需要自己在resources目录下创建mapper目录然后存放
「HNOI2010」弹飞绵羊
「HNOI2010」弹飞绵羊 传送门 考虑分块。 每一个位置 \(i\) ,记 \(to[i]\) 表示从这个位置一直往右跳回落在哪个位置。 然后修改的时候直接暴改,查询也是暴跳,复杂度 \(O(n \sqrt n)\) 参考代码: #include <algorithm>
#include <cstdio>
#include <cmath>
#define rg register
#define file(x) freopen(x".in", "r", stdin), freopen(x".
今日推荐
周排行