Author Archives: Robins

Unable to read meta data for class

From: http://www.infoq.live/links, original author: Chen, wei

    problem description

Unable to read meta-data for class
Unable to read meta-data for class
Unable to read meta-data for class
Unable to read meta-data for class
Locate

    analysis custom starter in spring. The factories configure multiple configuration, need each other to interval \

    org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
    cn.xxx.xxx.secret.SecretAutoConfiguration,
    cn.xxx.xxx.secret.modules.cors.WebMvcConfiguration
    

    Correct configuration:

    org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
    cn.xxx.xxx.secret.SecretAutoConfiguration,\
    cn.xxx.xxx.secret.modules.cors.WebMvcConfiguration
    

Unicode decodeerror: ‘UTF-8’ codec can’t decode byte 0xd3 in position 238: invalid continuation B

UnicodeDecodeError: ‘UTF-8’ codec can’t decode byte 0xD3 in position 238: invalid continuation B
 
directory
To solve the problem
solution
The solution


 
 
 
To solve the problem
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xd3 in position 238: invalid continuation byte
 
 
solution
Unicode decoding error: “UTF-8” codec cannot decode byte 0xD3 in position 238: Continue byte invalid
 
 
The solution
Open the file in Python’s IDE, and add a line of code at the top!
# -*- coding: utf-8 -*-
or
# coding: utf8
 
 
 
 

Mybatis exception error setting driver on unpoleddatasource. Cause: java.lang.ClassNotFoundException :

Connector jar has been imported, or a Cause: Java, SQL. SQLException: Error setting driver on UnpooledDataSource. Cause: Java. Lang. ClassNotFoundException: always find a class: com. Mysql.. JDBC driver

When you open the properties file, you find an extra space (underlined in red), so make sure you don’t enter extra Spaces when writing the properties file.

Remove spaces after characters in Excel cells

    Code value (obtained by the CODE function) In the range 1-255, there are 148 invisible characters 1-15,28-32,127-254. Clean (A1) can be used to remove characters with code value less than or equal to 31 (including visible characters 16-27) and characters with code value equal to 128. Substitute (A1,CHAR(32),””) function can remove invisible characters whose code value is equal to 32 and 129-254, and TRIM function can remove such characters at both ends of the string. Invisible characters with code value equal to 127 can only be removed using the SUBSTITUTE(A1,CHAR(127),””) function. Using both functions together, you can basically remove all invisible characters with code values less than 255 (including visible characters with code values 16-27):
    SUBSTITUTE(SUBSTITUTE(CLEAN(A1),CHAR(32),””),CHAR(127),””)

Causes and solutions of classnotfoundexception / NoClassDefFoundError

A NoClassDefFoundError is an Error, while a ClassNotFoundException is an exception. In Java, an Error and an exception are handled differently. You can recover from an exception but you shouldn’t try to recover from an Error.
ClassNotFoundException causes:
Java supports dynamically loading classes using the Class.forName method. Passing the Class name of any Class as an argument to the method will cause the Class to be loaded into the JVM memory. If the Class is not found in the classpath, then a ClassNotFoundException is thrown at runtime.
ClassNotFoundException solve
Solving this problem requires ensuring that the required class, along with its dependent packages, exists in the classpath. A common problem is that the class name is misspelled.
Another cause of ClassNotFoundException is that when a class has already been loaded into memory by one class loader, another class loader tries to dynamically load the class from the same package. This can be avoided by controlling the dynamic classloading process.
NoClassDefFoundError causes:
If the JVM or ClassLoader instance tries to load a class (either through normal method calls, or by using new to create a new object), the class definition is not found. The class you are looking for exists at compile time but cannot be found at run time.
The problem may be caused by missing classes during the packaging process, or by corrupted or tampered JAR packages.
NoClassDefFoundError solve
The solution to this problem is to look for classes that are in the classpath at development time but not at run time.

Float: 99: input / output error appears in vscode SSH plug-in

Flock: 99: Input/ Output error in VSCode SSH plugin

The SSH plugin for VSCode will get lock under ~/.vscode-server by default, but on some servers mounted on NFS the flock: 99: Input/output error
Solution is to acquire the lock, under/TMP In SSH plugin Settings selected LockFiles In Temp, or search remote. SSH. LockfilesInTmp can find this setting.
Reference: http://meta.math.stackexchange.com/questions/5020/mathjax-basic-tutorial-and-quick-reference

Error LNK2019: unresolved external symbol_ Main the symbol is in the function___ Tmaincrtstartup

Error:
Error LNK2019: Unable to resolve external symbol _main, which is referenced in the function ___TMainCrtStartup
Cause analysis,
I use VS2013 debugging an MFC program when the problem occurred.
1. You built a console program with VC. Its entry function should be main, and you used WinMain.

    > You open a.c/.cpp file with vc and compile it directly, using Winmian instead of main as the entry function. VC’s default Settings at this point are for console applications.

Solutions:
1. Enter the project – & gt; setting-> C/C ++, select Preprocessor in Category, remove _CONSOLE in Processor Definitions, and add _WINDOWS
2. Enter the project – & gt; setting-> Link changes /subsystem:console to /subsystem: Windows in Projections.
3. Save Settings, Rebuild All.

Rust solves cargo build too slowly

Replace the crates repository source

    Open or create a new er directory /.cargo/config f>to add the configuration

to the>

[source.crates-io]
registry = "https://github.com/rust-lang/crates.io-index"

replace-with = 'tuna'
[source.tuna]
registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git"
    Save exit