
test
马心宇
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
tinymce文本编辑器配置按钮运行打印插件WebPrinter
editor.ui.registry.addSplitButton('myButtonWebPrinter', { text: 'WebPrinter', icon: ' ', tooltip: 'This is an example split-button', ...原创 2021-03-02 10:49:20 · 557 阅读 · 0 评论 -
MFC删除选中行List Control
if (m_list.GetSelectedCount() > 0) {POSITION pos= m_list.GetFirstSelectedItemPosition();while (pos){ int nSelected = m_list.GetNextSelectedItem(pos); //获取选中行的索引 m_list.DeleteItem(nSelected); //根据索引删除 pos = m_list.GetFirstSelectedItemP原创 2020-06-07 19:55:11 · 1086 阅读 · 0 评论 -
账号列表修改为已存在的账号时报错,加个判断,在前端提示
@desc API 统一返回状态码 /* 用户错误:20001-29999*/ USER_HAS_EXISTED(20005, “用户已存在”),没有合适的MySQL JDBC驱动 No suitable driver found for localhostMybatis不鼓励捕捉异常,但在某些特定场景下需要捕捉,这个时候通过try catch是捕捉不到的,mybatis有自己的处理方式,它把...原创 2020-01-16 10:09:39 · 1032 阅读 · 0 评论 -
修复账号列表中查询输入框缓存和修改账号状态会导致角色信息删除的问题
修改账号状态会导致角色信息删除的问题:SELECT * FROM background.manager_role; UPDATE background.manager_role SET role_name = ‘角色未启用1’ WHERE (role_id = ‘0’);点击了修改状态按钮切换,封号状态manager_user.status=1时候导致角色重置manager_role.role...原创 2020-01-16 10:05:20 · 293 阅读 · 0 评论 -
Java 进制转换 输出17进制
import java.util.Scanner;public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); while(input.hasNextInt()){ int num = inpu...原创 2020-01-07 17:02:31 · 524 阅读 · 0 评论 -
判断回文数、质数的最简单算法
public static boolean isHuiWenShu(int num) { int max=num; int min=0; while(max!=0) { int d=max%10; max=max/10; min=10*min+d; } return num==...原创 2020-01-07 16:58:36 · 507 阅读 · 0 评论 -
java se 求质数 最容易理解的算法
import java.util.Scanner;public class Main {public static void main(String[] args) {Scanner input = new Scanner(System.in);int flag = 0, temp = 0, count = 1;for (int a = 1; a <= 100; a++) {if...原创 2019-12-27 17:19:53 · 329 阅读 · 0 评论 -
springboot 入门 踩坑 jdbc 代码
<?xml version="1.0" encoding="UTF-8"?>4.0.0org.springframework.bootspring-boot-starter-parent2.2.2.RELEASE com.mxydemo0.0.1-SNAPSHOTdemoDemo project for Spring Boot<properties&g...原创 2019-12-25 19:27:17 · 233 阅读 · 0 评论 -
嵌入式系统 ARM异常中断
如何从异常中断返回?异常中断处理程序结构什么样?何为异常中断向量表?哪一种异常中断优先级最高?原创 2019-07-05 23:04:50 · 320 阅读 · 0 评论 -
linux 权限管理
su - rootuseradd tompasswd tomuseradd marypasswd marysu - tomcd homevi secret.txttrycp /home/mary#no<-exitusermod -G tom ,mary tomtrysu - tomcp secret.txt /home/marysu - marychmod...原创 2019-07-05 15:30:21 · 234 阅读 · 0 评论 -
linux 用户管理
用户和用户组管理目录1 组管理 21.1 新建组与系统组 21.2 更改组名和组ID 21.3 删除组 21.4 切换用户组 22 用户管理 22.1 新建用户定制参数 22.2 新建系统用户 32.3 修改用户相关备注信息 32.4 修改用户账户过期时间 32.5 锁定用户并解锁 32.6 更改用户主目录(家目录) 32.7 更改用户相关备注信息 32.8 查看用户...原创 2019-07-05 15:28:19 · 1192 阅读 · 0 评论 -
嵌入式系统 第二章
Hello world!原创 2019-07-05 22:06:56 · 490 阅读 · 0 评论 -
PL/SQL 查询150号员工的工资以及555号的员工姓与工资(员工号需运行时提示输入,若找不到则提示没有该员工)。
set serveroutput ondeclear vname %type; vsal %type; a integer; b integer;begin a:=&150; b:=&550; select firstname,salary into vname,vsal from employees where employee_id=a or employ...原创 2019-07-04 12:46:59 · 397 阅读 · 0 评论 -
PL/SQL 编写PL/SQL块,根据输入的员工号将该员工的工资增加600(禁止在每天8:00-12:00之外的时间进行增加、修改、删除操作)。
create or replaceTRIGGER trg_secure_empbefore INSERT OR UPDATE OR DELETEON employeesBEGIN IF TO_CHAR (SYSDATE, 'HH24:MI') NOT BETWEEN '08:00' AND '12:00' THEN RAISE_APPLICATION_ERROR(-200...原创 2019-07-04 12:55:31 · 1893 阅读 · 0 评论 -
PL/SQL 创建一个存储过程,以部门号为参数返回该部门的人数和平均工资(保留两位小数)。
CREATE OR REPLACE PROCEDURE proc_return_deptinfo(p_deptno employees.department_id%TYPE,p_avgsal OUT employees.salary%TYPE,p_count OUT NUMBER)ASBEGINSELECT avg(salary),count(*) INTO p_avgsal,p_c...原创 2019-07-04 12:57:10 · 10954 阅读 · 0 评论 -
linux解压方式
1、*.tar 用 tar –xvf 解压2、*.gz 用 gzip -d或者gunzip 解压3、*.tar.gz和*.tgz 用 tar –xzf 解压4、*.bz2 用 bzip2 -d或者用bunzip2 解压5、*.tar.bz2用tar –xjf 解压6、*.Z 用 uncompress 解压7、*.tar.Z 用tar –xZf 解压8、*.rar 用 unrar e解...原创 2019-12-27 17:28:59 · 289 阅读 · 0 评论 -
linux给多个用户发送邮件,多个收件人之间用空格隔开
给多个用户发送邮件,多个收件人之间用空格隔开 mail tom1 tom2 tom3 < file1.txt mail -s “test” tom1 tom2 tom3 < file1.txt原创 2019-12-27 17:29:15 · 4689 阅读 · 0 评论 -
linux shell脚本 #!/bin/bash#script_cp1#
#!/bin/bash #script_cp1 # echo -e "input a file name in the current directory:\c" read FILE echo ${FILE:?"you must input a file name,please try again"}cp $FILE ${FILE}_bak vi $FI...原创 2019-07-05 13:28:09 · 282 阅读 · 0 评论 -
linux shell脚本 #echo
举例echo -n “hi”echo -e “hi\c”echo “a\tb”echo -e “a\tb”echo -e “a\nb”vi fileecho "input a number:" #echo -e "input a number:_\b\c" read a echo "$a" 保存文件 chmod 700 f...原创 2019-07-05 13:38:05 · 280 阅读 · 1 评论 -
linux shell脚本进阶
···@shell#!/bin/bash#largest_testechoecho -e “please input three numbers and I will show you the largest of them:\c”read N1 N2 N3echo $N1 $N2 N3iftest“N3if test “N3iftest“N1” -ge “N2”th...原创 2019-07-05 13:44:44 · 293 阅读 · 0 评论