Add the following code to the Settings file
Error reporting when Lombok @ data and @ builder are used together
Lombok @data and @builder are used together
Lombok often uses annotations
error
Sometimes @Builder annotation is added to PO class in order to make the code more elegant when constructing PO class. However, because @Builder and @Data will be used together, the class’s no-argument constructor will be overwritten. As a result, some framework can not successfully assign Data to PO class when operating the database, such as MyBatis.
The solution
Override the no-argument constructor in the class to prevent conflict with Lombok’s annotation, and add the @tolerate annotation on the no-argument constructor
Such as:
@Data
@Builder
public class DataBuilder implements Serializable {
@Tolerate
public DataBuilder (){}
}
Lombok uses annotations
A lot of online lecture Here I think a good link
https://www.cnblogs.com/heyonggang/p/8638374.html
Cause of runtime error on OJ
Except for the five cliches
1. Array size is too small, resulting in access to the memory should not be accessed
2. A division by zero error occurred
3. A large array is defined inside a function, causing the program stack to run out
4, The pointer is used incorrectly, resulting in access to the memory should not be accessed
5. It is also possible that the program threw an unreceived exception
The author also found that sometimes open array on OJ is too large (global variables, can run normally in the local) will cause runtime error, we need to pay attention to.
JavaScript solves let statement error in code
directory
Question 2. Answer
Problem 1.
Why do we need var instead of let in JavaScript code?

2. Answer
JS version compatibility issues, ECMAScript 6 can be changed.
ES 5; After ES 6, let is used for variable declarations, and const is used for constant declarations. They are used to replace the var declaration method in ES 5.
The original link: https://qwert.blog.csdn.net/article/details/106248417
Error in idea @ data entity class get / set
Part of the error code display:

After a long search on the Internet, I realized that the solution was to install Lombok plugin.
Without further ado, the specific plug-in installation steps are as follows:
1. Enter the IDEA Settings interface and find the Plugins option
2. Type Lombok into the search box
3. Click the Browse Repositories button

4. Select Lombok Plugin

5. Click the Install button on the right

6. After downloading and installing the Lombok Plugin, be sure to check the box behind it

