The solution executes the following command to allocate memory initially. The reason for the error is that the memory is not enough.
the ES image I downloaded is 5.6.8. Modify the version number according to my own situation
docker run - D - P 9200:9200 - P 9300:9300 -- name = es_ " -e ES_ JAVA_ OPTS="-Xms256m -Xmx256m" elas ticsearch:5.6.8 code>
after the command is executed, the pro test is available

Error type referred to is not an annotation type:RedisCache
Today, the framework wants to use annotation to implement section function, and the result is error type referred to is not an annotation type:RedisCache
The code is as follows:
Note:
the
@Target({ ElementType.METHOD })
@Retention( RetentionPolicy.RUNTIME )
@Inherited
@Documented
public @interface RedisCache {
public String key() default “”;
public long TTL() default 0L;
}
Section:
@Around(“@annotation(redisCache)”)
public void redisCache(ProceedingJoinPoint joinPoint,RedisCache redisCache){
String targetName = joinPoint.getTarget ().getClass().getName();
String methodName = joinPoint.getSignature ().getName();
Object[] arguments = joinPoint.getArgs ();
Object result = null;
String cacheKey = getCacheKey(targetName, methodName, arguments);
System.out.println (“hahaha” + cachekey);
}
the original annotation must be passed in as a parameter, and the red part must be the same.
Error: child process failed, exited with error number 1
Error: child process failed, exited with error number 1
It’s usually a matter of permissions, or there is no corresponding path
Check steps: add a parameter after startup to export the log to a writable directory
./mongod –fork –logpath=/tmp/ mongod.log
Then look at the questions as follows:
2017-02-22T01:33:34.229+0800 I CONTROL [main] ERROR: Cannot write pid file to /var/run/mongodb/ mongod.pid : No such file or directory
This means that there is no such directory (/ var/run/mongodb /)
Then create a new one, MKDIR – P/var/run/mongodb/
The normal restart is as follows:
root@sz :~/soft/mongodb342/bin# ./mongod -f /etc/mongodb/ mongod.conf
about to fork child process, waiting until server is ready for connections.
forked process: 7482
child process started successfully, parent exiting
Mysql start slave error 1201 (HY000)
After MySQL replication is configured, an error is reported when starting slave as follows:
mysql> start slave;
ERROR 1201 (HY000): Could not initialize master info structure; more error messages can be found in the MySQL error log
mysql>
Looking for it on the Internet, it turns out that there are two files to delete. It is estimated that it was generated yesterday when other people failed in the test.
/var/lib/mysql/ master.info
/var/lib/mysql/relay- log.info
Just delete it.
mysql> start slave;
Query OK, 0 rows affected (0.01 sec)
mysql>
Refer to the following documents:
http://blog.sina.com.cn/s/blog_ 51d3553f0100j5m2.html
Solve the previous one bean.xml “Error while downloading” in < bean > tag http://www.springframework.org/schema/beans/sprin…
In the XML file, the error in the header is as follows

At the beginning of the query, it was said that “& lt;?XML version =” 1.0 “encoding =” UTF-8 “?& gt;” was missing in the header, but I didn’t have this problem, which may be encountered by someone.
And this error does not affect the operation of the project, of course, it may be that I did not notice or did not write the relevant reference code.
Now I know that the original reason is that the tool is relatively new and may lack tags. Just add the & lt; XML body & gt; tag

That’s good
Reproduced in: https://www.cnblogs.com/zhangyuanbo/p/11250563.html
Pull code execution NPM install error code: 128
Error:
NPM err! Code 128
NPM err! Command failed: git clone — mirror – Q git://github.com/adobe-webplatform/eve.git C:\Users\yangj\AppData\Roaming\npm-cache_ cacache\tmp\git-clone-b6120ac8.git –config core.longpaths=true
npm ERR! warning: templates not found in C:\Users\yangj\AppData\Local\Temp\pacote-git-template-tmp\git-clone-ac85a663
npm ERR! fatal: read error: Invalid argument
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\yangj\AppData\Roaming\npm-cache_ logs\2019-11-29T01_ 43_ 24_ 288Z- debug.log
Solution:
execution steps:
Step 1: git config — global URL. “HTTPS://”. Insteadof git://
Step 2: NPM install
is OK
Validation error: compression plug invalid options
[Android] ImageView setting background image error: error inflating class ImageView
(Android studio 3.1) the ImageView control is used in the layout file, and Src refers to the vector asset file created by itself. When running on Android 4.42, an error is reported as follows:

I used it on Android 8.0 mobile phone before, but it didn’t appear this problem. When I ran it on Android 4.42, I made a mistake. The first time I met this problem, I didn’t know what was wrong. Later, when I solved another problem, I suddenly realized that this problem might come from:

In the development process, I’m used to Android mode, and there are only a few folders in the res directory. Switch to project mode. In addition to the drawable folder, there is also the drawable-v24 folder in the res directory. I found that the vector asset file I created was actually placed in drawable-v24. Maybe that’s the problem. So I moved the vector asset file from the drawable-24 folder to the drawable directory, and then there was no running error.
Later, I went to the blog to search for information and found that Google only provided vector support when Android 5.0 was released. No wonder there was no error when I created the vector asset file to run in the drawable folder in Android 8.0. Maybe it was because vector was relatively mature in higher versions. Finally, a blog about vector written by Dashen is attached https://blog.csdn.net/eclipsexys/article/details/51838119 u>, I feel that I have learned a lot, which is convenient for further inquiry in the future.
Python about error: invalid command ‘bdist_ The solution of wheel error report
Read a lot of solutions, most of the pull to download a. WHL source file, and then install in PIP, after I personally test, execute this sentence can solve!
pip3 install wheel
Yard error: found incompatible module
When I install the project with yarn, the error is as follows:

error [email protected] : The engine “node” is incompatible with this module. Expected version “>=4 <=9”. Got “10.15.3”
error Found incompatible module
reference resources: https://www.jianshu.com/p/5cb4f48ed11b
In addition, please refer to: http://quabr.com/53025664/error-eslint5-6-0-the-engine-node-is-incompatible-with-this-module-when-try
Set yarn as follows:
yarn config set ignore-engines true
Re install the project package and find that there are still problems.
Delete node_ Modules package and yarn.lock File, restart yarn install.
success.
IntelliJ idea startup error: error statuslogger log4j2 could not find a logging implementation
The following error occurred when starting the project:
ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console…
Reason: the jar package of log4j is not downloaded locally. Cause the startup error.
resolvent:
1. Find the log4j folder of local Maven warehouse and delete it.

2. Update Maven dependency and download the jar package of log4j again.
Select project — & gt; right mouse button — & gt; Maven — & gt; reimport

Upload Appstore error itms-90725
Recently, when uploading to the app store with Xcode 8, an error was reported. Error itms-90725: “SDK version issue. This app was built with the IOS’ 10.0 ‘SDK. All new IOS apps submitted to the app store must be built with the IOS’ 11.0′ SDK or later, included in Xcode [9.0] or later. Please update Xcode and rebuild your app.”
resolvent:
(1) Download an Xcode 9 and package it directly with Xcode 9
(2) Download Xcode 9 to display the content of the report. Go to IOS’ 11.0 ‘SDK through the following path
Contents/Developer/Platforms/ iPhoneOS.platform/Developer/SDKs/iPhoneOS11 . 2.sdk copy the last file to the same path of Xcode 8, delete the original 10:00 SDK, and then you can upload it successfully
0