Because repeated code generation with Mybatis Generator automatically generated duplicate code
You can find two same
selectByExampleWithRowbounds in *mapper.xml.
selectByExampleWithRowbounds in *mapper.xml.
Sometimes, when running swagger, it will cause“ Internal Server Error /swagger/v1/swagger.json ” Wrong.

Here are my solutions:
1. First look at the console and check the reason. The reason is: ambiguous HTTP method for action, which is translated as “ambiguous HTTP operation method”. It is estimated that a brother did not indicate the HTTP method when submitting the code.


2. Search all public methods in the controller. In the search result window, press ↓ on the keyboard and ↑ Button to quickly switch to search. Finally, it is found that the method is written in public and changed to private.

Conclusion:
Ambiguous HTTP method for action, translated as “ambiguous HTTP operation method”.
There may be no HTTP method written, such as [httpget], [httppost], add to the method.
It may also be caused by writing some methods that should have been private to public.
For this error, you can check whether there are duplicate elements on the next page
For example, the following: run the error on the old newspaper and find that there are duplicate elements on the page
password=(By.XPATH,'//input[@placeholder="Please input the password"])'

Solution: find the one you need, as follows
password=(By.XPATH,'(//input[@placeholder="Please input the password"])[2]')
Specify element positioning method: (//span [text() = ‘match’) [2]
Add – nodeps — force to RPM:
rpm -ivh pack_name --nodeps --force
eg:

The reason is to merge two project programs written by others. There is no problem with separate testing. After merging, compile and report errors
After searching the data, it is suspected that it is related to the header file windows.H
#include<math.h>
#include <string>
#include <iostream>
#include <fstream>
#include <vector>
#include <windows.h> // Commented out to compile properly
#include <map>
#include <any>
My solution is to #include <windows.h> comment it out (the header file is not used in the code), and then it can run successfully. I didn’t delve into the specific reasons, mainly by referring to the reference materials at the end of the article.
Syntax Error: TypeError: this.getOptions is not a function
Check that there are no mistakes in the code
in fact, this problem is related to the version. I installed it scss-loader The version is too high. Uninstall and install the lower version
// vue3 has no problem using version 10.2
npm install [email protected] --save-dev
Semi in eslint is to check whether the semicolon is wrong. No trailing spaces is the absence of spaces in the code
Open. Eslintrc.js in the project and add the following code in the rules to solve the above problems. Just add the first and second lines of code in the box. Some are added to the problems later. It is recommended to add them because they are useful later.
'space-before-function-paren': 0,
'semi': 'off',
'quotes' : 'off',
'comma-dangle' : 'off',
'vue/comment-directive': 'off'

Eslint requires strict code format. Sometimes errors will occur when there are fewer or more spaces. It is recommended to replace the extensions in. Eslintrc.js in the project ‘@ Vue/standard ‘is commented out. This will reduce many subsequent format problems.

Project scenario:
use VS to program in C language and generate solution report – > Execution error
Problem Description:
error: link: fatal error lnk1168: unable to open C:\users\86139\desktop\plan\notes\C\tryproject \ debug\tryproject.exe for writing
#include <stdio.h>
#include "math.h"//Since the library function sqrt() is to be used
int main(){
//Requirement: determine if the quadratic function has real roots, and output if it does?
double a,b,c,disc,x1,x2,p,q;//declare variables
printf("Please enter the values of a,b,c respectively: \n");
scanf("%lf%lf%lf",&a,&b,&c);//enter the value and store it at address a,b,c
disc=b*b-4*a*c;//discriminant
if(disc<0){
printf("This equation has no real roots!!!");
}else{//disc>=0
p=-b/(2.0*a);
q=sqrt(disc)/(2.0*a);
x1=p+q;
x2=p-q;
printf("此方程的两实根为:\nx1=%7.2f\nx2=%7.6f\n",x1,x2);
}
}
Cause analysis:
the process may already exist, so it cannot be opened and run
Solution:
just finish the process of the program. You can open “process manager” (Task Manager), Ctrl + Alt + delete, find the corresponding process, and right-click to finish.
Error code:
Hibernate: create table course (id integer not null auto_increment, index integer, name varchar(255), primary key (id)) engine=InnoDB
Oct 12, 2021 4:31:05 PM org.hibernate.tool.schema.internal.ExceptionHandlerLoggedImpl handleException
WARN: GenerationTarget encountered exception accepting command : Error executing DDL "create table course (id integer not null auto_increment, index integer, name varchar(255), primary key (id)) engine=InnoDB" via JDBC Statement
org.hibernate.tool.schema.spi.CommandAcceptanceException: Error executing DDL "create table course (id integer not null auto_increment, index integer, name varchar(255), primary key (id)) engine=InnoDB" via JDBC Statement
...
Hibernate: create table student (id integer not null auto_increment, name varchar(255), primary key (id)) engine=InnoDB
...
Caused by: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'integer, name varchar(255), primary key (id)) engine=InnoDB' at line 1
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:120)
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
at com.mysql.cj.jdbc.StatementImpl.executeInternal(StatementImpl.java:762)
at com.mysql.cj.jdbc.StatementImpl.execute(StatementImpl.java:646)
at org.hibernate.tool.schema.internal.exec.GenerationTargetToDatabase.accept(GenerationTargetToDatabase.java:54)
... 36 more
Finally, I found that the problem is that an attribute name of my Course class is index, and this is a keyword in MySQL
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity(name = "course")
@ManagedBean(name = "course")
public class Course {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
private String name;
private Integer index;
@ManyToMany(mappedBy = "courseList")
private List<Student> studentList;
}
Just change the name of index
Summary: attribute names of entity classes should not be keywords in the database
First of all, the most important thing is the version correspondence problem:
my environment
linux Ubuntu 16.04.7 lts
python = 3.7
python = 1.4
CUDA = 10.1
the versions of the above four should correspond. This can be found online.
This is the official installation procedure:
git clone https://github.com/NVIDIA/apex
cd apex
pip install -v --disable-pip-version-check --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./
If not, replace the installation statement with the following:
python setup.py install --cuda_ext --cpp_ext
Errors may be reported here:
filenotfounderror: [errno 2] no such file or directory: ‘:/usr/local/cuda-10.1/bin/nvcc’: ‘:/usr/local/cuda-10.1/bin/nvcc’
The problem here lies in “: /”, so we just need to specify
export cuda_home = {/usr/local/cuda-10.1} to remove the redundant “:”, and then run it again. We will report some warnings. Don’t worry.

Synergy Error: ERROR: ssl certificate doesn’t exist
Solution: Close use SSL encryption

Question details
Errors are reported as follows:
Error occurred during initialization of boot layer
java.lang.module.FindException: Unable to derive module descriptor for C:\Users\tongx\eclipse-workspace\OctaneSDKJava\lib\OctaneSDKJava-1.22.0.30-jar-with-dependencies.jar
Caused by: java.lang.module.InvalidModuleDescriptorException: JDOMAbout$Info.class found in top-level directory (unnamed package not allowed in module)

Attempt method 1 (failed)
In jdk9 and above, modules are introduced. Therefore, if a separate running class is created in the default package, it cannot be compiled. There is no such problem in jdk8; If you still want to run separate classes in the default package, delete module-info.java in the SRC folder.
But my java is version 1.8, and my attempt failed
Try method 2 (feasible)
Here, we have adopted the methods of other big men:



end
