2023年8月12日

Java计算两点间的距离

摘要: public class PointUtils { public static void main(String[] args) { BigDecimal x1 = new BigDecimal("0"); BigDecimal y1 = new BigDecimal("0"); BigDecima 阅读全文

posted @ 2023-08-12 15:41 彡木虫 阅读(543) 评论(0) 推荐(0)

2023年3月22日

Win10系统半夜自动开机解决办法

摘要: 下载权限提升工具ExecTI.exe,下载链接 https://pan.baidu.com/s/17guWs5l_FQ1LrdwHiAoE4Q 提取码:uvgx 也可自行网上搜索。 下载好后,右击“ExecTI.exe” 以管理员身份运行: 输入:mmc.exe /s taskschd.msc 点击 阅读全文

posted @ 2023-03-22 09:14 彡木虫 阅读(741) 评论(0) 推荐(0)

2022年5月18日

xxl-job bug: DataTables warning: table id=job_list - Ajax error. For more information about this error, please see http://datatables.net/tn/7

摘要: xxl-job提示错误 F12查看参数jobGroup值被千位分隔 原因: 接口接收的是int类型,所以报错。 freemarker在数字回显时,如果数字超过999,会自动用 , 分割开,所以报异常。解决参考: https://blog.csdn.net/moshowgame/article/det 阅读全文

posted @ 2022-05-18 19:38 彡木虫 阅读(834) 评论(0) 推荐(0)

2022年4月20日

oracle mybatis实现批量insert

摘要: 使用mybatis XML文件实现 <insert id="insertBatch" parameterType ="java.util.List" > INSERT INTO TABLE_NAME( column1, column2, column3 ) ( <foreach collection 阅读全文

posted @ 2022-04-20 17:37 彡木虫 阅读(661) 评论(0) 推荐(0)

2021年10月12日

mybatis中Oracle分页动态sql查询中使用ORDER BY遇到的问题

摘要: 今天写一个列表页查询功能 mybatis代码如下 <select id="getRolePage" resultType="cn.security.Role"> SELECT * FROM ( SELECT TMP.*, ROWNUM ROW_ID FROM ( SELECT t1.*, t2.OR 阅读全文

posted @ 2021-10-12 19:06 彡木虫 阅读(472) 评论(0) 推荐(0)

2021年7月9日

vue trigger参数

摘要: trigger: "blur": 失去焦点时触发,多用于input框 trigger: "change": 数据改变时触发,用于下拉框 type: [ { required: true, message: '请选择类型', trigger: 'change' } ], name: [ { requi 阅读全文

posted @ 2021-07-09 16:20 彡木虫 阅读(1992) 评论(0) 推荐(0)

2020年12月8日

Java打印天干地支纪年法

摘要: public static void main(String[] args) { int num = 0; int i = 0; int j = 0; // 天干地支纪年法 依次打印出每个年份 第一年为 甲子年 第二年为乙丑年 第三年为 丙寅年 共60年一轮回 List<String> list = 阅读全文

posted @ 2020-12-08 15:30 彡木虫 阅读(52) 评论(0) 推荐(0)

2020年9月22日

nacos配置

摘要: 下载地址: https://github.com/alibaba/nacos/tags 项目内导入依赖 <!-- nacos --> <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-starter- 阅读全文

posted @ 2020-09-22 14:48 彡木虫 阅读(151) 评论(0) 推荐(0)

2020年9月18日

mybatis批量新增

摘要: mybatis批量新增:public interface InfoMapper { int insertServiceInfo(@Param("records") List<ServiceInfo> records);} InfoMapper.xml <insert id="insertServic 阅读全文

posted @ 2020-09-18 15:09 彡木虫 阅读(150) 评论(0) 推荐(0)

导航