Add objects to your own class= models.Manager ()
Tag Archives: ProgrammerAH
When using CSS to write the registration page, we found that the editing effect is not effective
When using CSS to write the registration page, we found that the editing effect is not effective
Project scenario: learning the combination of CSS and HTML Problem Description: in HTML writing, the text effect is not effective
Project scenario: learning the combination of CSS and HTML
tip: here is a brief introduction of the background of the project: when learning the combination of CSS and HTML recently, I encountered a problem that I don’t know how to describe in the process of writing the registration page
font>
Problem Description: in HTML writing, the text effect is not effective
Receiving data code in idea:
.rg_left > p :first-child{
color: #FFD026;
font-size: 20px;
}
.rg_left > p:last-child{
color: #A6A6A6;
font-size: 20px;
}
font> you can’t add a space between P and colon. Although you won’t report an error, the effect displayed on the web page doesn’t take effect. At first, I thought it was Google’s problem. Later, after constant attempts, I solved the problem
Carefully check whether there are spaces in the syntax during the code writing process. Although idea will not report errors, the final implementation effect will be inconsistent with the plan
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
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
Node.js Error: cannot find module ‘xxx’
Create a new notepad on the desktop, write the familiar Hello word, and save it with the suffix JS
What I wrote is just a helloword, which doesn’t involve any package management tools, so don’t bother with NPM. This error is simply that I can’t find the file.
Simple solution: press the shift key in the blank space of the desktop without putting the right mouse button, select here to open the command window, and then edit it properly, or type the path in the DOS interface.
Conclusion: in fact, it is a problem of path~
CONDA list error
Solution: computer properties – advanced system settings – environment variables – system variables – find path, edit – add D: (anaconda3) scripts (according to your own installation path) to the variable value, and separate it from the previous “;” (input method switch to English state) – OK
MySQL error 1054 (42s22) unknown column ‘password’ in ‘field list’
This intention is to change a user’s password. The command found on the Internet is as follows
1 td> | MySQL & gt; update user code> |