7. Restart Idea, OK!
SQL Union, union all usage and common errors and Solutions
The SQL UNION operator
The UNION operator is used to combine the result sets of two or more SELECT statements.
Note that the SELECT statement within the UNION must have the same number of columns. Columns must also have similar data types. Also, the order of the columns in each SELECT statement must be the same.
The UNION SQL grammar
SELECT column_name(s) FROM table_name1
UNION
SELECT column_name(s) FROM table_name2
Note: By default, the UNION operator picks a different value. If duplicate values are allowed, use UNION ALL.
SQL UNION ALL syntax
SELECT column_name(s) FROM table_name1
UNION ALL
SELECT column_name(s) FROM table_name2
Also, the column name in the UNION result set is always equal to the column name in the first SELECT statement in the UNION.
Error reporting and resolution
When using the UNION operator, the following error can easily be reported:
Parse error: org. Apache. Hadoop. Hive. Ql. Parse. ParseException: line 5-0 always recognize input near “and” (” and “the UNION, ‘ ‘SELECT’ set in the operator
Simplify the code used as follows:
SELECT
device_id
FROM
tableA
UNION
(SELECT
device_id
FROM
tableB as a1
INNER JOIN tableC as a2
on a1.device_id = a2.device_id
)
This is mainly because the UNION operator can only join fields to fields, but not fields to tables or tables, even if the number of fields and their names and formats are the same.
Therefore, you can’t have parentheses around the UNION operator, because it’s easy for SQL to determine that this is a subquery/table and therefore to report an error when joining
The solution
- > SELECT FROM TABLE D OL>> SELECT FROM TABLE D OL>> SELECT FROM TABLE D OL>> SELECT FROM TABLE D OL>> SELECT FROM TABLE D OL>> SELECT FROM TABLE D OL>> SELECT FROM TABLE D OL>> SELECT FROM TABLE D OL>> SELECT FROM TABLE D OL>> SELECT FROM TABLE D OL>> SELECT FROM TABLE D OL>> SELECT FROM TABLE D OL>
Matters needing attention
- > Multiple UNION operators can be used in SQL statements. SELECT statements that use the UNION operator cannot contain their own ORDER BY or COMPUTE clauses. You can only use an ORDER BY or COMPUTE clause on the final combined result set (that is, after the last SELECT statement). The GROUP BY and HAVING clauses can be used in SELECT statements that use the UNION operator. By default, SQL Server 2005 evaluates statements containing the UNION operator from left to right. You can specify the order of evaluation using parentheses (I haven’t tested this thoroughly on any other platform, so avoid parentheses altogether, so if you need to specify the order of evaluation, you can simply write that part of the evaluation at the beginning of your SQL statement).
Error report and solution of import panda in Windows 10

You will need to change the version of Pandas at this time
Uninstall the previous Pandas first
pip uninstall pandas
Then specify the PIP to download version 1.0.1 of Pandas
pip install pandas==1.0.1
NPM run build error solution
An error is as follows
checked online related:
.
because package json file does not have to configure the build script, so the above error!
Solutions:
1. Add build script to scripts in package.json:
{
"scripts": {
"build": "cross-env NODE_ENV=production webpack --config webpack.config.js"
}
}
“NODE_ENV” : user-defined environment variable
webpack “: integrated packaging command
“>config” : config file
“webpa>onfig.js” : config file, which is a Node. js module that returns a JSIN-formatted configuration information object, or the –config option to specify the configuration file
It is possible that ‘cross-env’ is not an internal or external command and is not a executable program
can be resolved by NPM I –save-dev cross-env.
The results of
Execute NPM run build, and the results will appear in the dist folder. Successful packaging!

Reference: https://www.cnblogs.com/tugenhua0707/p/9780621.html
https://www.cnblogs.com/eyunhua/p/6507100.html
In Python, import XXX does not report an error, but in IPython (Jupiter notebook)

But I have installed it before; It does not report errors on the Python command line. Then Baidu checked the data, but did not find a similar situation. I print the path in Python and in IPython. I print the path in Python and I print the path in IPython.
'D:\\python\\Anaconda3\\envs\\v2\\python35.zip',
'D:\\python\\Anaconda3\\envs\\v2\\DLLs',
'D:\\python\\Anaconda3\\envs\\v2\\lib',
'D:\\python\\Anaconda3\\envs\\v2',
'C:\\Users\\mtl\\AppData\\Roaming\\Python\\Python35\\site-packages',
'D:\\python\\Anaconda3\\envs\\v2\\lib\\site-packages'
Print out the path in IPython as follows:

'D:\\python\\Anaconda3\\envs\\v2\\python35.zip',
'D:\\python\\Anaconda3\\envs\\v2\\DLLs',
'D:\\python\\Anaconda3\\envs\\v2\\lib',
'D:\\python\\Anaconda3\\envs\\v2',
'C:\\Users\\mtl\\AppData\\Roaming\\Python\\Python35\\site-packages',
'D:\\python\\Anaconda3\\envs\\v2\\lib\\site-packages',
'D:\\python\\Anaconda3\\envs\\v2\\lib\\site-packages\\IPython\\extensions',
'C:\\Users\\mtl\\.ipython'
C:\\Users\ MTL \\.ipython: C:\\Users\ MTL \\.ipython: C:\\Users\\ MTL \\.ipython: C:\\Users\\ MTL \\
Summary: I think because the last folder is empty, the previous files will be flushed out, but I check the information: when looking for the module (model), it will follow the path to find, if found, it will jump out. This interpretation is in conflict here, but also hope to understand this part of the god together to resolve
Solve Python error Unicode error ‘UTF-8’

Not to read the error principle, but the solution is as follows:
Open the error file (pcacode.py in this case) using Notepad ++ (which is the editor I always use), find the encoding option in the menu bar, select UTF-8, save it, and run the Python code again so it doesn’t report any errors.
Another solution, which I haven’t tried, is the following:
import codecs
codecs.open('filename',encoding='uft-8')
CentOS uses Yum install to report errors
[Errno 256] No more mirrors to try
The Internet says you should follow the following two commands:
#yum clean all
#yum makecache
There was no error on the first instruction, but there was an error on the second instruction
Cannot find a valid baseurl for repo: base/7/x86_64
So the solution is to change the nameserver value by changing the resolv.conf
Unable to connect to the Internet. This is one of the host errors
#vim /etc/resolv.conf
Change the nameserver value to 8.8.8.8 or any other DNS value that can connect to the Internet
Then restart the network card
#service network restart
Problem solved!
about jQuery.js The solution to always reporting errors
JS package always report an error:
The window – & gt; Preference – & gt; MyEclipse-> Click on the validation
Find JavaScript Validator for JS Files in the table on the right and remove the two checks
Save, close.
2. Mutantan – The great god’s blog also has a solution, but has not tried it