MyBatis_Plus 代码生成器 开启Mapper接口扫描 @Configuration @EnableTransactionManagement @MapperScan("com.hu.mylearn.mapper") public class MyBatisPlusConfig { // 旧 ...
分类:
其他好文 时间:
2021-06-02 13:39:52
阅读次数:
0
题目链接 #题目大意 求n个数的子序列的最大异或和。 #解题思路 求出n个数的线性基并排序,然后将k二进制异或上线性基中对应的代表元素即可。 #代码 const int maxn = 2e5+10; ll arr[maxn]; vector<ll> b; //b中存的每个二进制位的代表元素 void ...
分类:
其他好文 时间:
2021-06-02 13:29:58
阅读次数:
0
dui界面基于 https://github.com/dingyuanhong/dui_ffplay/ extern "C" { #include "common.h" //ff相关 } #include <Windows.h> #include "../DuiLib/UIlib.h" using ...
model代码如下: @OneToMany(fetch=FetchType.EAGER, cascade = CascadeType.ALL) @Where(clause="isValid=1 and orderType=1") @JoinColumn(name = "orderUUID", ref ...
分类:
Web程序 时间:
2021-06-02 13:20:12
阅读次数:
0
IRowMapper接口: package com.jd.ntil.db; import java.sql.ResultSet; public interface IReowMapper { void mapRow(ResultSet resultSet); } PropertiesUtil类: p ...
分类:
数据库 时间:
2021-06-02 13:17:08
阅读次数:
0
1、定义一个执行器抽象类 public abstract class AbstractExecutor<T> { /** * 执行业务逻辑 */ public void doExecute(T t) { try { // 初始化 this.init(t); // 执行逻辑 this.process( ...
分类:
其他好文 时间:
2021-06-02 13:14:08
阅读次数:
0
控制器注解参数判空 调用效果展示 ## 正常 { "id": 14, "name": "张三", "sex": "男" } ## 姓名不能为空 { "code": -1, "message": "姓名不能为空", "data": null } ## 性别不能为空 { "code": -1, "mes ...
分类:
其他好文 时间:
2021-06-02 13:13:35
阅读次数:
0
简介 鸿蒙OS 开发SDK中对于长列表的实现ListContainer的实现较为简单,没法想RecyclerView一样通过使用不同的LayoutManager来实现复杂布局因此没法快速实现瀑布流效果。 但鸿蒙OS也都支持控件的Measure(onEstimateSize),layout(onArr ...
分类:
其他好文 时间:
2021-06-02 13:06:16
阅读次数:
0
简介 简单工厂模式还是得修改factory类来构建出新的对象. 工厂方法模式将factory也抽象成一个抽象接口 code public interface Car { void name(); } public interface CarFactory { Car getCar(); } publ ...
分类:
其他好文 时间:
2021-06-02 12:58:35
阅读次数:
0
1、controller中的方法 /** * 获取区域树 * @return */ @ResponseBody @RequestMapping("/getAreaInfoTree") public List<AreaInfo> getAreaInfoTree(){ List<AreaInfo> re ...
分类:
编程语言 时间:
2021-06-02 12:47:27
阅读次数:
0