Yum to install the package and prompt the error “error: rpmdb open failed”.
Solution:
rpm --rebuilddb
Yum to install the package and prompt the error “error: rpmdb open failed”.
Solution:
rpm --rebuilddb
Ngrok 1.7 build error
The ngrok server has been rebuilt recently. Refer to: https://zhuanlan.zhihu.com/p/33794707
Since the version of ngrok V1 has not been maintained for a long time, after compilation, the server encountered an error at startup: Remote Error: TLS: bad certificate

after searching the Internet for a long time, some people said it was the problem of the golang version, After reducing the version of golang from 1.17 to 1.9, it is still not solved. I accidentally found the log prompt x509 on the client: certificate is valid for XXX, not ngrokd.ngrok.com. I found that it may be the problem of the certificate domain name.

After searching the source code, I found that the default domain name address is ngrokd.ngrok.com, so I found a solution,
find the client source code and change the configuration. The file is:
vim ./src/ngrok/client/model.go
The defaultserveraddr in line 24 is changed to its own server domain name and port

When recompiling the self signed certificate, the domain name of the certificate must exactly match the default address here, otherwise an error will be reported.
Background:
In order to add jest to the existing projects, many pits have been stepped on. The pits are listed as follows, the adopted solutions, new problems and final treatment methods.
First of all, my project is vue2, and the Babel of package.json is @ Babel, so the following problems will occur. The handling method of this version is to use the CLI plug-in to start jest instead of the Babel version; If it is Babel version, the normal NPM install – G jest configuration script is enough, which will be described later; The jest installation of vue3 is simpler and is not covered in this article.
Pit 1: it runs directly in Vue project and reports an error
requires Babel "^7.0.0-0", but was loaded with "6.26.3". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babe
Tried:
npm install --save-dev "babel-core@^7.0.0-bridge.0"
Various @Babel or Babel are also installed
But it didn’t work. It is speculated that the conflict is caused by jest’s own package.
Pit 2: then upgrade jest to the latest version, 27 +. report errors
TypeError: Cannot read property 'instrument' of undefined
What should I do?It seems that we can’t find a good method on the Internet. Then go to GitHub and see the projects that @ Babel + vue2 + jest can run. Here are the minimum installation items.
Solution:
npm install @vue/test-utils -D
npm install @vue/cli-service -D
npm install @vue/cli-plugin-unit-jest -D
Jest.conf.js is placed in the root directory, or in the tests directory, or whatever you want
module.exports = {
preset: '@vue/cli-plugin-unit-jest',
collectCoverage: false
}
Package.json configuration script and configuration file directory
"scripts": {
"test:unit": "vue-cli-service test:unit --config ./tests/jest.conf.js",
}
If you report an error:

solution: description of the error information. The paths do not match and the test file cannot be found, so change the directory to tests/unit.
Error reporting:

solution: according to the error reporting information, Vue template compiler and Vue need to be the same version, so install the Vue version corresponding to Vue template compiler. My is NPM install Vue template- [email protected]
So far, the unit test is running, and I’m always excited

supplement:
My project can run without changing the. Babelrc file

My package.json:

Here, for the installation and configuration of the Babel version of jest, first look at the package. JSON

![]()
Simply start a project

install jest
Global: NPM install – G jest or local: NPM install – D jest
specify the test script in package.json:

run the script to test.
Finally, for TS, you need to install additional packages and configure additional. If you can’t find it on the Internet, go to GitHub.
1. When using grafana, the error panel plugin not found grafana pie chart panel is encountered. The grafana pie chart panel is not installed. It can be displayed normally after installation

2. Install the plug-in, download and install it, put it in the plug-in directory/var/lib/grafana/plugins, and restart grafana.
wget https://grafana.com/api/plugins/grafana-piechart-panel/versions/latest/download -O grafana-piechart-panel.zip
unzip grafana-piechart-panel.zip
mv grafana-piechart-panel grafana_data/plugins/
chown -R 472:472 *
docker restart grafana
3. Check whether it is normal after restart

