[Solved] Solve fatal: unable to connect to github.com

Solve fatal: unable to connect to github.com and subsequent problems Command: git clone git://github.com/xxxx Error message: fatal: unable to connect to github.com: github.com[0: your IP]: errno=Operation timed out reason: Need to use https to read data Workaround: Enter the command git config –global url.”https://github.com”.insteadOf git://github.com If an error occurs in git clone again: fatal: unable […]

[Solved] Java upload parsing excel under linux reports error java.io.FileNotFoundException:xxx.xls(No such file or directory)

Original link: https://www.longkui.site/error/linuxjavaexceljava-io/4523/ 0. Background A simple method of uploading and parsing excel files, it can be imported and parsed normally on windows, but when uploading excel on linux, an error of “No such file or directory” will be reported. At first I thought it was a problem with the permissions of the linux server, […]

[Solved] Error exporting execl pdf

1. Solve the Chinese garbled characters in response.setHeade() solve URLEncoder.encode(file_name, “UTF-8”)) response.setHeader(“content-disposition”, “attachment;filename=” + URLEncoder.encode(file_name,”UTF-8″)); Plus code: URLEncoder.encode(file_name, “UTF-8”)) decoding: URLDecoder.decode(file_name, “UTF-8”); 2.itextpdf output stream Java uses itext to generate pdf documents and output them directly to the HttpResponse stream for users to download. The difference from generating pdf files to files lies in the […]

[Solved] Using setup syntax sugar, eslint checks and reports errors

Vue uses setup syntactic sugar and then, eslint checks that you have not used it, defined it, etc. 1: First check your version of slint-plugin-vue 2: If your version is below 8.0 in the .eslintrc.js file: globals: {<!– –> defineProps: “readonly”, defineEmits: “readonly”, defineExpose: “readonly”, withDefaults: “readonly”, }, 3: If on 8.0 just in the […]

[Solved] Resolve OpenSSL added to return LNK2019 error when compiling in Visual Studio 2019

Article table of contents summary problem and solution Error LNK2019 Error LNK1104 Warning C4996 refer to Summary Encountered that OpenSSL was added to compile in Visual Studio 2019 and returned LNK2019 error, added the missing library file and solved the problem. Problems and Solutions Error LNK2019 Errors like the following are returned: Severity Code Description […]

[Solved] Pit encountered when integrating iFlytek speech synthesis Android SDK 20021 com.iflytek.cloud.a.c.c occur Error = Local engine error.(Error code: 20021)

loadLibrary msc error:java.lang.UnsatisfiedLinkError: dlopen failed: library “libmsc.so” not found It took a long time to solve this pit (probably because it was too bad), so I will record it here. **Background:** In order to realize the small function of robot voice broadcast, iFLYTEK’s speech synthesis Android SDK is integrated. **Problem:** After integrating according to the […]

[Solved] The idea Tomcat starts the project and reports an error Message: Content is not allowed in the preface, and other problems

Create a test project 1. Create a Maven project 2. Create a Maven subproject 3. Add web to sub-project 4. Parent pom.xml import package <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>5.1.9.RELEASE</version> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.5</version> </dependency> <dependency> <groupId>javax.servlet.jsp</groupId> <artifactId>jsp-api</artifactId> <version>2.2</version> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>jstl</artifactId> <version>1.2</version> </dependency> </dependencies> <build> <resources> <resource> <directory>src/main/java</directory> […]