上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 38 下一页
摘要: 实现过程: 首先需要创建三个注解 一个是EnableExport ,必须有这个注解才能导出 /** * 设置允许导出 */ @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) public @interface EnableEx 阅读全文
posted @ 2021-07-26 10:47 Bonnie_ξ 阅读(271) 评论(0) 推荐(0) 编辑
摘要: SQL7 查找薪水记录超过15次的员工号emp_no以及其对应的记录次数t 我的思路: 在薪水表中根据员工编号分组,然后计算每个组内的数据条数,筛选出数据条数大于15的员工编号和对应的数据条数即可。 我的题解: select emp_no, count(emp_no) as t from salar 阅读全文
posted @ 2021-07-26 10:45 Bonnie_ξ 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 入门案例 现有一张数据表: mysql> use mybatis; Database changed mysql> select * from tbl_employee; + + + + + | id | last_name | gender | email | + + + + + | 1 | to 阅读全文
posted @ 2021-07-26 10:42 Bonnie_ξ 阅读(68) 评论(0) 推荐(0) 编辑
摘要: Controller层 VS Service层 去网上查阅了一些资料,一般推荐与业务无关的放在Controller层中进行校验,而与业务有关的放在Service层中进行校验。那么如何将参数校验写的优雅美观呢,如果都是if - else,就感觉代码写的很low,还好有轮子可以使用 使用Hibernat 阅读全文
posted @ 2021-07-23 14:43 Bonnie_ξ 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 代码示例 import pymysql pymysql.connect(host='localhost',user='user',password='password',database='database',port=3306) from pymysql import connect, Error 阅读全文
posted @ 2021-07-21 09:19 Bonnie_ξ 阅读(25) 评论(0) 推荐(0) 编辑
摘要: https://mp.weixin.qq.com/s/DD7AngUgYtVui0qqZzKHRw 一、job 定时任务的五种创建方式 1、使用线程创建 job 定时任务 /** * TODO 使用线程创建 job 定时任务 * @author 王松 */ public class JobThrea 阅读全文
posted @ 2021-07-16 10:25 Bonnie_ξ 阅读(282) 评论(0) 推荐(0) 编辑
摘要: public enum ShopTypeEnum { meituan("16", "可以"), meituanfood("8", "不可以"), eleme("9", "还行"), elemestar("10", "不行"); private final String code; private f 阅读全文
posted @ 2021-07-15 15:30 Bonnie_ξ 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 1.if..else public int calculate(int a, int b, String operator) { int result = Integer.MIN_VALUE; if ("add".equals(operator)) { result = a + b; } else 阅读全文
posted @ 2021-07-15 10:15 Bonnie_ξ 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 1、top 相当于Windows任务管理器 可以看到,输出结果分两部分,前5行是总览,下面是具体的进程资源占用情况。下面逐行看一下 第1行 top - 18:14:58 up 112 days, 1:35, 1 user, load average: 0.00, 0.10, 0.11 依次表示:当前 阅读全文
posted @ 2021-07-15 09:19 Bonnie_ξ 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 1.启动VMware的画面 2.点击File >New Virtual Machine 创建一台新虚拟机 3.在弹出框中选择典型安装 4.选择I will install the operating system later.(稍后安装系统) 5.选择引导系统是Linux并选择系统版本是CentOS 阅读全文
posted @ 2021-07-15 08:49 Bonnie_ξ 阅读(32) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 38 下一页