/**manipulating databases*/public class BackupDB {Public String Backup () throws ioexception{String user = "root"; User name of the databaseString Password = "admin";//password for databaseString database = "Hrtweb";//the names of the databases to
The first technology blog, want to tidy up the lessons learned, to the Daniel exchange for advice, will be put up some of these two years to do things and study notes, experience and so on, improper place please everyone exchange correct!This is a
. Record what you didn't know before.
variables
explain
Example
string
String, a section of text. To indicate that variables are strings, you should wrap them in quotation marks.
var
1, MyBatis sqlsession get Mapperdao, there are two kinds of1.1, the use of independent frameworkGlobal configuration file (Sqlmapconfig.xml) +sqlsession Get method +mapperdaoSqlsession Get StatementString config= "Sqlmapconfig.xml"; Reader
Use the third-party plugin POI to convert word documents to HTML, directly below the codePackage Com.babybus.sdteam.wordtopdf;import Java.io.bufferedwriter;import Java.io.bytearrayoutputstream;import Java.io.file;import
String inherits object, overriding the Equals method of object (the Equ method in the superclass is a judgment reference, which is the = = judgment), but the Equals method after the string rewrite is to judge the contentString a = "Hello World" and
Summary of the Java encryption and decryption technology seriesDH of Java encryption and decryption technology seriesRSA in the Java encryption and decryption technology seriesThe PBE of the Java encryption and decryption technology seriesAES in the
Memory partitioning for Java:1, register: The area that the CPU involves2. Local method Area: The area of the system-related code store3, Stack memory: storage is a local variable, the variable operation area at the end of the release, the speed is
This is in the blog Park wrote the first blog, has entered the blog park for some time, want to write down some of their own technical problems and solutions, of course, the main content is about programming aspects of the content, now is just
0. BackgroundIt is often necessary to use different versions of Java in different applications and to switch between different java_home.1. MethodsStep 1. Installing different versions of the JDK (JRE) is best installed in a Java directory branch.
[Reprint] About PreparedStatement. addBatch () method, statementaddbatch
The difference between Statement and PreparedStatement is not nonsense. Let's talk about the use of the most important addbatch () structure of PreparedStatement.
1. Create a
Quick and efficient learning of Java programming online resources Top 20, javatop
Do you want to enhance your programming capabilities? Do you want to improve your Java programming skills and efficiency?
Don't worry. This article will provide more
Set up the SOLR environment and fully import MYSQL Data, and set up solr to import mysqlSOLR Preface
Because solr is used in the project, it took more than a week to study solr. I will not talk about various problems, especially during the two days
Java file class methods
File class:
The File class is a platform-independent File and directory under the java. io package. That is to say, if you want to operate files and directories in the program, you can use the File class. But File cannot
Java-1.4 code reuse
In this section, we will discuss how to reuse code.
1. Why?
I am not going to elaborate on this. I can give you a few reasons for this.
I have summarized the following:
For the boss: reduce costs, shorten development time, and
Where is the java String addition overload implemented?We know that java does not allow programmers to reload any operators. How is the String addition reload implemented? You can't find any clue about addition or overloading by checking the source
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service