The onChange callback of the antd component needs to be executed immediately to change the value and anti-shake to save interface overhead.

Article directory Ordinary use Use anti-shake to save money The page function is complex and requires value control The callback requires some code to be executed immediately, and some code to be executed with anti-shake delay. useRef useCallback summary Normal use When we use Antd’s input or select to search, the onChange callback will be […]

The local server transfers files to the remote server and executes the copy command

ChannelSftp sftpClient = JschSFTPUtils.getSftpClient(username, password, port number, ip); JschSFTPUtils.uploadFile(sftpClient, file.toString() This is the local file path, the directory of the remote server); StringBuffer sqlbuffers = new StringBuffer(); StringBuffer sqlbuffer = new StringBuffer(); sqlbuffer.append(“copy tazu.c_tazu_df_import”); sqlbuffer.append(” from ‘”); sqlbuffer.append(“/home/gpadmin/dianfei/”); sqlbuffer.append(file.getName()); sqlbuffer.append(“‘ WITH csv header delimiter ‘$’ NULL ”;”); //The $ symbol above is the delimiter in […]

Penetration testing—teach you step-by-step SQL injection (12)—SQLsever uses SA permissions to execute system commands–getshell

Penetration testing—teach you step-by-step SQL injection (10)—SQL injection expansion summaryhttp://t.csdnimg. cn/4mVVJ Penetration Testing—Teach you step-by-step SQL injection (11)—SQL injection expansion summary (SQLsever online shooting range actual combat)http://t.csdnimg.cn/5ma4G In this section we will discuss the permission issues during SQLserver injection—- What permissions does SQLserver have? First, let’s “refine” what permissions there are in SQL server: There […]

[DEBUG] An error occurred when SpringBoot2+Mybatis was started: java.lang.IllegalStateException: Failed to execute CommandLineRunner

Specific error information java.lang.IllegalStateException: Failed to execute CommandLineRunner at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:798) [spring-boot-2.5.0.jar:2.5.0] at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:779) [spring-boot-2.5.0.jar:2.5.0] at org.springframework.boot.SpringApplication.run(SpringApplication.java:344) [spring-boot-2.5.0.jar:2.5.0] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1336) [spring-boot-2.5.0.jar:2.5.0] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1325) [spring-boot-2.5.0.jar:2.5.0] at com.hzj.HXBlogApplication.main(HXBlogApplication.java:21) [classes/:na] Caused by: org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.executor.result.ResultMapException: Error attempting to get column ‘title’ from result set. Cause: java.lang.NumberFormatException: For input string: “SpringSecurity¦¥?¥?” at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:92) ~[mybatis-spring-2.0.5.jar:2.0.5] at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:440) ~[mybatis-spring-2.0.5.jar:2.0.5] at […]

How to use Flutter to develop tools that execute operating system shell commands

Introduction Flutter is a mobile application development framework developed by Google that allows developers to build high-performance, high-quality mobile experiences using a single code base. The Android terminal command line tool allows users to run Linux-like operating system commands on Android phones. The purpose of this article is to introduce how to develop an Android […]

Springboot uses CompletableFuture to execute threads asynchronously (with and without callbacks)

Table of Contents background accomplish 1. Asynchronous thread configuration class 2. Customized asynchronous exception unified processing class 3. Implement asynchronous calls (no callback-runAsync()) 4. Implement asynchronous calls (with callback-supplyAsync()) 5. Asynchronous execution error exception example Background There will always be situations in the project that require asynchronous execution to avoid wasting time and resources, which […]

Mybaits executes sql file

1. MyScriptRunner class for batch execution import org.apache.ibatis.jdbc.RuntimeSqlException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.BufferedReader; import java.io.PrintWriter; import java.io.Reader; import java.io.StringWriter; import java.sql.Connection; import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.sql.SQLException; import java.sql.SQLWarning; import java.sql.Statement; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * SQL executor class for batch execution of mysql * @author * @date October 10, 2023 */ public […]

Docker deploys xxl-job & SpringBoot integrates xxl-job to execute tasks

Overview XXL-JOB is a lightweight distributed task scheduling platform with the following characteristics: Scheduling module: Responsible for managing scheduling information, issuing scheduling requests, supporting visual and dynamic operations, monitoring scheduling results and logs, and supporting executor Failover Execution module: Responsible for receiving scheduling requests and executing task logic, supporting multiple ways to define executors High […]