Core:
PS:A page can only inherit one template.
Preposition:
Configure URL.
Configuring views
Keyword:
1. {% extends "indexTemplate.Html " %} Which template is inherited from which template to associate with which template page. 2. {% block title %}<h1>User management page: < /h1>{% endblock %} The contents of the main page are written. Template pages need to be added to the location only. 3. {% include "index-Import.Html " %} You can import directly on the main page.indexpage
{#Which web page does the statement inherit?{%extends...
Add -verbose:class when executing jar.
java -verbose:class -Xms1G -Xmx2G -jar xx.jar
When necessary, you can also use > log.txt to export output to text.
java -verbose:class -Xms1G -Xmx2G -jar xx.jar > log.txt
1. > variable length parameter.
Examples:
// > variable length method invocation
When variable length calls are used, you can give any parameter or no parameter.
3.
1.
package demo2;
public class Zhazhziji1 {
public String zhazhi(String fruit){
String juice=fruit+” > watermelon >“);
System.out.println(juice);
}
}
1. ><>) {
// >:
public class StudentsBiz {
String[ ] names = new String[30];
public void addName(String name) {
// >
. parameters2, traverse array in song style
students[i]=name;
break;
}
}
}
// >
public boolean find(int begin,int end,String name){
boolean rs=false;
for (int i = begin; i < end; i++) {
if (students[i].equals(name)) {
rs=true;
break;
}
}
return rs;
}
}
package demo...
1. > method
Two cases
returns the type of the return value.
public String color;
// > return value.
//return > no return value.
al.run();
// >:
Give an example
public class AutoLion {
// > attributefile > calls another method in one method.
public String info(){
return “ > callStudent“b( ) > callb( )
}
2.Student“a( ) > callTeacher“b()
}
Example: the student method calls the teacher method.
6.“
TestCell > charging.…”);
}
}
public class CellTest {
public static void main(String[] args) {
Cell nanfu=new C...
#—————————#—-cmdCommand line to connect to MySql———
cd C:\Program Files\MySQL\MySQL Server 5.5\bin
# Start MySQL servernet start mysql
# Close the MySQL server.net stop mysql
# Enter the MySQL command line.
mysql -h localhost -u root -p
#—————————
#—-MySqlUser management —
#To change the password: first, under DOS, enter the bin directory of the MySQL installation path, then type the following command:
mysqladmin -ur...
In some cases, you need to incorporate the jar package that your project depends on into your own jar package, which we call fat-jar. The method I use requires shadow plug-in:
The following example shows you typing mybatis into my jar package and changing the package name of mybatis from org. apache. ibatis to my. org. apache. ibatis.
This example is not a complete build.gradle file. Except for relocate, all the others are necessary. Relocate: modify the dependent package name when merging packages. If it is not necessary, you can ignore the relocate line.
plugins {
id 'com.github.joh...
MySQLDatabase optimization can be considered from the following aspects:
SQLStatement optimization
Database parameter configuration
Database architecture
Hardware upgrade
First, SQL statement optimization.
1、Open MySQL database slow query
Modify the MySQL configuration file my.cnf to add the following:
After the modification is completed, restart MySQL and execute the following statement to see if the modification is effective.
2、UsemysqldumpslowCommand narrowing
Most visited5individualSQLSentence
mysqldumpslow -s c -t 5 /usr/local/mysql/data/slow-query.log
The most recordset i...