1. Problem description
An error is reported when executing the unit test
"C:\Program Files\Java\jdk-11.0.7\bin\java.exe" -ea -Didea.test.cyclic.buffer.size=1048576 "-javaagent:E:\IDEA\IntelliJ IDEA 2020.1.2\lib\idea_rt.jar=1590:E:\IDEA\IntelliJ IDEA 2020.1.2\bin" -Dfile.encoding=UTF-8 -classpath "E:\IDEA\IntelliJ IDEA 2020.1.2\lib\idea_rt.jar;C:\Users\司超龙\.m2\repository\org\junit\platform\junit-platform-launcher\1.5.2\junit-platform-launcher-1.5.2.jar;C:\Users\司超龙\.m2\repository\org\apiguardian\apiguardian-api\1.1.0\apiguardian-api-1.1.0.jar;C:\Users\司超龙\.m2\repository\org\junit\platform\junit-platform-engine\1.5.2\junit-platform-engine-1.5.2.jar;C:\Users\司超龙\.m2\repository\org\opentest4j\opentest4j\1.2.0\opentest4j-1.2.0.jar;C:\Users\司超龙\.m2\repository\org\junit\platform\junit-platform-commons\1.5.2\junit-platform-commons-1.5.2.jar;E:\IDEA\IntelliJ IDEA 2020.1.2\plugins\junit\lib\junit5-rt.jar;E:\IDEA\IntelliJ IDEA 2020.1.2\plugins\junit\lib\junit-rt.jar;E:\项目\工单维修\repire-work-order\third-party\target\test-classes;E:\项目\工单维修\repire-work-order\third-party\target\classes;E:\项目\工单维修\repire-work-order\third-party\lib\masmgc.sdk.mms-0.0.1-SNAPSHOT.jar;E:\项目\工单维修\repire-work-order\third-party\lib\masmgc.sdk.sms-0.0.1-SNAPSHOT.jar;E:\Maven\MavenLocalRepository\maven_repository\com\tencentcloudapi\tencentcloud-sdk-java\3.1.297\tencentcloud-sdk-java-3.1.297.jar;E:\Maven\MavenLocalRepository\maven_repository\commons-logging\commons-logging\1.2\commons-logging-1.2.jar;E:\Maven\MavenLocalRepository\maven_repository\com\squareup\okio\okio\1.12.0\okio-1.12.0.jar;E:\Maven\MavenLocalRepository\maven_repository\com\squareup\okhttp\okhttp\2.7.5\okhttp-2.7.5.jar;E:\Maven\MavenLocalRepository\maven_repository\com\google\code\gson\gson\2.8.6\gson-2.8.6.jar;E:\Maven\MavenLocalRepository\maven_repository\javax\xml\bind\jaxb-api\2.3.1\jaxb-api-2.3.1.jar;E:\Maven\MavenLocalRepository\maven_repository\javax\activation\javax.activation-api\1.2.0\javax.activation-api-1.2.0.jar;E:\Maven\MavenLocalRepository\maven_repository\com\squareup\okhttp\logging-interceptor\2.7.5\logging-interceptor-2.7.5.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\boot\spring-boot-starter-data-redis\2.2.6.RELEASE\spring-boot-starter-data-redis-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\boot\spring-boot-starter\2.2.6.RELEASE\spring-boot-starter-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\boot\spring-boot\2.2.6.RELEASE\spring-boot-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\boot\spring-boot-autoconfigure\2.2.6.RELEASE\spring-boot-autoconfigure-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\boot\spring-boot-starter-logging\2.2.6.RELEASE\spring-boot-starter-logging-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;E:\Maven\MavenLocalRepository\maven_repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;E:\Maven\MavenLocalRepository\maven_repository\org\apache\logging\log4j\log4j-to-slf4j\2.12.1\log4j-to-slf4j-2.12.1.jar;E:\Maven\MavenLocalRepository\maven_repository\org\apache\logging\log4j\log4j-api\2.12.1\log4j-api-2.12.1.jar;E:\Maven\MavenLocalRepository\maven_repository\org\slf4j\jul-to-slf4j\1.7.30\jul-to-slf4j-1.7.30.jar;E:\Maven\MavenLocalRepository\maven_repository\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;E:\Maven\MavenLocalRepository\maven_repository\org\yaml\snakeyaml\1.25\snakeyaml-1.25.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\data\spring-data-redis\2.2.6.RELEASE\spring-data-redis-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\data\spring-data-keyvalue\2.2.6.RELEASE\spring-data-keyvalue-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\data\spring-data-commons\2.2.6.RELEASE\spring-data-commons-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\spring-tx\5.2.5.RELEASE\spring-tx-5.2.5.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\spring-oxm\5.2.5.RELEASE\spring-oxm-5.2.5.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\spring-aop\5.2.5.RELEASE\spring-aop-5.2.5.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\spring-context-support\5.2.5.RELEASE\spring-context-support-5.2.5.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\redis\clients\jedis\3.1.0\jedis-3.1.0.jar;E:\Maven\MavenLocalRepository\maven_repository\org\slf4j\slf4j-api\1.7.30\slf4j-api-1.7.30.jar;E:\Maven\MavenLocalRepository\maven_repository\org\apache\commons\commons-pool2\2.7.0\commons-pool2-2.7.0.jar;E:\Maven\MavenLocalRepository\maven_repository\org\apache\commons\commons-lang3\3.3.2\commons-lang3-3.3.2.jar;E:\Maven\MavenLocalRepository\maven_repository\commons-io\commons-io\1.3.2\commons-io-1.3.2.jar;E:\Maven\MavenLocalRepository\maven_repository\commons-net\commons-net\3.3\commons-net-3.3.jar;E:\Maven\MavenLocalRepository\maven_repository\commons-fileupload\commons-fileupload\1.3.1\commons-fileupload-1.3.1.jar;E:\Maven\MavenLocalRepository\maven_repository\com\alibaba\cloud\spring-cloud-starter-alicloud-oss\2.1.0.RELEASE\spring-cloud-starter-alicloud-oss-2.1.0.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\com\alibaba\cloud\spring-cloud-alicloud-oss\2.1.0.RELEASE\spring-cloud-alicloud-oss-2.1.0.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\com\alibaba\cloud\spring-cloud-alicloud-context\2.1.0.RELEASE\spring-cloud-alicloud-context-2.1.0.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\com\alibaba\cloud\alicloud-context\1.0.5\alicloud-context-1.0.5.jar;E:\Maven\MavenLocalRepository\maven_repository\com\aliyun\oss\aliyun-sdk-oss\3.1.0\aliyun-sdk-oss-3.1.0.jar;E:\Maven\MavenLocalRepository\maven_repository\org\apache\httpcomponents\httpclient\4.5.12\httpclient-4.5.12.jar;E:\Maven\MavenLocalRepository\maven_repository\org\apache\httpcomponents\httpcore\4.4.13\httpcore-4.4.13.jar;E:\Maven\MavenLocalRepository\maven_repository\org\jdom\jdom\1.1\jdom-1.1.jar;E:\Maven\MavenLocalRepository\maven_repository\com\sun\jersey\jersey-json\1.9\jersey-json-1.9.jar;E:\Maven\MavenLocalRepository\maven_repository\org\codehaus\jettison\jettison\1.1\jettison-1.1.jar;E:\Maven\MavenLocalRepository\maven_repository\stax\stax-api\1.0.1\stax-api-1.0.1.jar;E:\Maven\MavenLocalRepository\maven_repository\com\sun\xml\bind\jaxb-impl\2.2.3-1\jaxb-impl-2.2.3-1.jar;E:\Maven\MavenLocalRepository\maven_repository\org\codehaus\jackson\jackson-core-asl\1.8.3\jackson-core-asl-1.8.3.jar;E:\Maven\MavenLocalRepository\maven_repository\org\codehaus\jackson\jackson-mapper-asl\1.8.3\jackson-mapper-asl-1.8.3.jar;E:\Maven\MavenLocalRepository\maven_repository\org\codehaus\jackson\jackson-jaxrs\1.8.3\jackson-jaxrs-1.8.3.jar;E:\Maven\MavenLocalRepository\maven_repository\org\codehaus\jackson\jackson-xc\1.8.3\jackson-xc-1.8.3.jar;E:\Maven\MavenLocalRepository\maven_repository\com\sun\jersey\jersey-core\1.9\jersey-core-1.9.jar;E:\Maven\MavenLocalRepository\maven_repository\com\aliyun\aliyun-java-sdk-core\3.4.0\aliyun-java-sdk-core-3.4.0.jar;E:\Maven\MavenLocalRepository\maven_repository\org\json\json\20170516\json-20170516.jar;E:\Maven\MavenLocalRepository\maven_repository\com\aliyun\aliyun-java-sdk-ram\3.0.0\aliyun-java-sdk-ram-3.0.0.jar;E:\Maven\MavenLocalRepository\maven_repository\com\aliyun\aliyun-java-sdk-sts\3.0.0\aliyun-java-sdk-sts-3.0.0.jar;E:\Maven\MavenLocalRepository\maven_repository\com\aliyun\aliyun-java-sdk-ecs\4.2.0\aliyun-java-sdk-ecs-4.2.0.jar;E:\Maven\MavenLocalRepository\maven_repository\com\alibaba\cloud\spring-cloud-starter-alibaba-nacos-discovery\2.2.2.RELEASE\spring-cloud-starter-alibaba-nacos-discovery-2.2.2.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\com\alibaba\nacos\nacos-client\1.3.2\nacos-client-1.3.2.jar;E:\Maven\MavenLocalRepository\maven_repository\com\alibaba\nacos\nacos-common\1.3.2\nacos-common-1.3.2.jar;E:\Maven\MavenLocalRepository\maven_repository\org\apache\httpcomponents\httpasyncclient\4.1.4\httpasyncclient-4.1.4.jar;E:\Maven\MavenLocalRepository\maven_repository\org\apache\httpcomponents\httpcore-nio\4.4.13\httpcore-nio-4.4.13.jar;E:\Maven\MavenLocalRepository\maven_repository\com\alibaba\nacos\nacos-api\1.3.2\nacos-api-1.3.2.jar;E:\Maven\MavenLocalRepository\maven_repository\com\google\guava\guava\24.1.1-jre\guava-24.1.1-jre.jar;E:\Maven\MavenLocalRepository\maven_repository\com\google\code\findbugs\jsr305\1.3.9\jsr305-1.3.9.jar;E:\Maven\MavenLocalRepository\maven_repository\org\checkerframework\checker-compat-qual\2.0.0\checker-compat-qual-2.0.0.jar;E:\Maven\MavenLocalRepository\maven_repository\com\google\errorprone\error_prone_annotations\2.1.3\error_prone_annotations-2.1.3.jar;E:\Maven\MavenLocalRepository\maven_repository\com\google\j2objc\j2objc-annotations\1.1\j2objc-annotations-1.1.jar;E:\Maven\MavenLocalRepository\maven_repository\org\codehaus\mojo\animal-sniffer-annotations\1.14\animal-sniffer-annotations-1.14.jar;E:\Maven\MavenLocalRepository\maven_repository\commons-codec\commons-codec\1.13\commons-codec-1.13.jar;E:\Maven\MavenLocalRepository\maven_repository\com\fasterxml\jackson\core\jackson-core\2.10.3\jackson-core-2.10.3.jar;E:\Maven\MavenLocalRepository\maven_repository\com\fasterxml\jackson\core\jackson-databind\2.10.3\jackson-databind-2.10.3.jar;E:\Maven\MavenLocalRepository\maven_repository\com\fasterxml\jackson\core\jackson-annotations\2.10.3\jackson-annotations-2.10.3.jar;E:\Maven\MavenLocalRepository\maven_repository\io\prometheus\simpleclient\0.5.0\simpleclient-0.5.0.jar;E:\Maven\MavenLocalRepository\maven_repository\com\alibaba\spring\spring-context-support\1.0.9\spring-context-support-1.0.9.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\cloud\spring-cloud-commons\2.2.5.RELEASE\spring-cloud-commons-2.2.5.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\security\spring-security-crypto\5.2.2.RELEASE\spring-security-crypto-5.2.2.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\cloud\spring-cloud-context\2.2.5.RELEASE\spring-cloud-context-2.2.5.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\cloud\spring-cloud-starter-netflix-ribbon\2.2.5.RELEASE\spring-cloud-starter-netflix-ribbon-2.2.5.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\cloud\spring-cloud-netflix-ribbon\2.2.5.RELEASE\spring-cloud-netflix-ribbon-2.2.5.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\cloud\spring-cloud-netflix-archaius\2.2.5.RELEASE\spring-cloud-netflix-archaius-2.2.5.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\cloud\spring-cloud-starter-netflix-archaius\2.2.5.RELEASE\spring-cloud-starter-netflix-archaius-2.2.5.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\commons-configuration\commons-configuration\1.8\commons-configuration-1.8.jar;E:\Maven\MavenLocalRepository\maven_repository\com\netflix\ribbon\ribbon\2.3.0\ribbon-2.3.0.jar;E:\Maven\MavenLocalRepository\maven_repository\com\netflix\ribbon\ribbon-transport\2.3.0\ribbon-transport-2.3.0.jar;E:\Maven\MavenLocalRepository\maven_repository\io\reactivex\rxnetty-contexts\0.4.9\rxnetty-contexts-0.4.9.jar;E:\Maven\MavenLocalRepository\maven_repository\io\reactivex\rxnetty-servo\0.4.9\rxnetty-servo-0.4.9.jar;E:\Maven\MavenLocalRepository\maven_repository\javax\inject\javax.inject\1\javax.inject-1.jar;E:\Maven\MavenLocalRepository\maven_repository\io\reactivex\rxnetty\0.4.9\rxnetty-0.4.9.jar;E:\Maven\MavenLocalRepository\maven_repository\com\netflix\ribbon\ribbon-core\2.3.0\ribbon-core-2.3.0.jar;E:\Maven\MavenLocalRepository\maven_repository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;E:\Maven\MavenLocalRepository\maven_repository\com\netflix\ribbon\ribbon-httpclient\2.3.0\ribbon-httpclient-2.3.0.jar;E:\Maven\MavenLocalRepository\maven_repository\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar;E:\Maven\MavenLocalRepository\maven_repository\com\sun\jersey\jersey-client\1.19.1\jersey-client-1.19.1.jar;E:\Maven\MavenLocalRepository\maven_repository\com\sun\jersey\contribs\jersey-apache-client4\1.19.1\jersey-apache-client4-1.19.1.jar;E:\Maven\MavenLocalRepository\maven_repository\com\netflix\servo\servo-core\0.10.1\servo-core-0.10.1.jar;E:\Maven\MavenLocalRepository\maven_repository\com\netflix\servo\servo-internal\0.10.1\servo-internal-0.10.1.jar;E:\Maven\MavenLocalRepository\maven_repository\com\netflix\netflix-commons\netflix-commons-util\0.1.1\netflix-commons-util-0.1.1.jar;E:\Maven\MavenLocalRepository\maven_repository\com\netflix\ribbon\ribbon-loadbalancer\2.3.0\ribbon-loadbalancer-2.3.0.jar;E:\Maven\MavenLocalRepository\maven_repository\com\netflix\netflix-commons\netflix-statistics\0.1.1\netflix-statistics-0.1.1.jar;E:\Maven\MavenLocalRepository\maven_repository\io\reactivex\rxjava\1.3.8\rxjava-1.3.8.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\boot\spring-boot-starter-web\2.2.6.RELEASE\spring-boot-starter-web-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\boot\spring-boot-starter-json\2.2.6.RELEASE\spring-boot-starter-json-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.10.3\jackson-datatype-jdk8-2.10.3.jar;E:\Maven\MavenLocalRepository\maven_repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.10.3\jackson-datatype-jsr310-2.10.3.jar;E:\Maven\MavenLocalRepository\maven_repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.10.3\jackson-module-parameter-names-2.10.3.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\boot\spring-boot-starter-tomcat\2.2.6.RELEASE\spring-boot-starter-tomcat-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\apache\tomcat\embed\tomcat-embed-core\9.0.33\tomcat-embed-core-9.0.33.jar;E:\Maven\MavenLocalRepository\maven_repository\org\apache\tomcat\embed\tomcat-embed-el\9.0.33\tomcat-embed-el-9.0.33.jar;E:\Maven\MavenLocalRepository\maven_repository\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.33\tomcat-embed-websocket-9.0.33.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\boot\spring-boot-starter-validation\2.2.6.RELEASE\spring-boot-starter-validation-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\jakarta\validation\jakarta.validation-api\2.0.2\jakarta.validation-api-2.0.2.jar;E:\Maven\MavenLocalRepository\maven_repository\org\hibernate\validator\hibernate-validator\6.0.18.Final\hibernate-validator-6.0.18.Final.jar;E:\Maven\MavenLocalRepository\maven_repository\org\jboss\logging\jboss-logging\3.4.1.Final\jboss-logging-3.4.1.Final.jar;E:\Maven\MavenLocalRepository\maven_repository\com\fasterxml\classmate\1.5.1\classmate-1.5.1.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\spring-web\5.2.5.RELEASE\spring-web-5.2.5.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\spring-beans\5.2.5.RELEASE\spring-beans-5.2.5.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\spring-webmvc\5.2.5.RELEASE\spring-webmvc-5.2.5.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\spring-context\5.2.5.RELEASE\spring-context-5.2.5.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\spring-expression\5.2.5.RELEASE\spring-expression-5.2.5.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\cloud\spring-cloud-starter-openfeign\2.2.6.RELEASE\spring-cloud-starter-openfeign-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\cloud\spring-cloud-starter\2.2.6.RELEASE\spring-cloud-starter-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\security\spring-security-rsa\1.0.9.RELEASE\spring-security-rsa-1.0.9.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\bouncycastle\bcpkix-jdk15on\1.64\bcpkix-jdk15on-1.64.jar;E:\Maven\MavenLocalRepository\maven_repository\org\bouncycastle\bcprov-jdk15on\1.64\bcprov-jdk15on-1.64.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\cloud\spring-cloud-openfeign-core\2.2.6.RELEASE\spring-cloud-openfeign-core-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\boot\spring-boot-starter-aop\2.2.6.RELEASE\spring-boot-starter-aop-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\aspectj\aspectjweaver\1.9.5\aspectjweaver-1.9.5.jar;E:\Maven\MavenLocalRepository\maven_repository\io\github\openfeign\form\feign-form-spring\3.8.0\feign-form-spring-3.8.0.jar;E:\Maven\MavenLocalRepository\maven_repository\io\github\openfeign\form\feign-form\3.8.0\feign-form-3.8.0.jar;E:\Maven\MavenLocalRepository\maven_repository\io\github\openfeign\feign-core\10.10.1\feign-core-10.10.1.jar;E:\Maven\MavenLocalRepository\maven_repository\io\github\openfeign\feign-slf4j\10.10.1\feign-slf4j-10.10.1.jar;E:\Maven\MavenLocalRepository\maven_repository\io\github\openfeign\feign-hystrix\10.10.1\feign-hystrix-10.10.1.jar;E:\Maven\MavenLocalRepository\maven_repository\com\netflix\archaius\archaius-core\0.7.6\archaius-core-0.7.6.jar;E:\Maven\MavenLocalRepository\maven_repository\com\netflix\hystrix\hystrix-core\1.5.18\hystrix-core-1.5.18.jar;E:\Maven\MavenLocalRepository\maven_repository\org\hdrhistogram\HdrHistogram\2.1.9\HdrHistogram-2.1.9.jar;E:\Maven\MavenLocalRepository\maven_repository\org\projectlombok\lombok\1.18.12\lombok-1.18.12.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\boot\spring-boot-starter-test\2.2.6.RELEASE\spring-boot-starter-test-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\boot\spring-boot-test\2.2.6.RELEASE\spring-boot-test-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\boot\spring-boot-test-autoconfigure\2.2.6.RELEASE\spring-boot-test-autoconfigure-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\com\jayway\jsonpath\json-path\2.4.0\json-path-2.4.0.jar;E:\Maven\MavenLocalRepository\maven_repository\net\minidev\json-smart\2.3\json-smart-2.3.jar;E:\Maven\MavenLocalRepository\maven_repository\net\minidev\accessors-smart\1.2\accessors-smart-1.2.jar;E:\Maven\MavenLocalRepository\maven_repository\org\ow2\asm\asm\5.0.4\asm-5.0.4.jar;E:\Maven\MavenLocalRepository\maven_repository\jakarta\xml\bind\jakarta.xml.bind-api\2.3.3\jakarta.xml.bind-api-2.3.3.jar;E:\Maven\MavenLocalRepository\maven_repository\jakarta\activation\jakarta.activation-api\1.2.2\jakarta.activation-api-1.2.2.jar;E:\Maven\MavenLocalRepository\maven_repository\org\junit\jupiter\junit-jupiter\5.5.2\junit-jupiter-5.5.2.jar;E:\Maven\MavenLocalRepository\maven_repository\org\junit\jupiter\junit-jupiter-api\5.5.2\junit-jupiter-api-5.5.2.jar;E:\Maven\MavenLocalRepository\maven_repository\org\opentest4j\opentest4j\1.2.0\opentest4j-1.2.0.jar;E:\Maven\MavenLocalRepository\maven_repository\org\junit\platform\junit-platform-commons\1.5.2\junit-platform-commons-1.5.2.jar;E:\Maven\MavenLocalRepository\maven_repository\org\junit\jupiter\junit-jupiter-params\5.5.2\junit-jupiter-params-5.5.2.jar;E:\Maven\MavenLocalRepository\maven_repository\org\junit\jupiter\junit-jupiter-engine\5.5.2\junit-jupiter-engine-5.5.2.jar;E:\Maven\MavenLocalRepository\maven_repository\org\junit\vintage\junit-vintage-engine\5.5.2\junit-vintage-engine-5.5.2.jar;E:\Maven\MavenLocalRepository\maven_repository\org\apiguardian\apiguardian-api\1.1.0\apiguardian-api-1.1.0.jar;E:\Maven\MavenLocalRepository\maven_repository\org\junit\platform\junit-platform-engine\1.5.2\junit-platform-engine-1.5.2.jar;E:\Maven\MavenLocalRepository\maven_repository\junit\junit\4.12\junit-4.12.jar;E:\Maven\MavenLocalRepository\maven_repository\org\mockito\mockito-junit-jupiter\3.1.0\mockito-junit-jupiter-3.1.0.jar;E:\Maven\MavenLocalRepository\maven_repository\org\assertj\assertj-core\3.13.2\assertj-core-3.13.2.jar;E:\Maven\MavenLocalRepository\maven_repository\org\hamcrest\hamcrest\2.1\hamcrest-2.1.jar;E:\Maven\MavenLocalRepository\maven_repository\org\mockito\mockito-core\3.1.0\mockito-core-3.1.0.jar;E:\Maven\MavenLocalRepository\maven_repository\net\bytebuddy\byte-buddy\1.10.8\byte-buddy-1.10.8.jar;E:\Maven\MavenLocalRepository\maven_repository\net\bytebuddy\byte-buddy-agent\1.10.8\byte-buddy-agent-1.10.8.jar;E:\Maven\MavenLocalRepository\maven_repository\org\objenesis\objenesis\2.6\objenesis-2.6.jar;E:\Maven\MavenLocalRepository\maven_repository\org\skyscreamer\jsonassert\1.5.0\jsonassert-1.5.0.jar;E:\Maven\MavenLocalRepository\maven_repository\com\vaadin\external\google\android-json\0.0.20131108.vaadin1\android-json-0.0.20131108.vaadin1.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\spring-core\5.2.5.RELEASE\spring-core-5.2.5.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\spring-jcl\5.2.5.RELEASE\spring-jcl-5.2.5.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\spring-test\5.2.5.RELEASE\spring-test-5.2.5.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\xmlunit\xmlunit-core\2.6.4\xmlunit-core-2.6.4.jar" com.intellij.rt.junit.JUnitStarter -ideVersion5 -junit5 henu.soft.xiaosi.thirdparty.ThirdPartyApplicationTests,test1
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/E:/%e9%a1%b9%e7%9b%ae/%e5%b7%a5%e5%8d%95%e7%bb%b4%e4%bf%ae/repire-work-order/third-party/lib/masmgc.sdk.sms-0.0.1-SNAPSHOT.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/E:/Maven/MavenLocalRepository/maven_repository/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
Test ignored.
java.lang.IllegalStateException: Could not load TestContextBootstrapper [null]. Specify @BootstrapWith's 'value' attribute or make the default bootstrapper class available.
at org.springframework.test.context.BootstrapUtils.resolveTestContextBootstrapper(BootstrapUtils.java:144)
at org.springframework.test.context.TestContextManager.<init>(TestContextManager.java:122)
at org.junit.jupiter.engine.execution.ExtensionValuesStore.lambda$getOrComputeIfAbsent$0(ExtensionValuesStore.java:81)
at org.junit.jupiter.engine.execution.ExtensionValuesStore$MemoizingSupplier.get(ExtensionValuesStore.java:182)
at org.junit.jupiter.engine.execution.ExtensionValuesStore.getOrComputeIfAbsent(ExtensionValuesStore.java:84)
at org.junit.jupiter.engine.execution.ExtensionValuesStore.getOrComputeIfAbsent(ExtensionValuesStore.java:88)
at org.junit.jupiter.engine.execution.NamespaceAwareStore.getOrComputeIfAbsent(NamespaceAwareStore.java:61)
at org.springframework.test.context.junit.jupiter.SpringExtension.getTestContextManager(SpringExtension.java:213)
at org.springframework.test.context.junit.jupiter.SpringExtension.beforeAll(SpringExtension.java:77)
at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeBeforeAllCallbacks$7(ClassBasedTestDescriptor.java:355)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.invokeBeforeAllCallbacks(ClassBasedTestDescriptor.java:355)
at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.before(ClassBasedTestDescriptor.java:189)
at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.before(ClassBasedTestDescriptor.java:77)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:132)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1540)
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:229)
at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$6(DefaultLauncher.java:197)
at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:211)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:191)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:128)
at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:69)
at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33)
at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:230)
at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:58)
Suppressed: java.lang.IllegalStateException: Could not load TestContextBootstrapper [null]. Specify @BootstrapWith's 'value' attribute or make the default bootstrapper class available.
at org.springframework.test.context.BootstrapUtils.resolveTestContextBootstrapper(BootstrapUtils.java:144)
at org.springframework.test.context.TestContextManager.<init>(TestContextManager.java:122)
at org.junit.jupiter.engine.execution.ExtensionValuesStore.lambda$getOrComputeIfAbsent$0(ExtensionValuesStore.java:81)
at org.junit.jupiter.engine.execution.ExtensionValuesStore$MemoizingSupplier.get(ExtensionValuesStore.java:182)
at org.junit.jupiter.engine.execution.ExtensionValuesStore.remove(ExtensionValuesStore.java:98)
at org.junit.jupiter.engine.execution.NamespaceAwareStore.remove(NamespaceAwareStore.java:73)
at org.springframework.test.context.junit.jupiter.SpringExtension.afterAll(SpringExtension.java:89)
at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeAfterAllCallbacks$13(ClassBasedTestDescriptor.java:421)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeAfterAllCallbacks$14(ClassBasedTestDescriptor.java:421)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1540)
at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.invokeAfterAllCallbacks(ClassBasedTestDescriptor.java:421)
at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.after(ClassBasedTestDescriptor.java:213)
at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.after(ClassBasedTestDescriptor.java:77)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:145)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:145)
... 27 more
Caused by: java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotatedElementUtils.findAllMergedAnnotations(Ljava/lang/reflect/AnnotatedElement;Ljava/lang/Class;)Ljava/util/Set;
at org.springframework.test.context.BootstrapUtils.resolveExplicitTestContextBootstrapper(BootstrapUtils.java:152)
at org.springframework.test.context.BootstrapUtils.resolveTestContextBootstrapper(BootstrapUtils.java:127)
... 43 more
Caused by: java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotatedElementUtils.findAllMergedAnnotations(Ljava/lang/reflect/AnnotatedElement;Ljava/lang/Class;)Ljava/util/Set;
at org.springframework.test.context.BootstrapUtils.resolveExplicitTestContextBootstrapper(BootstrapUtils.java:152)
at org.springframework.test.context.BootstrapUtils.resolveTestContextBootstrapper(BootstrapUtils.java:127)
... 43 more
Process finished with exit code -1
When searching the reason, you know that it should be a dependency conflict and start checking the dependency
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>henu.soft.xiaosi</groupId>
<artifactId>third-party</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>third-party</name>
<description>Third party service</description>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.6.RELEASE</version>
</parent>
<properties>
<java.version>1.8</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<commons-lang3.version>3.3.2</commons-lang3.version>
<commons-io.version>1.3.2</commons-io.version>
<commons-net.version>3.3</commons-net.version>
<commons-fileupload.version>1.3.1</commons-fileupload.version>
</properties>
<dependencies>
<!-- Tencent Cloud SMS Service-->
<!-- Tencent Cloud Java SDK dependency -->
<dependency>
<groupId>com.tencentcloudapi</groupId>
<artifactId>tencentcloud-sdk-java</artifactId>
<version>3.1.297</version>
</dependency>
<!-- redis-->
<!-- <dependency>-->
<!-- <groupId>org.springframework.boot</groupId>-->
<!-- <artifactId>spring-boot-starter-data-redis</artifactId>-->
<!-- </dependency>-->
<!--In order to solve the problem of out-of-heap memory overflow caused by the bug of luttce, use the jedis client operationredis-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
<exclusions>
<exclusion>
<groupId>io.lettuce</groupId>
<artifactId>lettuce-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
</dependency>
<!-- ftp file upload-->
<!-- Apache tool components -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>${commons-lang3.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-io</artifactId>
<version>${commons-io.version}</version>
</dependency>
<dependency>
<groupId>commons-net</groupId>
<artifactId>commons-net</artifactId>
<version>${commons-net.version}</version>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>${commons-fileupload.version}</version>
</dependency>
<!-- OOS依赖-->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alicloud-oss</artifactId>
<version>2.1.0.RELEASE</version>
</dependency>
<!-- Registry-->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
<version>2.2.2.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
<version>2.2.6.RELEASE</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<version>2.2.6.RELEASE</version>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.2.6.RELEASE</version>
<configuration>
<mainClass>henu.soft.xiaosi.thirdparty.ThirdPartyApplication</mainClass>
</configuration>
<executions>
<execution>
<id>repackage</id>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

2、 Try to solve
No matter how you try to change the dependency, you still report errors all the time. Finally, you have no choice but to re create a sub module (note that there is no jar package of the SDK of the mobile MAS!!!, which can run), and a new POM file
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>henu.soft.xiaosi</groupId>
<artifactId>third</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>third</name>
<description>Third party service</description>
<properties>
<java.version>11</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<spring-boot.version>2.3.7.RELEASE</spring-boot.version>
<spring-cloud-alibaba.version>2.2.2.RELEASE</spring-cloud-alibaba.version>
<spring-cloud.version>Hoxton.SR9</spring-cloud.version>
</properties>
<dependencies>
<!-- Registry-->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
<version>2.2.2.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>${spring-cloud.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
<version>${spring-cloud-alibaba.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>11</source>
<target>11</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.3.7.RELEASE</version>
<configuration>
<mainClass>henu.soft.xiaosi.third.ThirdApplication</mainClass>
</configuration>
<executions>
<execution>
<id>repackage</id>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Then the unit test does not report an error, and the next step is to copy the things of the old module to the new module (that is, the mobile MAS package)

Because the module needs to use a third-party jar package, and then add aslibiary, and then start the test and report an error again……!!!
Then remove lib and add it again, but it still doesn’t work…!!!
For the last operation, I just want to say TMD. The solution is to select Global Library and then confirm. Try again. It can run this time, but it is really one-time… An error is reported when running again


This may also be caused by the error of adding external jar packages. In addition, it seems that the main class can only succeed and fail in testing or starting. This should be the problem of jar packages
3. Problem solving
After tossing for a long time, I finally said in an article that is the reason for moving the SDK of MAS, because there are a lot of spring dependencies in the SDK package…
When writing the SDK, try not to use the framework. If you can use the method provided by JDK, use the method provided by JDK, otherwise it will cause a lot of trouble to those who use your SDK.
1. First, delete the dependencies in the jar
It mainly depends on spring and slf4j. Use 7z to open and delete it. After deletion

2. Install the SDK jar package into the Maven local library
What I choose here is to package the jar and put it in the local warehouse, and switch to the folder where the jar is located
mvn install:install-file
-Dfile=masmgc.sdk.sms-0.0.1-SNAPSHOT.jar
-DgroupId=com.masmgc.sms
-DartifactId=masmgc-sdk-sms
-Dversion=0.0.1-SNAPSHOT
-Dpackaging=jar

Then it is introduced in the POM file
<!-- Mobile SMS-->
<dependency>
<groupId>com.masmgc.sms</groupId>
<artifactId>masmgc-sdk-sms</artifactId>
<version>0.0.1-SNAPSHOT</version>
Testing

1. File not found
Error: [Errno 2] No such file or directory: 'C:\\Users\\ssw0926\\Desktop.chengji.csv'
1. Wrong file path
Methods to avoid errors: do not manually enter the file address, select copy.
Select the file to be read, press shift and right mouse button, and copy file address will appear.
2. Remember to add the escape character R
For example:
df=pd.read_csv(r”C:\Users\ssw0926\Desktop\chengji.csv”,encoding=”utf-8″)
2. When the file contains Chinese, it is easy to have character coding problems.
1. Error message:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 0: invalid continuation byte
Solution: try to transform encoding. For example, change encoding = “UTF-8” to encoding = “GB2312” or other codes.
0x00 problem description
Today we are compressing the video into different quality in the lab, so we need to use the FFmpeg tool (we have to say that this tool is really powerful), but when we install it, we call out the following mistakes when we call it in Python script.
subprocess.CalledProcessError: Command 'ffmpeg -i /data/xiangtao/dataset/celeb-DF/0_Celeb-real/id0_0000.mp4 -vf select="eq(pict_type\,I)" -vsync vfr -qscale:v 2 -f image2 /data/xiangtao/dataset/tmp/VA-MLP/celeb-DF/11-12/id0_0000/%02d.jpg' returned non-zero exit status 127.
The reason is that libx264 encoder is not installed,
Unknown encoder: "libx264"
0x01 solution
Baidu has been trying several ways for a long time, most of the solutions have to be reinstalled FFmpeg, then install the libx264 Library in the process of installation, try it all wrong, and later discovered that there is a package in the python environment, then ffmpeg will uninstall the python script, which calls for the use of this package. Based on this idea, I reinstalled the ffmpeg package and solved it perfectly!!!
0x02 specific steps
pip uninstall ffmpeg
or
conda uninstall ffmpeg
Reinstall
pip install ffmpeg
or
conda install ffmpeg
0x03 some gossip
1. When executing mysqldump command for data backup, the error information is as follows:
~ % mysqldump -udbuser -p123456 -h127.0.0.1 school student > school_student.sql
mysqldump: Got error: 2002: "Can't connect to server on '127.0.0.1' (36)" when trying to connect
2. Then try the command line to connect to the database, which is also an error
~ % mysql -udbuser -p123456 -h127.0.0.1
ERROR 2002 (HY000): Can't connect to server on '127.0.0.1' (36)
3. After checking the MySQL service result, I remembered that I used ‘mysql. Server start’ to start the database. This cannot follow the system startup. Each time I restart the Mac, I need to run it manually. You can use brew services to start MariaDB Start the service with the system.
~ % mysql.server start
Starting MariaDB
.211111 16:04:44 mysqld_safe Logging to '/usr/local/var/mysql/xiaokang.err'.
211111 16:04:44 mysqld_safe Starting mariadbd daemon with databases from /usr/local/var/mysql
SUCCESS!
4. After successful restart, execute mysqldump again for backup
Solve the error reported by the running shell
-bash: ./test.sh: /bin/bash^M: bad interpreter: No such file or directory
What is the reason? There is reason to suspect that it is a file format problem? We use VIM test.sh to enter the test.sh file, and then execute it in the bottom mode: set FF to check. The result shows that fileformat = DOS. Look, it is indeed a file format problem. How to solve it?
Solution:
[root@admin .sh]# vim test.sh
Execute: e + + FF = UNIX%, then delete the ^ m symbol
save and exit
or:
[root@admin .sh]# sed -i "s/\r//" test.sh
Or:
[root@admin .sh]# dos2unix test.sh
Or: VIM test.sh open the file, execute: set FF = UNIX, set the file to UNIX, then execute: WQ, and save it in UNIX format.
The following errors are suddenly reported when running the project today:
Entry name ‘META-INF/androidx.vectordrawable_vectordrawable.version’ collided
The reason for the problem is that I have typed the test installation package, and the above problems may occur when running later.
The solution is as follows:
Method 1. Re clean project or rebuild project.
Method 2. App — > build–> outputs–> apk–> debug–> Find the corresponding installation package and delete it.
Warning: The string ‘”xxxx:xxxx”‘ with parameter delimiters is not a parameter.
The reason is that my input parameter is a JSON nested form with {}
Solution:
This warning can be avoided by configuring it in the LoadRunner.
Tools> Options> Scripting> Parameters
In the red box in the following figure, the default is { and }
Replace with < and >

1. Foreword
Plug in amap in use_ The location suddenly reported an error today. The project cannot run. The error prompt is as follows:
2. Error prompt
.../amaplocation/AmapLocationPlugin.java:287:Error: Unreported exception error Exception; it must be caught or declared in order to throw locationClient = new AMapLocationClient(getApplicationContext());

3. Cause investigation
After modifying the one-to-one communication without results and one-to-one search for information, I accidentally saw the discussion in the group and knew that it was caused by the problem of privacy policy. The temporary solution is not to use the latest Gaode com.amap.api: location. The latest privacy policy is available. The best solution should be to access the latest policy, which has not been implemented
4. Solution
1. Find AutoNavi’s amap_location package according to the above path, in flutter/.pub-cache/hosted/…, and copy it after getting it, and change the latest dependency in android/build.gradle. At present, I Here is changed to 5.5.1


2. Delete the example in the package, create the local plug-in file plugins in the project, put the plug-in package into yaml, and import the local plug-in

Execute pub get, the error disappears, and the project can run