Java foundation — no reference method for classes

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...

Mysql common command statement

#—————————#—-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...

When gradle is packaged, the dependency is also merged into the jar package.

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...

MySQL performance optimization

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...

Ubuntu16.04 configuring Anaconda environment

0 – Download installation package   Recommended to Tsinghua mirror download. I chose Anaconda3-5.1.0-Linux-x86_64.sh. 1 – Install Anaconda   Then switch to the installation package directory, execute the following commands, and press enter or enter yes all the time. bash Anaconda3-5.1.0-Linux-x86_64.sh 2 – Test whether Anaconda is installed successfully.   Input the following command, the following figure shows that the installation is successful. conda list        3 – Reference material https://www.cnblogs.com/gaofighting/p/8799169.html   ...

Docker Machine builds and joins nodes

  Manually installing Docker on each machine is painful for clustered servers, but there’s the Docker Machine, one of the three Dockers.   Address: https://www.cnblogs.com/CKExp/p/9552272.html   1. Introduction of Docker Machine   The tool has been around for quite some time, Docker Machine official introduction: https://docs.docker.com/v1.13/machine/overview/ in my understanding is a control department master landing.The next batch of people is like this graph, facing different servers, cloud, virtual machine, local host and so on. Bulk installation is done through Docker ...

STM32 startup file C and assembly cross embedding

In the development of embedded system, the main programming languages used at present are C and assembly. C++ has the corresponding compiler, but it is still less used. In larger embedded software, such as OS, most of the code is written in C, mainly because of the C language structure comparisonGood, easy for people to understand, and there are plenty of supporting libraries. Nevertheless, assembly language is still used in many places, such as initialization of hardware system at boot time, including setting CPU status, interrupt enabling, frequency setting, RAM control parameters and initi...