摘要: public void fileUpload(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { req.setCharacterEncoding("UTF-8"); res 阅读全文
posted @ 2021-09-06 21:31 天机主神 阅读(87) 评论(0) 推荐(0)
摘要: try { URL url = new URL("https://www.baidu.com"); //想要读取的url地址 File fp = new File("D:/test.html"); OutputStream os = new FileOutputStream(fp); //建立文件输 阅读全文
posted @ 2021-08-19 22:36 天机主神 阅读(169) 评论(0) 推荐(0)
摘要: 1、创建序列 2、创建存储过程 create or replace procedure SEQ_A_ID_RESET(v_seqname varchar2) as n number(10); tsql varchar2(100); begin execute immediate 'select '| 阅读全文
posted @ 2021-08-18 22:58 天机主神 阅读(195) 评论(0) 推荐(0)
摘要: 1 //1.获取下载文件的路径 2 String filePath = "D:\\projects\\servlet-project\\servlet-response-download\\target\\classes\\img\\111.jpg"; 5 //2.获取文件名 6 String fi 阅读全文
posted @ 2021-07-17 12:15 天机主神 阅读(46) 评论(0) 推荐(0)
摘要: ###主库配置 1.my.ini-mysqld追加 server-id=243 #一般为ip后三位 log-bin=mysql-bin #表示启用binlog功能,并指定二进制日志的存储目录 binlog-do-db=databaseName #binlog日志记录指定库的更新 2.重启mysql服 阅读全文
posted @ 2021-02-19 15:26 天机主神 阅读(75) 评论(0) 推荐(0)
摘要: DELIMITER $$drop procedure if exists tableInsert; CREATE PROCEDURE tableInsert()BEGIN declare i INT; declare uu_id VARCHAR(64); SET i = 0; while i<10 阅读全文
posted @ 2020-11-15 19:34 天机主神 阅读(63) 评论(0) 推荐(0)
摘要: 1.yum -y install wget 2.mv ./CentOS-Base.repo ./CentOS-Base.repo.bak 3.wget http://mirrors.163.com/.help/CentOS7-Base-163.repo 4.wget http://mirrors.a 阅读全文
posted @ 2019-06-03 01:37 天机主神 阅读(94) 评论(0) 推荐(0)