Tag Archives: ProgrammerAH

When idea writes JavaWeb, it can’t find servlet

When writing JSP, always worry about finding the location of servlet accurately
if the vallue of the servlet = (“/ myservlet”)
then use action = & lt;%= request.getContextPath()%>/ “Myservlet”, isn’t it very convenient

getcontextpath() is to find the project publishing path, that is, the root directory, while servlet value =/myservlet " represents that the servlet is in the root directory, so directly & lt;%= request.getContextPath()%>/ Myservlet can find the servlet. Similarly,
If value =/my/servlet "
then & lt;%= request.getContextPath()%>/ My/servlet is OK

DB2 timed task execution stored procedure cannot complete scheduler thread’s initialization

The following reports have been made in the implementation of failure checks.

2021-06-09-14.46.11.868000-420 I16975H265 LEVEL: Error PID : 1412 TID : 1800 FUNCTION: DB2 Tools, DB2 administration server, SchedulerThread_run, SchedulerThread_run, probe:5 DATA String, 50 bytes cannot complete scheduler thread’s initialization! 2008-05-01-14.46.16.868000-420 I170042H386 LEVEL: Error PID : 1412 TID : 1800 FUNCTION: DB2 Tools, DB2 administration server, MDUtility: :connectMD, MDUtility probe:10 DATA Sint32, 4 bytes – 300 DATA #2 : Sint32, 4 bytes 0 DATA #3 : Sint32, 4 bytes 0 DATA #4 : String, 7 bytes TOOLSDB DATA #5 : String, 8 bytes SYSTOLS DATA #6 : String, 4 bytes NULL

Reference is made to the website: https://www.ibm.com/support/pages/db2-scheduler-thread-initialization-error-db2diaglog
>

Yes

[Solved] This application has no explicit mapping for /error, so you are seeing this as a fallback

This application has no explicit mapping for /error, so you are seeing this as a fallback

Today, we use spring boot to build a background weather project. The database we use is weather and the table name is city. Adding annotations in the control layer writes getmapping as restmapping, which leads to errors. Fill in the address bar with localhost: port number/database table name/list. Only in this way can it be displayed normally

Golang Warning: Error string should not be capitalized or end with punctuation mark

Error string should not be capitalized or end with punctuation mark
The error string should not be capitalized or punctuated

When we use errors. New (“AAA.”) or fmt.Errorf(“Aaa.”)   When the form returns error information, the text content should not start with a capital letter or end with a punctuation mark.

Only modify according to the warning, remove the beginning of capital letter and the end of punctuation. Errors. New (“AAA”)

MYSQL Enter password:ERROR 2003 (HY000): Can‘t connect to MySQL server on ‘localhost:3306‘

[mysqld]
# Set port 3306
port=3306
# Set the mysql installation directory
basedir=E:\\software\\\mysql\\mysql-8.0.11-winx64 # Remember to use a double slash here \\\, single slash I will get an error here, but look at other people's tutorials, some are single slash. Try it yourself
# Set the mysql database data storage directory
datadir=E:\software\\\mysql\\\mysql-8.0.11-winx64\\\Data # Same as above here
# Maximum number of connections allowed
max_connections=200
# The number of failed connections allowed. This is to prevent someone from that host from trying to attack the database system
max_connect_errors=10
# The default character set used on the server is UTF8
character-set-server=utf8
# Default storage engine to be used when creating new tables
default-storage-engine=INNODB
# Default authentication with "mysql_native_password" plugin
default_authentication_plugin=mysql_native_password
[mysql]
# Set the default character set for mysql client
default-character-set=utf8
client]
# Set the default port used by mysql clients when connecting to the server
port=3306
default-character-set=utf8

[Solved] Error running ‘LocalTest‘: Command line is too long. Shorten command line for LocalTest or also for…

Error running ‘Application’:
Command line is too long.Shorten command line for Application or also for Spring Boot default configuration.
IDEA reports the above error, add the following content to the project workspace.xml

  <component name="PropertiesComponent">
    //add
    <property name="dynamic.classpath" value="true" />
  </component>