Loading drivers using Class.forName
When using JDBC to connect to a database, the driver needs to be loaded first.You can declare the driver to load through Class.forName, which is not really clear here because Class.forName not only loads the class into memory, but also initializes it (the code in the static block is executed).The registration ...
Posted on Sat, 14 Dec 2019 02:08:00 -0800 by crazy_carl
I. introduce Mavan dependency
<!-- https://mvnrepository.com/artifact/org.apache.phoenix/phoenix-core -->
2. Establish J ...
Posted on Fri, 13 Dec 2019 11:21:25 -0800 by god_zun
Written in front
As the saying goes: "customer is God", as a programmer, I sometimes directly meet the needs of customers. After all, I am on the side of providing services, so I will try my best to meet the temporary requirements. A few days ago, I had a need to meet vulnerability detection. I wanted to encrypt the plaintext sensitiv ...
Posted on Sat, 07 Dec 2019 14:01:19 -0800 by spider
jsp implementation of jsp + jdbc login
A form page, enter the user login and password, and then submit the information to the jsp page for verification. If the server can jump to the login success page, fail, jump to the error page
When you jump, the URL of the window will change
The code is as follows
Write login code
Posted on Thu, 05 Dec 2019 17:40:03 -0800 by transfield
Don't talk about it. Go straight to the code and configuration file
1. The name of the application-test-mysql.properties configuration file can be written with the type of properties (two data sources are MySQL and jdbc is orcale)
Posted on Fri, 29 Nov 2019 21:04:48 -0800 by SpaceLincoln
drwxrwxr-x 8 hadoop hadoop 4096 Apr 16 04:45 ./
drwxr-xr-x 28 hadoop hadoop 4096 Apr 16 07:04 ../
drwxrwxr-x 3 hadoop hadoop 4096 Apr 16 04:45 bin/
drwxrwxr-x 2 hadoop hadoop 4096 Apr 16 07:02 conf/
drwxrwxr-x 4 hadoop hadoop 4096 Apr 16 04:45 examples/
Posted on Wed, 27 Nov 2019 12:35:35 -0800 by dr4296
I. what is Dao design mode
Dao design pattern encapsulates the details of operating the specific database and provides the interface of operating the database for the business layer. Therefore, it reduces the coupling between the business layer code and the specific database, facilitates the division of labor, and increases the portability of t ...
Posted on Tue, 26 Nov 2019 20:46:13 -0800 by jsimmons
It's been a month since I joined the new company, I've finished the work at hand, and the last few days I finally have time to research the code for my old project.During the process of researching the ...
Posted on Tue, 26 Nov 2019 17:44:00 -0800 by intech
Absrtact: This paper mainly studies how to realize a database connection pool manually, and some improvements on this basis.
Some of the content comes from the following Blogs:
A simple database connection pool
Connection pool tool class
The connection pool uses thread safe queue to store c ...
Posted on Tue, 26 Nov 2019 03:44:18 -0800 by Rohan Hill
In this article, we integrate the orm framework of Mybatis in Spring boot. After all, we analyze the source code of its automatic configuration. Let's review how to integrate Mybatis in Spring. You can see my article. Mybaits source code analysis (10) --- spring mybatis framework use and source code analysis
Spring mybatis uses
Add maven depen ...
Posted on Mon, 25 Nov 2019 19:42:11 -0800 by Option